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

Write in flash nrf51822

Hi all,

I am trying to write in flash but when i use:


pg_size = NRF_FICR->CODEPAGESIZE;
pg_num = NRF_FICR->CODESIZE - 1; // Use last page in flash

addr = (uint32_t *)(pg_size * pg_num);

flash_page_erase(addr);       <=====here is the problem


the system stopes there and doesn't continue... But this happens, just when i put this code into de main loop. If i write it before all the inicializations (TIMERS; ADC and BLE), everything works ok. 

Is anything wrong with BLE and Flash management ? 


do you know what is happening? 


Thanks a lot !


Related