<?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>Debugger stops after some wakeups only in debug mode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86523/debugger-stops-after-some-wakeups-only-in-debug-mode</link><description>Hi, Using windows 10 OS, and SES v5.40. I am using nRF52833 device in my project along with nRF5_SDK_for_Thread_and Zigbee_v4.1.0_32ce5f8 SDK. 
 I am running an application where it has to wakeup every 60 seconds and then goes to sleep. 
 I have I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Apr 2022 10:59:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86523/debugger-stops-after-some-wakeups-only-in-debug-mode" /><item><title>RE: Debugger stops after some wakeups only in debug mode.</title><link>https://devzone.nordicsemi.com/thread/362816?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 10:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab7d1819-e449-45d4-8de4-890abeef9de2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Abhijith.Desai"]we have problems with thread to join the network it halts at some point and doesnt proceed further.[/quote]
&lt;p&gt;Can you post the log from the application and a sniffer trace showing the on-air communications when this issue occurs?&lt;/p&gt;
[quote user="Abhijith.Desai"]Also we see different flash size when it is built in debug mode and release mode.&amp;nbsp;[/quote]
&lt;p&gt;This is expected if one configuration have the DEBUG/DEBUG_NRF symbols defined and the other does not. These symbols will include additional error handling/assert functions, along with debug strings, which will increase flash usage.&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><item><title>RE: Debugger stops after some wakeups only in debug mode.</title><link>https://devzone.nordicsemi.com/thread/362102?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 13:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a95f7aa-80cb-4f00-9431-fc4098be5534</guid><dc:creator>Abhijith.Desai</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is thread only, and along with the application we are running for a motor.&lt;/p&gt;
&lt;p&gt;and i was just trying to modify certain settings with optimization levels, earlier it was set to &amp;quot;NONE&amp;quot; and i changed it to LEVEL 2 and it seems like that issue i reported doesnt exist, but we have problems with thread to join the network it halts at some point and doesnt proceed further.&lt;/p&gt;
&lt;p&gt;We are using DFU bootloader along with the current project, and we arranged the memory segment this way.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649250830318v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also we see different flash size when it is built in debug mode and release mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649250875829v2.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/pastedimage1649250949416v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugger stops after some wakeups only in debug mode.</title><link>https://devzone.nordicsemi.com/thread/361599?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 15:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef844607-a005-4f7a-991a-5f6f8f3f2a9d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do your application include BLE/softdevice, or is it Thread-only?&lt;/p&gt;
&lt;p&gt;Can you upload the full application, for us to reproduce/debug the issue? Usually, the only difference between debug and release mode is the DEBUG/DEBUG_NRF symbols, and the optimization level of the compiler. Have you made any other modifications to the project configurations?&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><item><title>RE: Debugger stops after some wakeups only in debug mode.</title><link>https://devzone.nordicsemi.com/thread/361234?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 12:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f482bc-d10f-46b1-ac37-ac6e9694ab61</guid><dc:creator>Abhijith.Desai</dc:creator><description>&lt;p&gt;Just for more information i tried to debug with OZONE debugger and found this log when ever the debugger stops.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Disabled output of control characters&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;J-Link software found at: C:/Program Files/SEGGER/Ozone V2.70/JLink_x64.dll&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target core support plugin loaded.: C:/Program Files/SEGGER/Ozone V2.70/Plugins/Core/CorePluginARM.dll&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project.SetDevice (&amp;quot;nRF52833_xxAA&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project.SetHostIF (&amp;quot;USB&amp;quot;, &amp;quot;&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project.SetTargetIF (&amp;quot;SWD&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project.SetTIFSpeed (&amp;quot;4000&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project.AddSvdFile (&amp;quot;$(InstallDir)/Config/CPU/Cortex-M4F.svd&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;File path resolved: &amp;quot;$(InstallDir)/Config/CPU/Cortex-M4F.svd&amp;quot; was found at &amp;quot;C:/Program Files/SEGGER/Ozone V2.70/Config/CPU/Cortex-M4F.svd&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;RTT active&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;File.Open: completed in 430 ms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;File.Open (&amp;quot;C:/Users/Abhijith.Desai/Desktop/New 1.9.0/Output/Debug/Exe/SV21-T-TH-17-077-Siemens.elf&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;246 source files not found&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debug.Start();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Device &amp;quot;NRF52833_XXAA&amp;quot; selected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;InitTarget() start&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;InitTarget() end&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Found SW-DP with ID 0x2BA01477&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DPIDR: 0x2BA01477&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CoreSight SoC-400 or earlier&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Scanning AP map to find all available APs&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AP[1]: JTAG-AP (IDR: 0x02880000)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Iterating through AP map to find AHB-AP to use&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AP[0]: Core found&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Found Cortex-M4 r0p1, Little endian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CoreSight components:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ROMTbl[0] @ E00FF000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[0][1]: E0001000 CID B105E00D PID 003BB002 DWT&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[0][2]: E0002000 CID B105E00D PID 002BB003 FPB&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[0][3]: E0000000 CID B105E00D PID 003BB001 ITM&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[0][5]: E0041000 CID B105900D PID 000BB925 ETM&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Connected to target device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reset: Reset device via AIRCR.SYSRESETREQ.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;T-bit of XPSR is 0 but should be 1. Changed to 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elf.GetBaseAddr(); // returns 0x1000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target.ReadU32 (0x00001000); // returns 0x2001F000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target.SetReg (&amp;quot;SP&amp;quot;, 0x2001F000);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target.ReadU32 (0x00001004); // returns 0x1201&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target.SetReg (&amp;quot;PC&amp;quot;, 0x1201);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elf.GetBaseAddr(); // returns 0x1000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target.ReadU32 (0x00001000); // returns 0x2001F000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 88 (0x00000058)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 89 (0x00000059)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 90 (0x0000005A)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target.SetReg (&amp;quot;SP&amp;quot;, 0x2001F000);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target.ReadU32 (0x00001004); // returns 0x1201&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Target.SetReg (&amp;quot;PC&amp;quot;, 0x1201);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Executed J-Link command &amp;quot;SetRTTAddr 0x2000ce28&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 88 (0x00000058)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 89 (0x00000059)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 90 (0x0000005A)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debug.Continue();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Window.Show (&amp;quot;Call Stack&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Window.Add (&amp;quot;Watched Data&amp;quot;, &amp;quot;CSA_ApplicationState&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Window.Add (&amp;quot;Data Graph&amp;quot;, &amp;quot;CSA_ApplicationState&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;T-bit of XPSR is 0 but should be 1. Changed to 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 88 (0x00000058)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 89 (0x00000059)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugger tries to read unknown register with index 90 (0x0000005A)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648817054669v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>