Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

DFU internal and external flash used

Hi everyone, 

I work with an nrf52840 and SDK15.3.0 and SD 140-6.1.1

I have a board with two micro controler, one nrf52840 and one STM32. 

I want to know if it is possible to use the internal flash to update the nrf application during DFU and an external flash for the STM32. 

The stm32 applicationis larger than the available space in the nrf52 bank 1.

Thanks in advance for your response. 

Best Regards, 

Etienne 

Parents
  • Hi

    Thank you for the explanation. I think this should indeed be possible, although some changes will be necessary to make in our bootloader to make the external image write to the SPI flash. I'd suggest that you do a check in update_data_addr_get() in the nrf_dfu_validation.c to make sure that DFU_FW_TYPE_EXTERNAL_APPLICATION is written to external flash instead of to the internal flash.

    Moving the image to the STM from the application in the nRF52 should be possible as well.

    Best regards,

    Simon

Reply
  • Hi

    Thank you for the explanation. I think this should indeed be possible, although some changes will be necessary to make in our bootloader to make the external image write to the SPI flash. I'd suggest that you do a check in update_data_addr_get() in the nrf_dfu_validation.c to make sure that DFU_FW_TYPE_EXTERNAL_APPLICATION is written to external flash instead of to the internal flash.

    Moving the image to the STM from the application in the nRF52 should be possible as well.

    Best regards,

    Simon

Children
Related