<?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>Find where CPU stuck</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62004/find-where-cpu-stuck</link><description>Hi, 
 I&amp;#39;m working with NRF52832 which operates on battery in low-power mode. 
 The unit samples and transmit data (via modem) 2 times a day. 
 After few weeks / months of operation the unit get stuck ! 
 I connected JLINK RTT VIEWER through DEBUG PORT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Jun 2020 10:56:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62004/find-where-cpu-stuck" /><item><title>RE: Find where CPU stuck</title><link>https://devzone.nordicsemi.com/thread/252570?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2020 10:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd8c1308-6621-43e3-bab6-c3f637f4ac5a</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Jlink commander can connect to the MCU w/o reset or halt. You cannot access CPU regs without halting the core, but you &lt;strong&gt;can&lt;/strong&gt; read memory (RAM) and peripherial registers via the mem (mem8, mem32) command.&lt;/p&gt;
&lt;p&gt;Addresses of variables in RAM can be found in the map file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find where CPU stuck</title><link>https://devzone.nordicsemi.com/thread/252569?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2020 10:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b240481d-3a47-4a0f-aff5-b2e36db89268</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So study the IAR &lt;strong&gt;documentation&lt;/strong&gt; and/or contact &lt;strong&gt;IAR&lt;/strong&gt; support to find if they have a similar feature, and how to use it.&lt;/p&gt;
&lt;p&gt;At the price you pay for IAR, I would certainly hope they do ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find where CPU stuck</title><link>https://devzone.nordicsemi.com/thread/252568?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2020 10:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8d15abc-a62c-4d42-bbd5-003f76dbcfac</guid><dc:creator>yuval</dc:creator><description>&lt;p&gt;Using IAR 8&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find where CPU stuck</title><link>https://devzone.nordicsemi.com/thread/252563?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2020 09:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bccc511-7c4c-415d-9559-fc4395af69ed</guid><dc:creator>awneil</dc:creator><description>[quote userid="18378" url="~/f/nordic-q-a/62004/find-where-cpu-stuck"]Is there a way to see where in the software the CPU is (Like reading Program Counter) or &amp;quot;debug&amp;quot; (but without program &amp;amp; reset)&amp;nbsp; [/quote]
&lt;p&gt;You haven&amp;#39;t said what IDE you&amp;#39;re using.&lt;/p&gt;
&lt;p&gt;With Segger Embedded Studio (SES), you can &amp;#39;attach to target&amp;#39; - which doesn&amp;#39;t do a program or reset...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>