<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into</link><description>Hello! I have a custom board with a NRF52832 chip that is working fine with the last program I flashed into. But since yesterday I can’t access it to load a new code (flash again) and neither I can’t recover it. 
 I’m using J-Link and I have tried to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Mar 2020 07:52:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into" /><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238436?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 07:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d6a0ca4-3057-4b8b-9e45-557f96a6f683</guid><dc:creator>Leti</dc:creator><description>&lt;p&gt;Everything is fine. I have done more tests and even with the code I thought the problem started and I am not causing any errors. Now it is being detecting always the device. I can load any code and also I can recover it without any problem.&lt;/p&gt;
&lt;p&gt;So it seems that the problem was that those programming pins were &amp;quot;damaged&amp;quot; and that they were &amp;quot;reset&amp;quot; by heating the micro. And maybe the fact of not having the lastest updates was also another problem.&lt;/p&gt;
&lt;p&gt;The question that remains is to know how I achieved to &amp;quot;damage&amp;quot; them.&lt;/p&gt;
&lt;p&gt;Anyway, thank you very much for all Jorgen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238357?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 15:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a0f7b02-14ae-45ff-8259-0feda06c02c1</guid><dc:creator>Leti</dc:creator><description>&lt;p&gt;Uhmmm. We have heat a bit the micro and now EVERYTHINGS works correctly again! I see the debug messages in the J-Link RTT Viewer and also I can flash code again.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand what could have happend.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you are right that only those pins were &amp;quot;locked out&amp;quot; and heating the micro we have &amp;quot;reset&amp;quot; something.&lt;/p&gt;
&lt;p&gt;By the moment I can say the problem is fixed. Althought I&amp;#39;m going to do few more test. I&amp;#39;ll tell you tomorrow.&lt;/p&gt;
&lt;p&gt;Thanks for all Jorgen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238351?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 15:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b4b721a-d1ab-4534-85e9-a60d8a5d9110</guid><dc:creator>Leti</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into/238319"]Can you still try to run the recover command in nrfjprog multiple times, to make sure there is no issues with getting the debugger connected due to this errata.[/quote]
&lt;p&gt;I tried with a .bat with a loop. And it ran more than 200 times.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/recover.bat"&gt;devzone.nordicsemi.com/.../recover.bat&lt;/a&gt;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into/238319"]Which application image did you flash to the board before the issue occurred?&amp;nbsp;[/quote]
&lt;p&gt;The last version of my custome code. It is based on one of the ble_peripheral example.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into/238319"]I mean an image of how you have powered the board and how it is connected to the debugger.[/quote]
&lt;p&gt;In a photo you are not going to see to much. I also&amp;nbsp;attach the schematic related to this.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1583421205017v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Power by a battery.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1583421366836v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1583421807729v3.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20200305_5F00_161646.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20200305_5F00_161753.jpg" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20200305_5F00_161718.jpg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238323?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 14:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb19d939-df91-481c-8db7-51f34b5e3b29</guid><dc:creator>Leti</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into/238299"]Is it powered correctly, and is the SWD pins correctly connected?[/quote]
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f648.svg" title="See no evil"&gt;&amp;#x1f648;&lt;/span&gt; Right now I really don&amp;#39;t know if I lied to you. Now I am no longer able to connect with the target from the J-Link RTT Viewer. In fact I think now my target has definitely dead because I don&amp;#39;t see a correct running. But I was able to program it many times so I understand that it was correctly powered and correctly connected, or shouldn&amp;#39;t I?&lt;/p&gt;
&lt;p&gt;May be only those pins broke. But do you know possible causes that can cause that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238319?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 13:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09e27cf7-65f8-46ab-9775-b4029d1b695c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Leti"]We don&amp;#39;t have WDT enabled so the answer is no.[/quote]
&lt;p&gt;Can you still try to run the recover command in nrfjprog multiple times, to make sure there is no issues with getting the debugger connected due to this errata.&lt;/p&gt;
[quote user="Leti"]Sorry. I don&amp;#39;t understand what do you exactly want. Do you refer to the schematic?[/quote]
&lt;p&gt;I mean an image of how you have powered the board and how it is connected to the debugger.&lt;/p&gt;
&lt;p&gt;Which application image did you flash to the board before the issue occurred?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238312?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 13:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0e0a4c1-2b50-477a-8257-3e6a4ee4efb9</guid><dc:creator>Leti</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into/238306"]Did you flash some firmware running the watchdog? Please see &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_176.html"&gt;this errata&lt;/a&gt;.[/quote]
&lt;p&gt;We don&amp;#39;t have WDT enabled so the answer is no.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into/238306"]Do you have a different debugger that you can try?[/quote]
&lt;p&gt;Yes. We have another and we have test with both of them with the same results.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into/238306"]Can you post an image of your setup and connections?[/quote]
&lt;p&gt;Sorry. I don&amp;#39;t understand what do you exactly want. Do you refer to the schematic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238306?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 13:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b995ed1-3133-4018-913c-0e4242287fc4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you flash some firmware running the watchdog? Please see &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_176.html"&gt;this errata&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have a different debugger that you can try? Can you post an image of your setup and connections?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238303?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 13:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ea0d8c0-f07e-4ac4-95b1-43d30fe0b8cc</guid><dc:creator>Leti</dc:creator><description>&lt;p&gt;Hi Jorgen!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, it is powered correctly. In fact debug messages appear in the J-Link RTT Viewer.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/58677/unable-to-recover-nrf52832-running-correctly-with-the-last-code-flashed-into/238299"]The --coprocessor option should not be used with nRF52 devices.[/quote]
&lt;p&gt;Ok. I won&amp;#39;t use it more. I read it in some questions and I tried it just out of desperation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover NRF52832 running correctly with the last code flashed into.</title><link>https://devzone.nordicsemi.com/thread/238299?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 13:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57034da5-b645-4864-b1d5-ccd1ce4df416</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like the debugger cannot find the device. Is it powered correctly, and is the SWD pins correctly connected?&lt;/p&gt;
&lt;p&gt;The --coprocessor option should not be used with nRF52 devices.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>