Hello.I 've got such problem with flashing some of the ESB protocol examples of NRF5 SDK.I use Adafruit Feather NRF52832 board with ST-LINK V2 debugger.https://www.adafruit.com/product/3406I work in Keil 5 IDE.When Ii try to load some of BLE examples (Periph Blinky, etc.), everything is ok. First I flash the Sortdevice and than directly an example.App works no problem.But when I try to flash ESB examples (like ESB low power prx) I've got such error.
I use default flash algorithm in debug settings.But once when I change smth I got it flashing, but than I again try to flash SoftDevice and BLE and after that again can't flash ESB...Any ideas what am I doing wrong?All my best.Ivan.
st-link utility gives an error to flash.But directly via Keil I can flash Soft Device and BLE examples no problem.Once I was lucky to flash ESB example, maybe that was correct erase of the chip.
Whoops! I read this one a bit too quick and missed the part about the ST-LINK. As awneil has already suggested, I would recommend using a debugger that is supported by us. I think the source of your issue is that a proper erase isn't performed before you try to reprogram the device.
Again, using (ab)using unsupported tools outside their designed scope is just complicating things.
Thanx for the answers! I 'll use J-link in this case.
So, finally I got it work properly with ST-LINK without any problem.
I add a 'softdevice erase flash' algo in a separate target with 'erase full chip' option, no program. And left only 'nrf52_xx' flash algo in default target with program option and no erase.
First, you erase full chip with first target, than you program it with second. Thats all.