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

sd_flash_page_erase(0x40) returns NRF_ERROR_FORBIDDEN with s140 5.0.0-3.alpha

I ran into an odd issue on nRF52840 using s140 version 5.0.0-3.alpha. My application erases and writes to a region of flash.

I've found that I'm able to erase the pages before and after address 0x40000 (Page 0x40), but if I call

sd_flash_page_erase(0x40);

The function always returns NRF_ERROR_FORBIDDEN.

As far as I can tell, I do not have any read/write protection enabled and the ACL registers are all in their default state. I've been able to work around the issue by remapping my storage storage location to avoid that particular page. But I'm curious if anyone can help diagnose the issue.

Related