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

sd_flash_page_erase or writes of 0xf7000 on nRF52840 SDK15

Hi!

We've got a product where we need to update the bootloader from within our main application. However while we can happily erase and write flash before 0xf7000 (obviously not the softdevice), if we try and erase and write to `0xf7000` then the processor resets with a watchdog reset (this could be caused by a hardfault) - *even* if the softdevice has been disabled.

Is there any way around this? We don't seem to get the behaviour with SDK12 on an nRF52832 - we can happily overwrite the bootloader while in our app at that point.

thanks!

- Gordon

Parents
  • Hi,

    The bootloader enables flash protection on the settings page now to prevent flash access outside of the bootloader (with calls to nrf_bootloader_flash_protect()). Is it possible to modify the bootloader in your case to disable this? You will also need to modify the nrf_dfu_settings.c module inside the bootloader to prevent the bootloader from restoring the settings page from backup on subsequent boot.

    Best regards,

    Vidar

Reply
  • Hi,

    The bootloader enables flash protection on the settings page now to prevent flash access outside of the bootloader (with calls to nrf_bootloader_flash_protect()). Is it possible to modify the bootloader in your case to disable this? You will also need to modify the nrf_dfu_settings.c module inside the bootloader to prevent the bootloader from restoring the settings page from backup on subsequent boot.

    Best regards,

    Vidar

Children
Related