<?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>Non-halting debugging on nrf52840dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110701/non-halting-debugging-on-nrf52840dk</link><description>I am following following procedure to use Non-halting debugging on nrf52840dk with simple app. 
 https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize/debugging.html#enabling-non-halting-debugging-with-cortex-m-debug-monitor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 May 2024 13:36:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110701/non-halting-debugging-on-nrf52840dk" /><item><title>RE: Non-halting debugging on nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/482301?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 13:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9705474f-f1aa-4b64-a1a5-133e81337d82</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, there can be issues when setting a breakpoint inside an IRQ handler or during haltmode debugging. This has been discussed in this forum before, and I guess this is not a limitation of the segger debugger but rather the nature of the interrupt handler and debugging in halt mode. Take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107564/gdb-debugger-seems-to-crash-when-stepping-inside-an-irq-handler"&gt;this old thread&lt;/a&gt;.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107674/cannot-perform-halt-mode-debugging-by-keeping-break-point-for-nrf52840-and-using-segger-embedded-studio"&gt;This thread&lt;/a&gt;&amp;nbsp;is also discussing something very similar.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non-halting debugging on nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/481429?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 04:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5373c5a4-7e42-4e4a-8034-bd0780738ad0</guid><dc:creator>maheswara</dc:creator><description>&lt;p&gt;The issue seen only when breakpoint is set in IRQ handlers?&lt;/p&gt;
&lt;p&gt;Also same issue is seen with halt debugging also&lt;/p&gt;
&lt;p&gt;Is there any limitation&amp;nbsp; to out breakpoint in IRQ handler with Segger debugger?&lt;/p&gt;
&lt;p&gt;Any remedy ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non-halting debugging on nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/481360?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 05:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4f29237-b83c-458d-a57d-c416b53d0eb9</guid><dc:creator>maheswara</dc:creator><description>&lt;p&gt;Logs below:&lt;/p&gt;
&lt;p&gt;*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***&lt;br /&gt;[00:01:12.815,765] &amp;lt;inf&amp;gt; nrfx_sample: nrfx_gpiote sample on nrf52840dk_nrf52840&lt;br /&gt;[00:01:12.815,826] &amp;lt;inf&amp;gt; nrfx_sample: nrfx_gpiote initialized&lt;br /&gt;[00:01:12.815,826] &amp;lt;inf&amp;gt; nrfx_sample: (D)PPI configured, leaving main()&lt;br /&gt;[00:01:28.113,189] &amp;lt;inf&amp;gt; nrfx_sample: GPIO input event callback&lt;br /&gt;[00:01:28.113,220] &amp;lt;err&amp;gt; os: ***** HARD FAULT *****&lt;br /&gt;[00:01:28.113,220] &amp;lt;err&amp;gt; os: Debug event&lt;br /&gt;[00:01:28.113,250] &amp;lt;err&amp;gt; os: r0/a1: 0x00000000 r1/a2: 0x00000000 r2/a3: 0x40011000&lt;br /&gt;[00:01:28.113,250] &amp;lt;err&amp;gt; os: r3/a4: 0x0000773f r12/ip: 0x00000001 r14/lr: 0x00008221&lt;br /&gt;[00:01:28.113,250] &amp;lt;err&amp;gt; os: xpsr: 0x21000016&lt;br /&gt;[00:01:28.113,281] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0000065c&lt;br /&gt;[00:01:28.113,311] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0&lt;br /&gt;[00:01:28.113,311] &amp;lt;err&amp;gt; os: Fault during interrupt handling&lt;/p&gt;
&lt;p&gt;[00:01:28.113,342] &amp;lt;err&amp;gt; os: Current thread: 0x20000720 (idle)&lt;br /&gt;�*** Booting nRF Connect SDK v3.5.99-ncs1-1 *** system&lt;br /&gt;[00:00:00.252,075] &amp;lt;inf&amp;gt; nrfx_sample: nrfx_gpiote sample on nrf52840dk_nrf52840&lt;br /&gt;[00:00:00.252,136] &amp;lt;inf&amp;gt; nrfx_sample: nrfx_gpiote initialized&lt;br /&gt;[00:00:00.252,136] &amp;lt;inf&amp;gt; nrfx_sample: (D)PPI configured, leaving main()&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To avoid confusion I am using the sample app nrfx at c:\ncs\v2.6.1\zephyr\samples\boards\nrf\nrfx\&lt;/p&gt;
&lt;p&gt;:/mnt/c/ncs/v2.6.1/zephyr/samples/boards/nrf/nrfx/build/zephyr$ addr2line -e zephyr.elf 0x0000065c&lt;br /&gt;C:\ncs\v2.6.1\zephyr\samples\boards\nrf\nrfx\build/C:/ncs/v2.6.1/zephyr/samples/boards/nrf/nrfx/src/main.c:38&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do i need any other config&amp;nbsp; to get this non-halting debugging working ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;screen shot of the prj.conf along with error&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/non_2D00_halting_2D00_dbg2024_2D00_05_2D00_01-112231.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non-halting debugging on nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/481202?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 07:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc90ad51-a0f6-4967-9ddc-ea72256f244f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Mahesh,&lt;/p&gt;
&lt;p&gt;It is important to understand the context of the hardfault to have a proper debugging direction.&lt;/p&gt;
&lt;p&gt;As mentioned in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109643/flash-overflow/480864"&gt;this&lt;/a&gt; thread, can you enable these below configs in your prj.conf of your project, compile, flash and rerun your firmware to get more logs on the hardfault?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_THREAD_ANALYZER=y
CONFIG_THREAD_NAME=y
CONFIG_THREAD_MONITOR=y
CONFIG_DEBUG_OPTIMIZATIONS=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non-halting debugging on nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/481072?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 12:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bbb7c48-b246-459c-8f00-1638ffcce524</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Mahesh&lt;/p&gt;
&lt;p&gt;Due to some sickness internally and a bank holiday in Norway on Wednesday May 1st, we will need to get back to you on Thursday for some proper feedback on this case. Thank you for your patience. In the meantime, can you share&amp;nbsp;some details on what exactly this &amp;quot;simple app&amp;quot; is doing and what drivers/libraries it is using?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>