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

Data transfer via DFU

My example has an in-flash-memory data file that needs to be updated much more often than the code. I thought of using DFU for this and like it says here..

devzone.nordicsemi.com/.../

.. implementing a new "filetype". Has anyone tried this? Which files in DFU would need to be modified?

I have built my example in SDK12.3 . Would it be worth moving up to a more reset DFU implementation for this?

Thx.

Parents
  • I don't think it would be very hard to make an app to send a file via BLE to the application. If you want to reuse the DFU app, you can also do that and just make your application so that the DFU app would think it's a bootloader and send the file.

    You can also of course modify the bootloader, so that when it see a certain flag (for example now we do 0x0104 as command to update application, you can create a new one, 0x0105 for instance). Then in the bootloader you store the data into specified place in flash.

    I don't think using SD card should be the best way here. You plan to unplug the card and plug it into PC and write the file there before plug the SD card back ?

Reply
  • I don't think it would be very hard to make an app to send a file via BLE to the application. If you want to reuse the DFU app, you can also do that and just make your application so that the DFU app would think it's a bootloader and send the file.

    You can also of course modify the bootloader, so that when it see a certain flag (for example now we do 0x0104 as command to update application, you can create a new one, 0x0105 for instance). Then in the bootloader you store the data into specified place in flash.

    I don't think using SD card should be the best way here. You plan to unplug the card and plug it into PC and write the file there before plug the SD card back ?

Children
No Data
Related