Wrong version firmware

Hello,
To configure my rak 7204 i followed
https://doc.rakwireless.com/rak7204-lora-environmental-sensor/burning-the-firmware# , everything ok but then i mentioned, i have choosen the wrong version
then i downloaded the right version :https://downloads.rakwireless.com/en/LoRa/RAK7204/Firmware/RUI_RAK7204_V3.0.0.12.H.T_release.rar

the problem now is setting the boot mode
launching the serial port tool and entering the command at+set_config=device:boot give this result

launching the rak upgrade tool and selecting the right binary gives this result

What is the procedure to solve this ?

Kind regards :Tonnie

Your problem now, in my opinion, is unable to enter the boot mode, because the new version of the firmware of the BootLoader has been upgraded, so you must first before you upgrade the firmware upgrade BootLoader, but you did not, lead to can’t normal into the boot mode, you need to do is according to the document right now burn write new BootLoader, then to upgrade the firmware.
https://doc.rakwireless.com/rak7204-lora-environmental-sensor/burning-the-bootloader

Hello NIcholas,
I followed the instuctions burning the bootloader , but i receive the following error


error: uploading the options bytes bank: 0 failed

Please advice what to do ?/

i am sure shortend the boot line pins according the documentation but a can only upload one picture

GreetingsTonnie

I have repeated your problem, which is caused by your USB serial port wiring is not good or you pressed the reset button when reading the data. When you burn firmware, do not restart the board and keep the USB serial cable in good condition.

Hello,
I followed your advice with different usb cables
here the errorlog

15:31:57 : Serial Port COM5 is successfully opened.
15:31:57 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
15:31:57 : Activating device: OK
15:31:57 : Chip ID: 0x429
15:31:57 : BootLoader protocol version: 3.1
15:31:57 : Response received from device: NACK
15:31:57 : Error: Number of bytes to be be read at address: 0x1FF8004C not acknowledged!
15:31:58 : Response received from device: NACK
15:31:58 : Error: Number of bytes to be be read at address: 0x1FF8004C not acknowledged!
15:31:58 : Error: RDP level is set to 1 (0xBB), try using Read UnProtect (-rdu) command in order to remove the Read Out Protection.
15:31:58 : UPLOADING OPTION BYTES DATA …
15:31:58 : Bank : 0x00
15:31:58 : Address : 0x1ff80000
15:31:58 : Size : 24 Bytes
15:31:58 : Response received from device: NACK
15:31:58 : Error: Address not acknowledged: 0x1FF80000
15:31:58 : Error: Uploading Option Bytes bank: 0 failed
15:31:58 : Error: Initializing the Option Bytes failed
15:31:58 : Disconnected from device.

greetings Tonnie

Can you share picture of your RAK7204 board?


Hello: Here a picture
Greetings Tonnie


Can you confirm that the battery power and restart button are normal? Maybe you can’t change the battery.

Ok, lets proceed to next steps. Please download and install this CH/CP driver https://downloads.rakwireless.com/en/LoRa/Tools/CP210x_Windows_Drivers.zip
Re plug the RAK7204 usb to pc(with jumper placed on boot pins) and try to connect with STM32CubeProgrammer. If first try is not successful, press the reset button and try again. Please give as many output as you can.

Hello Nicholas,

I am not sure about the function of the restart button, when i press the button i do not see any leds, also when i reconnect the battery, is that normal
i haven’t seen any leds until now

The battery voltage is 3.57 volt

eply:
i installed the new drivers, and followed the instructions below
the battery voltage = 3.57 volt,
i am in doubt off the function from the rst button.
Q are there leds on the board ??
resume: there is connection between smt32cubeprogrammer and the RAK device

Ok, lets proceed to next steps. Please download and install this CH/CP driver https://downloads.rakwireless.com/en/LoRa/Tools/CP210x_Windows_Drivers.zip
Re plug the RAK7204 usb to pc(with jumper placed on boot pins) and try to connect with STM32CubeProgrammer. If first try is not successful, press the reset button and try again. Please give as many output as you can.

here below the results

test 1 first try

17:41:35 : STM32CubeProgrammer API v2.2.1
17:42:40 : Serial Port COM5 is successfully opened.
17:42:40 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
17:42:40 : Activating device: OK
17:42:40 : Chip ID: 0x429
17:42:40 : BootLoader protocol version: 3.1
17:42:40 : Response received from device: NACK
17:42:40 : Error: Number of bytes to be be read at address: 0x1FF8004C not acknowledged!
17:42:41 : Response received from device: NACK
17:42:41 : Error: Number of bytes to be be read at address: 0x1FF8004C not acknowledged!
17:42:41 : Error: RDP level is set to 1 (0xBB), try using Read UnProtect (-rdu) command in order to remove the Read Out Protection.
17:42:42 : UPLOADING OPTION BYTES DATA …
17:42:42 : Bank : 0x00
17:42:42 : Address : 0x1ff80000
17:42:42 : Size : 24 Bytes
17:42:42 : Response received from device: NACK
17:42:42 : Error: Address not acknowledged: 0x1FF80000
17:42:42 : Error: Uploading Option Bytes bank: 0 failed
17:42:42 : Error: Initializing the Option Bytes failed
17:42:42 : Disconnected from device.

test2 after pressing the rst button.

17:45:11 : Serial Port COM5 is successfully opened.
17:45:11 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
17:45:11 : Activating device: OK
17:45:11 : Chip ID: 0x429
17:45:11 : BootLoader protocol version: 3.1
17:45:11 : Response received from device: NACK
17:45:11 : Error: Number of bytes to be be read at address: 0x1FF8004C not acknowledged!
17:45:13 : Response received from device: NACK
17:45:13 : Error: Number of bytes to be be read at address: 0x1FF8004C not acknowledged!
17:45:13 : Error: RDP level is set to 1 (0xBB), try using Read UnProtect (-rdu) command in order to remove the Read Out Protection.
17:45:13 : UPLOADING OPTION BYTES DATA …
17:45:13 : Bank : 0x00
17:45:13 : Address : 0x1ff80000
17:45:13 : Size : 24 Bytes
17:45:13 : Response received from device: NACK
17:45:13 : Error: Address not acknowledged: 0x1FF80000
17:45:13 : Error: Uploading Option Bytes bank: 0 failed
17:45:13 : Error: Initializing the Option Bytes failed
17:45:13 : Disconnected from device.

Thanks in advance
Tonnie

Hi @dego,

As we answered in this forum topic, after you said this issue, we’ve tested in many ways and found the same issue which you said, but this issue can only be found when the device connects with STMProgrammerCube and the device is reset.

So can you please remove the jumper between BOOT and VDD, then connect it with your PC’s serial port tool, then show me the output on the serial port tool after resetting it?

So can you please remove the jumper between BOOT and VDD, then connect it with your PC’s serial port tool, then show me the output on the serial port tool after resetting it?

Here the results with no bootjumper and a reset

09:22:10 : STM32CubeProgrammer API v2.2.1
09:23:10 : Serial Port COM5 is successfully opened.
09:23:10 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
09:23:10 : Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again…
09:25:45 : Serial Port COM5 is successfully opened.
09:25:45 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
09:25:46 : Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again…

And here the log with the bootjumper placed and a reset

09:28:56 : STM32CubeProgrammer API v2.2.1
09:29:06 : Serial Port COM5 is successfully opened.
09:29:06 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
09:29:06 : Activating device: OK
09:29:06 : Chip ID: 0x429
09:29:06 : BootLoader protocol version: 3.1
09:29:06 : Response received from device: NACK
09:29:06 : Error: Number of bytes to be be read at address: 0x1FF8004C not acknowledged!
09:29:07 : Response received from device: NACK
09:29:07 : Error: Number of bytes to be be read at address: 0x1FF8004C not acknowledged!
09:29:07 : Error: RDP level is set to 1 (0xBB), try using Read UnProtect (-rdu) command in order to remove the Read Out Protection.
09:29:07 : UPLOADING OPTION BYTES DATA …
09:29:07 : Bank : 0x00
09:29:07 : Address : 0x1ff80000
09:29:07 : Size : 24 Bytes
09:29:07 : Response received from device: NACK
09:29:07 : Error: Address not acknowledged: 0x1FF80000
09:29:07 : Error: Uploading Option Bytes bank: 0 failed
09:29:07 : Error: Initializing the Option Bytes failed
09:29:07 : Disconnected from device.

Greetings Tonnie

Can you measure the voltage of the battery? Or you can try a different battery!

Hello Nicholas,
The voltage is 3.57 volt,and do not have a replace battery
Gr. Tony