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

flash_word_erase and flash_word_write just before initializing BLE?!

Hi

I have a sample nrf51822 non BLE program (based on flashwrite_example) that successfully writes and reads flash (last flash page) in a loop, incrementing the number that is written. So, it (finally) works well...

Now I would like to put that code in a nrf51822 program that uses BLE/SDv7.

Imagine that per program execution I just need to access flash (erase and write) one time and always before calling ble_stack_init();

Is it safe to use that code to rewrite flash last page (4 bytes) before calling ble_stack_init(); or should I use the ble compliant functions (e.g sd_flash_page_erase)?

Thanks a lot.

Alex

Related