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

Erasing of Master Boot Record Parameters Page hangs

Hi,

Here's the setup I currently have:
nRF52840
SDK 15.2.0
s140 6.1.0 softdevice
Secure Bootloader pca10056_usb


I'm trying to update the mbr_params_page (0xFE000) from my application. However whenever I try to erase it with either nrf_nvmc_page_erase(0xFE000) or sd_flash_page_erase(0xFE000 / 4096) my application hangs. This is strange as the bootloader itself can erase this page fine. The line it hangs on is NRF_NVMC->ERASEPAGE = 0xFE000; (This is with the softdevice disabled)

Deleting the bootloader_settings_page (0xFF000) works as expected.

I have checked the ACL registers and the memory isn't in a protected region. My application linker file also has this section reserved so it shouldn't be using it

What could be the cause for not being able to erase this particular page?

Related