nRF51822 and OpenOCD: Cannot erase protected sector at 0x0

If you receive this error message:

> flash write_image erase openbeacon.bin 0
auto erase enabled
nRF51822-QFAA(build code: G0) 256kB Flash
Cannot erase protected sector at 0x0
failed erasing sectors 0 to 5

Then execute this command to erase all protected flash bits:

> nrf51 mass_erase
> 

Source: https://github.com/interoberlin/nrf51-playground/issues/2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s