How to update the RAK5205 firmware from a Mac

Yes that’s right.

The specific memory locations of the bootloader and the application code can be found here Low Level Development Reference | RAKwireless Documentation Center

OK, so the application binary should start at 0x8003000 and be of 116KiB in length, according to your documentation. However, the app binary you have supplied is way larger:

image

In fact, it is exactly 128KiB, which is the total size of the flash. Hence my impression that this binary contains the bootloader.

Thoughts?

I see your concern. However, we cannot exactly correlate the .hex size to the actual ROM usage. Because it is not the actual size uploaded to it. Hex files are in ASCII format. In theory, you’ll get twice the size of the actual ROM usage because each byte will be represented by 2 ASCII in the hex file.

Actually, if you open the FW V3.0.0.14 you’ll see that the size of the .hex file is 310 kilobytes. Way bigger because it has the bootloader code in it.

I was discussing the bin file, not the hex file. The bin file is a raw image of bytes, right? The RUI_RAK5205_V3.0.0.12.H.T1_Release.bin is 128KiB in size, hence my assertion that it must contain the bootloader as the flash itself is 128KiB in size.

Any more thoughts in relation to my response?

Hi @huntc ,

The V3.0.0.12 has no bootloader. It uses a different bootloader FW as I mentioned above. The bigger size is created because of some padding data. That size is fine :+1:

Thanks for the reply. Sorry to keep pursuing this, but I need to get the device back to V3.0.0.12. “.14” isn’t working for me. I don’t have a Windows machine; just Unix. There must be a way… I’m able to flash and interact with many types of microcontrollers and, honestly, I can’t believe I’m having so much difficulty with this one. Anything you can do to help further is greatly appreciated.

Hi @huntc ,

Sadly, there is no work around on the old RAK LoRa Button tool since it only runs in Windows. The new RAK DFU Tool solves that issue so it runs now on different OS platform. But the FW was changed too to include the bootloader and application FW in one .hex file. The V3.0.0.12 bin file can only be uploaded via the RAK LoRA Button tool.

That’s unfortunate and surprising. This RAK device is of no use to me. I’ve appreciated your help, but I will not look at RAK for any more devices.

Hi @huntc ,

That’s sad and it breaks my heart to hear that. I wish I can help you further with the situation :cry:

It is really a shame that old tool only works in windows. I am still hoping that you can consider to use our products with the improvements we are doing.