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

Erasing flash when there is a BLE Connection

Hi! I'm running the Espruino JavaScript interpreter on a Nordic nRF51 (actually the BBC micro:bit), and I am finding it will totally reset itself when trying to erase a page of flash memory while also connected to BLE

BLE is enabled by default, and erasing the page works (via nrf_nvmc_page_erase(addr);) just fine normally (while the device is advertising). However if I connect to the Nordic UART service, and then execute the exact same code in the exact same way, the chip just resets.

Do you have any ideas what could be causing this or how to fix it?

thanks!

Parents Reply Children
Related