<?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>Stack trace starting from a hex address?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4150/stack-trace-starting-from-a-hex-address</link><description>Hello, 
 I&amp;#39;m learning how to use s110 and the debugger. I am porting the hids_keyboard app from the PCA10001 to the PCA10003 (nrf51822 -&amp;gt; nrf51422). 
 As described in this thread , I am having a hard time figuring out why the program is crashing when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Oct 2014 21:59:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4150/stack-trace-starting-from-a-hex-address" /><item><title>RE: Stack trace starting from a hex address?</title><link>https://devzone.nordicsemi.com/thread/14845?ContentTypeID=1</link><pubDate>Fri, 24 Oct 2014 21:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa84051c-53b5-4273-b00c-f724138624cf</guid><dc:creator>405nm</dc:creator><description>&lt;p&gt;Ok, it kind of works -- have to connect the debugger before opening RKNRFGO, otherwise it seems to automatically disable the CDC drivers (according to my /dev directory anyway) and the enable button seems to have no effect.  Also, when you are back in the code, mind adding PCA10003 support to your eclipse plugin?  :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack trace starting from a hex address?</title><link>https://devzone.nordicsemi.com/thread/14844?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2014 08:55:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca7273af-6721-4897-994b-68c2832577c0</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;405nm - if you have anything after about 4.90 of JLink it&amp;#39;ll work just fine without disabling the CDC drivers. I don&amp;#39;t remember if I ever got around to putting code in RKNRFGO to try and figure out what the version of JLinkExe is, I don&amp;#39;t think I did actually. I believe that as long as there is a device connected and it sees it, the CDC disable warning is supposed to be removed, i.e. you don&amp;#39;t see it, but probably if there isn&amp;#39;t one connected and it sees the CDC drivers are enabled it assumes (incorrectly) that&amp;#39;s the problem and puts the message up. I&amp;#39;ll put that on the list for the next time I&amp;#39;m in that code, checking the JLinkExe version and just not even bothering checking CDC at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack trace starting from a hex address?</title><link>https://devzone.nordicsemi.com/thread/14843?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2014 08:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12dbd187-e67c-4ef5-a170-71af921c88d6</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;get the latest jlink software. They repaired the bug already&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack trace starting from a hex address?</title><link>https://devzone.nordicsemi.com/thread/14842?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2014 04:16:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4591b748-155e-4864-87c0-6367c6265930</guid><dc:creator>405nm</dc:creator><description>&lt;p&gt;Ah, ok.  Thats exactly what I needed to know.  Will try my usual debugging techniques then, and will prob have to start another thread as I wrap my brain around how this BLE stack works.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been using RKNRFGO 1.0.6 to flash my chip, but it keeps telling me that I need to disable the CDC drivers.  I noticed from one of your other posts that they have fixed the CDC driver issue on mac...any chance of an update so I don&amp;#39;t have to keep enabling and disabling?  :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stack trace starting from a hex address?</title><link>https://devzone.nordicsemi.com/thread/14841?ContentTypeID=1</link><pubDate>Sun, 19 Oct 2014 01:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:884474e5-43bd-4495-8740-b5f78270b007</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Well you are in your code, you&amp;#39;re in your softdevice assertion handler. There&amp;#39;s lots of information in there, the error code, in hex (always look in hex) is 0xDEADBEEF which is a standard marker in the nordic code (it&amp;#39;s in the source you compiled). You actually crashed at line 1377 of rem.c, which isn&amp;#39;t in your code, it&amp;#39;s in the softdevice. If you type &amp;#39;rem.c&amp;#39; into the search box ^^ up there ^^ you&amp;#39;ll see questions about it.&lt;/p&gt;
&lt;p&gt;Anyway what&amp;#39;s happened is the softdevice itself has asserted and called you back. And the most likely reason for that is .. you can&amp;#39;t debug code which uses the softdevice by single stepping it As soon as you hit a breakpoint in your code, that also stops the softdevice from handling its interrupts, which it absolutely has to do on a timely basis and the next time it starts going again and services an interrupt, it asserts.&lt;/p&gt;
&lt;p&gt;Unfortunately debugging with the softdevice running is hard and frustrating, you need to use other techniques, like printf or outputting data on the UART or tracing (the nordic chip doesn&amp;#39;t support tracing but the crossworks studio I use does sampling which can occasionally help). You basically get one only one chance to break and look at your program once the softdevice is up and running, you can&amp;#39;t resume, it&amp;#39;ll assert.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>