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

sd_flash_page_erase failing with s120.

Hey.

Hope this was not asked before. At least I did not find it.

I'm trying the ble_app_hrs_c on s120. Got it to build with gcc (d'oh) and got the serial logging to work. Now the problem is, sd_flash_page_erase() from pstorage_init() returns 0x0000000f, which means NRF_ERROR_FORBIDDEN. I'm pretty new to nrf, am I missing something obvious?

PSTORAGE_SWAP_ADDR is 0x3f800. I moved pstorage down one page just in case.

I've also noticed that unlike S110, S120 does not have a part that is written to UICR. I've erased my flash, so UICR is all FFs, which in my understanding means all flash is CR1, which looks sane, but maybe I'm missing something.

P.S. Great work on the software part, Nordic. For someone with a Linux kernel background, it's very clear how stuff works, and even though it's got plenty of rough edges right now, it's easy to figure out what's going on.

Related