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

How to erase single byte form FLASH?

NRF_NVMC->ERASEPAGE

I think it take too long time.

So, I am try to erase single byte by this:

NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Een << NVMC_CONFIG_WEN_Pos);
while (NRF_NVMC->READY == NVMC_READY_READY_Busy);

*start_add = 0xFFFFFFFF;
while (NRF_NVMC->READY == NVMC_READY_READY_Busy);

NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos);
while (NRF_NVMC->READY == NVMC_READY_READY_Busy);

but it is not working, so how should I do?

Parents Reply Children
No Data
Related