Hi, 
OpenOCD fails to flash my nRF52 microcontroller. Below is some more 
explanations. 

The board 
======= 
I've got an nRF52 microcontroller from Nordic Semiconductor. More in particular 
the nRF52833 mcu on the PCA10100 board. See: 
[ https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52833-DK | 
https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52833-DK ] 

The OpenOCD version 
=============== 
This morning, I built OpenOCD with the xPacks method. It builds the most recent 
version of the master repo, which is dev01138 at the moment of writing. 

Flashing 
====== 
I succeeded to flash about two or three times this morning. Unfortunately, now 
I constantly get an error related to "protected sectors" that cannot be erased: 



(gdb) monitor nrf5 mass_erase 

Flash protection of this nRF device is not supported 

Failed to check chip's write protection 




(gdb) monitor flash erase_check 0 

successfully checked erase state 

Bank is erased 




(gdb) monitor program "C:/Users/Kristof/nordic_test/build/myApp.elf" 

target halted due to debug-request, current mode: Thread 

xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc 

** Programming Started ** 

Adding extra erase range, 0x0000387c .. 0x00003fff 

Cannot erase protected sector at 0x0 

failed erasing sectors 0 to 3 

embedded:startup.tcl:460: Error: ** Programming Failed ** 

in procedure 'program' 

in procedure 'program_error' called at file "embedded:startup.tcl", line 525 

at file "embedded:startup.tcl", line 460 
Your help is greatly appreciated. 

Notes 
==== 
I'm doing all this to support the nRF52 series in the free Embeetle IDE. I hope 
there is a solution to the problem that only involves OpenOCD - such that we 
don't 
need to add proprietary softwares (like JLink, ...) to Embeetle IDE. 


Kind regards, 
Kristof Mulier 
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to