<?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>Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50769/bug-unable-to-fix-as-going-to-unknown-function-0x00000978</link><description>Recently, we are using Nordic resources and developing our own application. We have blue tooth integrated in app, also we have display and our own file system integrated on our system. But , recently while debugging, after display got integrated , debugger</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Aug 2019 08:20:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50769/bug-unable-to-fix-as-going-to-unknown-function-0x00000978" /><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/206265?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 08:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d73824e-68f2-431a-969b-5a62256ea85e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Arpitha,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;happy to hear that you found the cause of the issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/204672?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 08:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77364b37-1838-4b78-9723-36b09cea6b00</guid><dc:creator>ARPITHA CHANDRASHEKAR</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Issue seems to be resolved as it was nrf_delay was blocking call and hence was going to unknown function. we have replaced it with non blocking delay.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Arpitha M C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/204009?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 09:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16d75fff-c4ea-44f4-bc0a-f0f930e8c1a1</guid><dc:creator>ARPITHA CHANDRASHEKAR</dc:creator><description>&lt;p&gt;Hi sir,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have added logging statements to the code. Not much help. Can I know how to use Hard Fault library ? I included iar file related to Hard Fault and Hard Fault Implementation.c. Wanted to know where this this function to be called to check cause of hard fault.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Arpitha M C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/204006?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 09:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed6a8cfe-e210-491b-a864-57afa74a1175</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Then my only suggestion would be to add logging statments to your code and use the log output to narrow down the function calls/routines that might cause the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/203933?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 05:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a0456c5-b02c-43d0-a2f9-bad052ca51aa</guid><dc:creator>ARPITHA CHANDRASHEKAR</dc:creator><description>&lt;p&gt;Hi Sir,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I opened debugging by disabling MemManage break point. I have opened break points window there Memmanage break point gets highlighted, but I am unable to find out further to know root case of this exception.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Arpitha M C&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/203797?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 11:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac4d9b27-3056-4083-a36a-ecedbdbd7296</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;It could be that the program&amp;nbsp; have entered the hardfault exception handler inside the MBR. It&amp;#39;s normally forwarded to the main application, but&amp;nbsp;will get trapped if breakpoint on hardfault is enabled in SES. Make sure you have this breakpoint disabled in the breakpoints view.&lt;/p&gt;
&lt;p&gt;Breakpoints window. Start a debug session and use Ctrl+Alt+b to open view.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e9b0d17d3562487b93a7291aafb5af64/pastedimage1565695603333v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This should ensure that the hardfault exception is forwarded to the application. Then you try to&amp;nbsp; use the&amp;nbsp;&lt;a title="HardFault handling library" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_hardfault.html?cp=4_0_0_3_20"&gt;HardFault handling library&lt;/a&gt;&amp;nbsp;to determine the cause of the Hardfault.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/203775?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 09:49:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac013f0a-ba2e-4aa2-9ad5-8808d6ef347e</guid><dc:creator>ARPITHA CHANDRASHEKAR</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unfortunately I am not able to find out from which function its entering this mem manager. I have attached snap of program. It hits break point at Mem manage. However, I am able to see from IAR where it is entering. But again, IAR keeps running unlike segger which goes to unknown function but when paused it would have hit Hard Fault handler. So, in this case how do I be able to debug?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x240/__key/communityserver-discussions-components-files/4/ses_5F00_error.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Arpitha M C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/203748?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 08:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df43be14-a3a0-4a8b-8fec-f5ca74ac2ce6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;According to the&amp;nbsp;Cortex&amp;nbsp;M4 Devices Generic User Guide, found &lt;a href="http://infocenter.arm.com/help/topic/com.arm.doc.dui0553b/index.html"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;A MemManage fault is an exception that occurs because of a memory protection related fault. The the fixed memory protection constraints determines this fault, for both instruction and data memory transactions. This fault is always used to abort instruction accesses to Execute Never (XN) memory regions.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So this means that your application is likely writing to a protected region. Are you able to indentify the last function call prior to entering the MemManage handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/203714?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 05:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3f12b05-c76c-4850-9b39-6334b386d7a6</guid><dc:creator>ARPITHA CHANDRASHEKAR</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Soft device version number is s140, 6.1.0. Also, i can see break point is getting hit at MemManage, is this issue with memory management. How can i read more about break points to see issue of memory management.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Arpitha M C.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug unable to fix as going to unknown function 0x00000978..</title><link>https://devzone.nordicsemi.com/thread/203061?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 12:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faeaf159-6825-4d46-8700-d9a0010f6cc3</guid><dc:creator>bjorn-spockeli</dc:creator><description>[quote userid="82382" url="~/f/nordic-q-a/50769/bug-unable-to-fix-as-going-to-unknown-function-0x00000978"]1. What is the difference between debug and release mode?[/quote]
&lt;p&gt;The only difference between debug and release mode is that Release mode&amp;nbsp;optimizes the code for size and adds the NDEBUG definition to the preprocessor definitions. Debug mode does not use any optimization and&amp;nbsp;adds the following preprocessor definitions&amp;nbsp;DEBUG and DEBUG_NRF&lt;/p&gt;
[quote userid="82382" url="~/f/nordic-q-a/50769/bug-unable-to-fix-as-going-to-unknown-function-0x00000978"]2. What is the difference between segger and IAR?[/quote]
&lt;p&gt;There are many differences, but i guess the main one is that Segger Embedded Studio uses the GCC compiler, while IAR has its own compiler.&amp;nbsp;&lt;/p&gt;
[quote userid="82382" url="~/f/nordic-q-a/50769/bug-unable-to-fix-as-going-to-unknown-function-0x00000978"]3. I am unable to see stack frame , list of functions how it landed up to this unknown function? How will I check from which function this issue is happening ?&amp;nbsp;[/quote]
&lt;p&gt;The address 0x00000978 is located in the MBR, which is distributed together with the SoftDevice,&amp;nbsp;see the&amp;nbsp;&lt;a class="active" title="Memory resource map and usage" href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/mem_usage/mem_resource_map_usage.html?cp=3_4_3_0_13_0"&gt;Memory resource map and usage&lt;/a&gt;, as a precompiled binary.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This means that there are no debug symbols and debug information for the debugger, you&amp;#39;re just able to see the disassembly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you provide me with the SoftDevice version number, then I can check what code that is&amp;nbsp;placed at&amp;nbsp;&lt;span&gt;0x00000978 in the MBR.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>