This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Dual Bank DFU and bootloader settings page

Hi,

I want to build a DFU mechanism with our own protocol, which means I build up two BLE services 'read' and 'write' where I can transmit the new application firmware, store it in flash and then begin to update the device. I want to use dual bank layout for flash, because of security reasons.

In a first try I didn't use BLE writes, but a transmit over TWI which is working. Now I have the firmware image in the flash. Now my questions:

How do I configure the memory to dual bank use? Does it have to be done in teh bootloader settings page? By now bank1 and bank0 have the same addresses and I don't know how to change address for bank1.

How do I start the bootloader, so that it copies the application from bank 1 to bank 0?

Thanks for the help in advance!!!

Kind regards

Sascha

  • Hi,

    just to inform you. I've changed the Bootloader settings as you suggested in your first reply. That didn't fully work. What was missing was the size of the firmware image for bank 1. When I then do a system reset the bootloader begins to update bank 0.

    That was what I wanted to achive!! :) So thank you very much for your help, I appreciate it very much!!

    Thanks and the case can be closed now Slight smile

Related