<?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>52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57287/52840dk-segger-debug-exception-when-using-softdevices</link><description>Debugging in Segger serial example from mesh 
 It runs and responds to commands, but when paused or hits breakpoint - single step or continue gets to address 0xa60, continue logs the message: 
 app_error_weak.c, 96, Softdevice assert: 154516:0 
 Are there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2020 11:54:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57287/52840dk-segger-debug-exception-when-using-softdevices" /><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232805?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 11:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21177258-d758-4c12-8b33-58e6b065615d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I didn&amp;#39;t notice before now that you are using Mesh. I am not sure what DFU example you refer to, or what bootloader you are pointing to (mesh/&amp;quot;normal&amp;quot;). I believe it is better that you follow it up in the ticket you already have. I will ask the engineer that is assigned to that ticket to have a look at it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232740?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 08:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c8f494-a869-45d1-ab19-7c6cd45c5f4a</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;Yes, I got the app note about it from Segger, definitely will try it, but at the moment it is a second priority. I need to resolve the dfu examples issues.&lt;/p&gt;
&lt;p&gt;Posted some questions which could help forward, but still not clear why dfu example overwrites bootloader at 0x1f000, why there is no bootloader for 840, if I load bootloader with nrfjprog, how is the UICR getting set.&lt;/p&gt;
&lt;p&gt;In parallel building some framework to comm with serial, cannot use Python on my controller - Coldfire on Netburner module.&lt;/p&gt;
&lt;p&gt;Could you see the case 243613? There is no reply at all for 3 days ...&lt;/p&gt;
&lt;p&gt;Piotr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232737?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 08:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5baae0e7-d109-47a0-868a-96ac00657b68</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Your application will not work if the softdevice asserts. The connection will break. Either way, you should just try to not start advertising or connecting if you want to step in your code. If that isn&amp;#39;t viable, then you must use the logging tools.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is something called &lt;a href="https://github.com/NordicPlayground/j-link-monitoring-mode-debugging/blob/master/pca10040/s132/arm5_no_packs/README.md" rel="noopener noreferrer" target="_blank"&gt;Monitor Mode Debugging&lt;/a&gt;. I have not tested this myself, but that may be something you want to look into if you need to step through parts of your code. It is a bit of work to get it up and running, but if you need it, I guess you can try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232637?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 15:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258bd129-a60f-4f52-ac86-300bdded2ab6</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;Is there a way to disable this hardfault handler? I will have a lot of debugging of non radio related code - our app interface, and restarting app after each breakpoint would be painful. I need to implement comm with a host over UART, and would like to do it with softdevice in place. Other option would be creating an app without softdevice, but this will take some time.&lt;/p&gt;
&lt;p&gt;Piotr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232627?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 14:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffb3147c-4538-4d8f-baee-bb69e2871b3b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It is not a debug error. It is the hardfault handler for the nRF caused by the softdevice missing the events. There is a logging module in the SDK which is a handy tool. You see a lot of the NRF_LOG_INFO. Depending on whether you use the RTT or the UART backend (selected in sdk_config.h) it will be output on either the RTT or the UART.&lt;/p&gt;
&lt;p&gt;If you are using Segger Embedded Studio (SES), I can recommend using the RTT backend, and it will show when you are debugging. If you are using SES and RTT, please set&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 (also in sdk_config.h).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232605?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 14:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac40a8bd-48a6-47e2-91f9-1be9984916d0</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;The issue of the JTAG debugger stopping at 0xa60 after continue from suspend or breakpoint.&lt;/p&gt;
&lt;p&gt;It happens on both 840dk, and 832dk. I agree with you that it is caused by not serviced event in the soft device.&lt;/p&gt;
&lt;p&gt;I am using segger, but the gui does not matter, this is in the rtl of the debugger on silicon.&lt;/p&gt;
&lt;p&gt;But if you say, this is a normal operation procedure, to restart the app after each breakpoint, probably this has to be like that. I need to implement some realtime debugging support through the UART or sth like that.&lt;/p&gt;
&lt;p&gt;Piotr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232594?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 14:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:954aa24b-8be4-4825-86f0-62ffc0da134d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What issue do you refer to? And what debugger do you use? Is it the nRF52840 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232576?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 13:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:019dbefd-c2d5-4ca1-ae34-8779b8dc6952</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;OK, case closed, understand.&lt;/p&gt;
&lt;p&gt;But it looks to me like there is a silicon issue, related to the debugger RTL.&lt;/p&gt;
&lt;p&gt;Could you tell me, if this is described somewhere in the docs?&lt;/p&gt;
&lt;p&gt;Piotr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232393?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 15:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912ef972-774d-4511-b60c-dae02aa565da</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you break during the debug session after the SoftDevice has started, it will assert later. This is because the SoftDevice will miss some time critical events where it was supposed to use the radio. So you can use breakpoints to see what&amp;#39;s happening for a few steps, but when you step out of that function (or possibly before) then the softdevice will assert.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What you should do is to use the breakpoints to check certain things that you want to check, and then you must reset the application.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232322?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 12:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d276b8d-831b-4307-9377-6f2c464d9007</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;For reference, here how I have unzipped SDKs on my HD, and serial example is in its original &amp;quot;mesh sdk&amp;quot; location:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1580734448827v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232288?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 11:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df031286-c3e5-4123-b6c9-bc1e0ba67139</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;For reference I am sending the current binaries I am using for the project &amp;quot;serial&amp;quot; from the mesh sdk.&lt;/p&gt;
&lt;p&gt;If you set the breakpoint on main.c:155, run,, first src stepover is OK, second stepover generates the exception.&lt;/p&gt;
&lt;p&gt;I am using Segger 4.42, with latest firmware on the 840DK&lt;/p&gt;
&lt;p&gt;Calls to my code should be disabled in this project.&lt;/p&gt;
&lt;p&gt;I will try 832DK with older firmware.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/serial.zip"&gt;devzone.nordicsemi.com/.../serial.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232286?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 11:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8aab641-7691-48ef-9c10-47dcce1f7b54</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;Igor, sorry, it implies latest versions (released to the web)&lt;/p&gt;
&lt;p&gt;The 840DK ver 1.1.0&lt;/p&gt;
&lt;p&gt;Included two screen shots: after stopping on breakpoint, and after continue. Do not know if you could see graphics in the post, so adding those two pics as one zip.&lt;/p&gt;
&lt;p&gt;If I do single step in asm mode, it debugs correctly, but stepover in source is causing this exception.&lt;/p&gt;
&lt;p&gt;If you step in asm mode, you just issue single step to the debug logic on the core, with source stepover, most likely they insert temp break at the step target address, then run. Any run is causing probably this exception - possibly caused by pending interrupts in the exec pipeline.&lt;/p&gt;
&lt;p&gt;Do you know if there is a way to show low level debugger operations on the JTAG interface?&lt;/p&gt;
&lt;p&gt;Thx, Piotr&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1580728051460v1.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/pastedimage1580728072979v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Downloads.zip"&gt;devzone.nordicsemi.com/.../Downloads.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840dk Segger debug exception when using softdevices.</title><link>https://devzone.nordicsemi.com/thread/232278?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 10:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e04ad4c-8d06-4887-918f-cac2905d5336</guid><dc:creator>Igor</dc:creator><description>&lt;p&gt;Can you please post a stack trace.&lt;br /&gt; It would be also very helpful, if you&amp;nbsp;would mention your SDK &amp;amp; SD version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>