Hello I’m having some troubles with the RAK3172 module, first time I upload the code it’s working and when I reupload the same code it’s not working. Here it’s my custom PCB schematic :
first time I upload the code it’s working and when I reupload the same code it’s not working.
What does “not working” mean? It does not start at all or it starts, but throws errors or hangs?
How do you upload the code? I see UART2 is not connected, so it is either STM32CubeProgrammer or Jlink?
Code generated from the compilation is not including the RAK bootloader, so you must not do a Chip Erase before uploading a new firmware. Otherwise you loose the RAK bootloader and the device will not start the application.
Hello Bernd, I use STM32CubeProgrammer to program it, and the code works and when I enter on debug mode it’s doing all the processes but when I measure the current it does not increase at the sending process, but the first time that it’s working the current increased up to 100mA.
Also I have a reciever and didn’t recieve nothing from this RAK the second time I programmed it.
You could have a timing problem.
Your P2P settings and the payload length results in a “time on air” of nearly 1 second.
You repeat the loop every 1 second.