<?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>nrf52832 stops getting firmware via SWD after a while</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92357/nrf52832-stops-getting-firmware-via-swd-after-a-while</link><description>Hi, 
 
 We are using a module which includes nRF52832 in a custom board. After a while devices stop working but when we re-connect battery device starts working again exept the SWD interface. What can cause this ? Also we are using RTT for communication</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Oct 2022 09:08:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92357/nrf52832-stops-getting-firmware-via-swd-after-a-while" /><item><title>RE: nrf52832 stops getting firmware via SWD after a while</title><link>https://devzone.nordicsemi.com/thread/389152?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 09:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a00d8c3-f78b-4813-b36e-68d20a6b064c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Weird indeed.&lt;/p&gt;
&lt;p&gt;- Is there any&amp;nbsp;discrepancy between the supply voltage on the custom board vs. what the jlink support? E.g. if you are using a DK for SWD the target supply voltage must be around ~3V. &lt;br /&gt;- You have connected common ground between the jlink and target board yes? &lt;br /&gt;- And is there any difference if you force the pin reset pin to VDD?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 stops getting firmware via SWD after a while</title><link>https://devzone.nordicsemi.com/thread/389127?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 07:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eafd974-db9e-4a4d-bc03-e87f7acf8dcc</guid><dc:creator>oguzhanERG</dc:creator><description>&lt;p&gt;I am using sdk 14.2, i am using latest tools. For debugging i am using IO/CLK pins after i trying to enter debugging the MCU stops working untill power reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 stops getting firmware via SWD after a while</title><link>https://devzone.nordicsemi.com/thread/388263?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 07:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:952caff1-2180-4075-abe5-556f7bea415f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Seems like a bug of some sort, any help in updating to the latest nrf command line tools?&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download"&gt;https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What nRF5 SDK is this?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 stops getting firmware via SWD after a while</title><link>https://devzone.nordicsemi.com/thread/388156?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 13:09:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc9a1f89-9121-49c9-a1de-e1baafe3aa8d</guid><dc:creator>oguzhanERG</dc:creator><description>&lt;p&gt;SWD problem started after we implement rtt reading(SEGGER_RTT_GetKey).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  while(SEGGER_RTT_HasKey()) 
  {
    rtt_input_buffer[dataLength] = SEGGER_RTT_GetKey();
    if(rtt_input_buffer[dataLength] == &amp;#39;+&amp;#39;)
    {
      rtt_callback(rtt_input_buffer, dataLength);
      dataLength = 0;
      memset(rtt_input_buffer, 0, RTT_INPUT_BUFFER_LENGTH);
    }
    else
    {
      dataLength++;
      SEGGER_RTT_WriteString(0, &amp;quot;RTT\n&amp;quot;);
    }
  }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It feels like the code stucks in this while and can not use swd after this point ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog --recover not working. most of the devices are working fine btw.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 stops getting firmware via SWD after a while</title><link>https://devzone.nordicsemi.com/thread/388141?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 12:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfa24b08-64e1-4a30-8125-255f6633bbba</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is any direct relationship between the two observations:&lt;/p&gt;
&lt;p&gt;- 1 device stop working and when re-connect battery device start working again&lt;/p&gt;
&lt;p&gt;- 2 but not the SWD interface&lt;/p&gt;
&lt;p&gt;About 1 I think it could be an assert, in which case (if you are debugging) the project may end in the fault handler, and if you have built with debug it will stay there until a reset is triggered. In a real product I suggest to build with release build and not debug, to ensure that the product instead reset if there is an fault. Though you should likely look into trying to find the cause of what is hanging in your project, or possible look at the fault handler to find where the code may be asserting.&lt;/p&gt;
&lt;p&gt;About 2 this may be related to APPROTECT enabled, in which case only an eraseall or recover may make the SWD interface operation again. E.g. does &amp;#39;nrfjprog --recover&amp;#39; make the SWD interface work again?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>