<?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>Unknown function at 0x00000978</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61332/unknown-function-at-0x00000978</link><description>Hello, 
 
 I&amp;#39;m flashing custom code onto a nRF52840 based PCB. 
 I&amp;#39;m using SDK v15.0, SES 4.52. 
 On the debug window I get the following message as soon as I run the code. 
 
 
 
 How do I check which function the code is stuck at? 
 
 Thanks,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2020 08:42:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61332/unknown-function-at-0x00000978" /><item><title>RE: Unknown function at 0x00000978</title><link>https://devzone.nordicsemi.com/thread/250620?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 08:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a0261ae-153a-4d41-b465-dbd2b320b4da</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;So it asserts in the next step after line 230? Are you using the Softdevice? Note that there is a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/9622/application-debug-with-softdevice/35560#35560"&gt;specific debug procedure&lt;/a&gt; for debugging with Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unknown function at 0x00000978</title><link>https://devzone.nordicsemi.com/thread/250238?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 15:13:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:177df4fe-f716-43af-87a2-30a16f927635</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;okay, I need to take back the posts.&lt;br /&gt;The code is actually not getting stuck in the soft device functions, It&amp;#39;s getting stuck in nrf_drv_init().&lt;/p&gt;
&lt;p&gt;I thought it was getting stuck on advertising, but then I added a breakpoint to the serial function. When I comment out the serial function, the code works fine.&lt;/p&gt;
&lt;p&gt;The problem is, that I still cannot tell which function it&amp;#39;s getting stuck at because the call stack is empty.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/sesdebug5.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/sesdebug6.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please help,&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unknown function at 0x00000978</title><link>https://devzone.nordicsemi.com/thread/250107?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 08:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b059a56-7def-44df-b1db-5a76767838a6</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;You mean in:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    if (p_advertising-&amp;gt;evt_handler != NULL)
    {
        p_advertising-&amp;gt;evt_handler(p_advertising-&amp;gt;adv_evt);
    }
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What does p_advertising-&amp;gt;evt_handler point at?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unknown function at 0x00000978</title><link>https://devzone.nordicsemi.com/thread/250014?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 14:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c58a521-5e96-41b5-b495-bbd350fbad06</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;what can I do to resolve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unknown function at 0x00000978</title><link>https://devzone.nordicsemi.com/thread/250013?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 14:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50fc8f54-2894-4abb-a0f0-a7bf3b9bd9c8</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;I&amp;#39;m using Soft device &amp;quot;s140_nrf52_6.0.0_softdevice.hex&amp;quot;.&lt;/p&gt;
&lt;p&gt;I tried debugging, it seems to be getting stuck at :&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="333" src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/sesdebug-2.PNG" width="691" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: It actually gets stuck in the if statement on line 663 event handler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unknown function at 0x00000978</title><link>https://devzone.nordicsemi.com/thread/249923?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 11:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc106ac6-b5ad-4530-b3c7-dbc2a932209e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using a Softdevice? You can use breakpoints to see how far the application reach before it asserts. See our &lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI"&gt;guide on debugging&lt;/a&gt; in SES here.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>