[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    Re: [OpenOCD-devel] OpenOCD dev01138 cannot flash to nRF52 due to protected sectors
From:       kristof.mulier () telenet ! be
Date:       2020-03-21 13:07:49
Message-ID: 1401313782.7752954.1584796069089.JavaMail.zimbra () telenet ! be
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Tomas, 

My apologies. I never used gerrit before, I'll look into it right 
after writing this email. 

The problem is fixed. The OpenOCD launcher accidentally pointed 
again to an older version. Such a stupid mistake. My sincere 
apologies. 

With dev01138, I get the following output: 



(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 

** Programming Finished ** 

As you can see - it works just fine. There is only that misleading output 
after the 'mass_erase' command. But that's not a big deal. 


You're right about the GDB 'load' command. It works on most boards, 
but not all. I've just tried it now - it seems to work on the Nordic boards :-) 

Kind greetings, 
Kristof Mulier 






Van: "Tomas Vanek" <tom_van@users.sourceforge.net> 
Aan: "kristof mulier" <kristof.mulier@telenet.be>, "openocd-devel" \
                <openocd-devel@lists.sourceforge.net> 
Verzonden: Zaterdag 21 maart 2020 13:49:58 
Onderwerp: Re: OpenOCD dev01138 cannot flash to nRF52 due to protected sectors 

Hi Kristof, 

I would highly appreciate if you register to our gerrit at [ \
http://openocd.zylin.com/ | http://openocd.zylin.com ]  and start using it instead of \
spamming the openocd-dev mailing list. 

Some time ago you wrote: 


Please let me know when you've finished the patch. 



If you were in gerrit, I would add you as a reviewer of 
[ http://openocd.zylin.com/5522 | http://openocd.zylin.com/5522 ] 

As I didn't find your mail in the gerrit users list I relied on you notice 
the gerrit message about new patch. Unfortunately it seems you didn't. 

Moreover the error message looks like you are still using an old openocd 
version (compiled from git master before December 12th, when 
[ http://openocd.zylin.com/5348 | http://openocd.zylin.com/5348 ] was merged) instead \
that one you've recently  compiled. 

BTW: If you use gdb, why don't you use gdb 'load' command? 
It's quite simple, as gdb 'load' re-reads image (if changed) then does both flash \
erase and programming.  I personally prefer using two gdb commands 'make' and 'load' \
over using any super-sophisticated IDE ;-) 

Tom 


On 21/03/2020 11:56, [ mailto:kristof.mulier@telenet.be | kristof.mulier@telenet.be ] \
wrote: 

BQ_BEGIN

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 

BQ_END


[Attachment #5 (text/html)]

<html><body><div style="font-family: Verdana, Arial, Helvetica, sans-serif; \
font-size: 10pt; color: #000000"><div><style type="text/css" scoped=""> p, li { \
white-space: pre-wrap; } </style></div><div><style>/*<![CDATA[*/p, li {
}
/*]]>*/</style></div><div>Hi Tomas,<br></div><div><br \
data-mce-bogus="1"></div><div>My apologies. I never used gerrit before, I'll look \
into it right<br data-mce-bogus="1"></div><div>after writing this email.<br \
data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>The problem is fixed. \
The OpenOCD launcher accidentally pointed</div><div>again to an older version. Such a \
stupid mistake. My sincere</div><div>apologies.<br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div>With dev01138, I get the following output:<br \
data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; \
text-indent: 0px; margin: 0px;"><!--StartFragment--><span style="font-family: courier \
new, courier, monaco, monospace, sans-serif;" data-mce-style="font-family: courier \
new, courier, monaco, monospace, sans-serif;"><span style="color: rgb(255, 102, 0);" \
data-mce-style="color: #ff6600;">    (gdb) </span><span style="color: rgb(51, 51, \
153);" data-mce-style="color: #333399;">monitor nrf5 mass_erase</span></span></p><p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; \
text-indent: 0px; margin: 0px;"><span style="font-family: courier new, courier, \
monaco, monospace, sans-serif;" data-mce-style="font-family: courier new, courier, \
monaco, monospace, sans-serif;">    \
Flash&nbsp;protection&nbsp;of&nbsp;this&nbsp;nRF&nbsp;device&nbsp;is&nbsp;not&nbsp;supported</span></p><p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; \
text-indent: 0px; margin: 0px;"><span style="font-family: courier new, courier, \
monaco, monospace, sans-serif;" data-mce-style="font-family: courier new, courier, \
monaco, monospace, sans-serif;">    \
Failed&nbsp;to&nbsp;check&nbsp;chip's&nbsp;write&nbsp;protection</span></p><p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px;" \
data-mce-style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; \
margin: 0px;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px;" \
data-mce-style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"><span \
style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, \
sans-serif;"><span style="color: rgb(255, 102, 0);" data-mce-style="color: #ff6600;"> \
(gdb) </span><span style="color: rgb(51, 51, 153);" data-mce-style="color: \
#333399;">monitor flash erase_check 0</span></span></p><p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; margin: \
0px;"><span style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, sans-serif;">   \
successfully&nbsp;checked&nbsp;erase&nbsp;state</span></p><p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; margin: \
0px;"><span style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, sans-serif;">   \
Bank&nbsp;is&nbsp;erased</span></p><p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-paragraph-type: empty; \
-qt-block-indent: 0; text-indent: 0px; margin: 0px;"><br></p><p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; \
text-indent: 0px; margin: 0px;"><span style="font-family: courier new, courier, \
monaco, monospace, sans-serif;" data-mce-style="font-family: courier new, courier, \
monaco, monospace, sans-serif;"><span style="color: #edd400;" data-mce-style="color: \
#edd400;"><span style="color: rgb(255, 102, 0);" data-mce-style="color: #ff6600;">    \
(gdb)</span> </span><span style="color: rgb(51, 51, 153);" data-mce-style="color: \
#333399;">monitor program \
"C:/Users/Kristof/nordic_test/build/myApp.elf"</span></span></p><p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; \
text-indent: 0px; margin: 0px;"><span style="font-family: courier new, courier, \
monaco, monospace, sans-serif;" data-mce-style="font-family: courier new, courier, \
monaco, monospace, sans-serif;">    \
target&nbsp;halted&nbsp;due&nbsp;to&nbsp;debug-request,&nbsp;current&nbsp;mode:&nbsp;Thread&nbsp;</span></p><p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; \
text-indent: 0px; margin: 0px;"><span style="font-family: courier new, courier, \
monaco, monospace, sans-serif;" data-mce-style="font-family: courier new, courier, \
monaco, monospace, sans-serif;">    \
xPSR:&nbsp;0x01000000&nbsp;pc:&nbsp;0xfffffffe&nbsp;msp:&nbsp;0xfffffffc</span></p><p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; \
text-indent: 0px; margin: 0px;"><span style="font-family: courier new, courier, \
monaco, monospace, sans-serif; color: rgb(0, 0, 255);" data-mce-style="font-family: \
courier new, courier, monaco, monospace, sans-serif; color: #0000ff;">    \
**&nbsp;Programming&nbsp;Started&nbsp;**</span></p><p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; margin: \
0px;"><span style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, sans-serif;">   \
Adding&nbsp;extra&nbsp;erase&nbsp;range,&nbsp;0x0000387c&nbsp;..&nbsp;0x00003fff</span></p><p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; \
text-indent: 0px; margin: 0px;"><span style="font-family: courier new, courier, \
monaco, monospace, sans-serif; color: rgb(0, 0, 255);" data-mce-style="font-family: \
courier new, courier, monaco, monospace, sans-serif; color: #0000ff;">    \
**&nbsp;Programming&nbsp;Finished&nbsp;**</span><!--EndFragment--></p></div><div><br \
data-mce-bogus="1"></div><div>As you can see - it works just fine. There is only that \
misleading output<br data-mce-bogus="1"></div><div>after the <span \
style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, \
sans-serif;">'mass_erase'</span> command. But that's not a big deal.<br \
data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div>You're right about the GDB <span style="font-family: \
courier new, courier, monaco, monospace, sans-serif;" data-mce-style="font-family: \
courier new, courier, monaco, monospace, sans-serif;">'load'</span> command. It works \
on most boards,<br data-mce-bogus="1"></div><div>but not all. I've just tried it now \
- it seems to work on the Nordic boards :-)<br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div>Kind greetings,<br \
data-mce-bogus="1"></div><div>Kristof Mulier<br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br></div><hr \
id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>Van: \
</b>"Tomas Vanek" &lt;tom_van@users.sourceforge.net&gt;<br><b>Aan: </b>"kristof \
mulier" &lt;kristof.mulier@telenet.be&gt;, "openocd-devel" \
&lt;openocd-devel@lists.sourceforge.net&gt;<br><b>Verzonden: </b>Zaterdag 21 maart \
2020 13:49:58<br><b>Onderwerp: </b>Re: OpenOCD dev01138 cannot flash to nRF52 due to \
protected sectors<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div \
class="moz-cite-prefix">Hi Kristof,</div>  <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">I would highly appreciate if you
      register to our gerrit at <a href="http://openocd.zylin.com" target="_blank" \
rel="nofollow noopener noreferrer">http://openocd.zylin.com</a><br \
data-mce-bogus="1"></div>  <div class="moz-cite-prefix">and start using it instead of \
spamming  the openocd-dev mailing list.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Some time ago you wrote:<br>
    </div>
    <div class="moz-cite-prefix">
      <blockquote>Please let me know when you've finished
        the patch.</blockquote>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">If you were in gerrit, I would add you
      as a reviewer of</div>
    <div class="moz-cite-prefix"><a href="http://openocd.zylin.com/5522" \
target="_blank" rel="nofollow noopener \
noreferrer">http://openocd.zylin.com/5522</a><br data-mce-bogus="1"></div>  <div \
class="moz-cite-prefix"><br>  </div>
    <div class="moz-cite-prefix">As I didn't find your mail in the
      gerrit users list I relied on you notice <br>
    </div>
    <div class="moz-cite-prefix">the gerrit message about new patch.
      Unfortunately it seems you didn't.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Moreover the error message looks like
      you are still using an old openocd</div>
    <div class="moz-cite-prefix">version (compiled from git master
      before December 12th, when</div>
    <div class="moz-cite-prefix"><a href="http://openocd.zylin.com/5348" \
target="_blank" rel="nofollow noopener noreferrer">http://openocd.zylin.com/5348</a> \
was  merged) instead that one you've recently</div>
    <div class="moz-cite-prefix">compiled.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">BTW: If you use gdb, why don't you use
      gdb 'load' command?</div>
    <div class="moz-cite-prefix">It's quite simple, as gdb 'load'
      re-reads image (if changed) then does both flash erase and
      programming.</div>
    <div class="moz-cite-prefix">I personally prefer using two gdb
      commands 'make' and 'load' over using any super-sophisticated IDE
      <span class="moz-smiley-s3">;-)</span><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Tom<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 21/03/2020 11:56,
      <a href="mailto:kristof.mulier@telenet.be" target="_blank" rel="nofollow \
noopener noreferrer">kristof.mulier@telenet.be</a> wrote:<br>  </div>
    <blockquote>
      
      <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000">  <div>
          </div>
        <div>
          <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000">  <div>Hi,<br>
            </div>
          </div>
          <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000">OpenOCD  fails to flash my nRF52 \
microcontroller. Below is some more  explanations.</div>
          <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000"><br>  </div>
          <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000"><strong>The  board</strong></div>
          <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000"><strong>=======</strong><br>  <div>I've got \
an <strong>nRF52</strong> microcontroller  from Nordic Semiconductor. More in \
particular<br>  </div>
            <div>the <strong>nRF52833</strong> mcu on the <strong>PCA10100</strong>
              board. See:<br>
            </div>
            <div><a href="https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52833-DK" \
rel="nofollow noopener noreferrer nofollow noopener noreferrer" \
target="_blank">https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52833-DK</a><br>
  </div>
          </div>
          <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000"><br>  </div>
          <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000"><strong>The  OpenOCD version</strong></div>
          <div style="font-family:'verdana' , 'arial' , 'helvetica' , \
sans-serif;font-size:10pt;color:#000000"><strong>===============</strong><br>  \
<div>This morning, I built OpenOCD with the xPacks method.  It builds the most \
recent<br>  </div>
            <div>version of the master repo, which is dev01138 at the
              moment of writing.<br>
            </div>
            <div><br>
            </div>
            <div><strong>Flashing</strong><br>
            </div>
            <div><strong>======</strong><br>
            </div>
            <div>I succeeded to flash about two or three times this
              morning. Unfortunately, now<br>
            </div>
            <div>I constantly get an error related to "protected
              sectors" that cannot be erased:<br>
            </div>
            <div><br>
            </div>
          </div>
          <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , \
sans-serif"><span style="color:rgb( 255 , 102 , 0 )">    (gdb) </span><span \
style="color:rgb( 128 , 0 , 128 )">monitor nrf5 mass_erase</span></span></p>  <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
Flash&nbsp;protection&nbsp;of&nbsp;this&nbsp;nRF&nbsp;device&nbsp;is&nbsp;not&nbsp;supported</span></p>
  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
                Failed&nbsp;to&nbsp;check&nbsp;chip's&nbsp;write&nbsp;protection</span></p>
                
          <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
 </p>
          <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , \
sans-serif"><span style="color:rgb( 255 , 102 , 0 )">    (gdb) </span><span \
style="color:rgb( 128 , 0 , 128 )">monitor flash erase_check 0</span></span></p>  <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
successfully&nbsp;checked&nbsp;erase&nbsp;state</span></p>  <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
                Bank&nbsp;is&nbsp;erased</span></p>
          <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
 </p>
          <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , \
sans-serif"><span style="color:#edd400"><span style="color:rgb( 255 , 102 , 0 )">    \
(gdb)</span> </span><span style="color:rgb( 128 , 0 , 128 )">monitor program \
"C:/Users/Kristof/nordic_test/build/myApp.elf"</span></span></p>  <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
target&nbsp;halted&nbsp;due&nbsp;to&nbsp;debug-request,&nbsp;current&nbsp;mode:&nbsp;Thread&nbsp;</span></p>
  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
xPSR:&nbsp;0x01000000&nbsp;pc:&nbsp;0xfffffffe&nbsp;msp:&nbsp;0xfffffffc</span></p>  \
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , \
sans-serif;color:rgb( 0 , 0 , 255 )">    \
**&nbsp;Programming&nbsp;Started&nbsp;**</span></p>  <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
Adding&nbsp;extra&nbsp;erase&nbsp;range,&nbsp;0x0000387c&nbsp;..&nbsp;0x00003fff</span></p>
  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , \
sans-serif;color:rgb( 255 , 0 , 0 )">    \
Cannot&nbsp;erase&nbsp;protected&nbsp;sector&nbsp;at&nbsp;0x0</span></p>  <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , \
sans-serif;color:rgb( 255 , 0 , 0 )">    \
failed&nbsp;erasing&nbsp;sectors&nbsp;0&nbsp;to&nbsp;3</span></p>  <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
embedded:startup.tcl:460:&nbsp;Error:&nbsp;**&nbsp;Programming&nbsp;Failed&nbsp;**</span></p>
  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
in&nbsp;procedure&nbsp;'program'&nbsp;</span></p>  <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
in&nbsp;procedure&nbsp;'program_error'&nbsp;called&nbsp;at&nbsp;file&nbsp;"embedded:startup.tcl",&nbsp;line&nbsp;525</span></p>
  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-family:'courier new' , 'courier' , 'monaco' , monospace , sans-serif">    \
at&nbsp;file&nbsp;"embedded:startup.tcl",&nbsp;line&nbsp;460</span></p>  <br>
        </div>
        <div>Your help is greatly
          appreciated.<br>
        </div>
        <div><br>
        </div>
        <div><strong>Notes</strong><br>
        </div>
        <div><strong>====</strong><br>
        </div>
        <div>I'm doing all this to support
          the<strong> nRF52</strong> series in the free Embeetle IDE. I
          hope<br>
        </div>
        <div>there is a solution to the
          problem that only involves OpenOCD - such that we don't<br>
        </div>
        <div>need to add proprietary
          softwares (like JLink, ...) to Embeetle IDE.<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Kind regards,<br>
        </div>
        <div>Kristof Mulier<br>
        </div>
      </div>
    </blockquote>
    <p>
</p><br></div></div></body></html>





_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic