I am trying to find out the issue with my nonvolatile driver. I currently try running
nrf_nvmc_page_erase((uint32_t)(page_address));
However, that doesn't seem to affect the system at all. There is no erasing of the page. Then I have tried
sd_flash_page_erase((((uint32_t)page_address) >> 10));
At which point I get a hard fault handler. I am using the s130 v1.0 and SDK 8.0. The softdevice is not enabled at this point.
I have attached my nonvolatile driver and header file. nonvolatile.c nonvolatile.h