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

nrf1822 dfu OTA

Hi Nordic Tech support team,

I have some questions about nrf51822 dfu OTA. Nrf51822 application code can't be more than 144K,however ,my application code have 196K because of external device connecting with nrf1822. Nrf51822 needs load external device’s firmware. Now I split external device’s firmware into two parts. I have to build two application code to OTA twice for loading external device’s firmware completely.

If I could pack my application firmware with external device’s firmware to one packet. Loading application firmware to internal flash and external device’s firmware to external flash ? If this ,I can put my external device’s firmware into external flash and load external device’s firmware by external flash not occupancy internal flash resources.

thanks

Parents
  • My suggestion would be to create a init packet for both firmware images and write the application firmware and external device firmware directly to the external flash when you receive DFU data packets. This way you only need to replace the pstorage calls in the bootloader. Once you've written the entire firmware packet to the external flash, then I suggest that you reset the nRF51. The nRF51822 will then restart in the bootloader and can then readback its application and perform and the external device can readback its application.

Reply
  • My suggestion would be to create a init packet for both firmware images and write the application firmware and external device firmware directly to the external flash when you receive DFU data packets. This way you only need to replace the pstorage calls in the bootloader. Once you've written the entire firmware packet to the external flash, then I suggest that you reset the nRF51. The nRF51822 will then restart in the bootloader and can then readback its application and perform and the external device can readback its application.

Children
No Data
Related