<?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 0x000008C8</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84223/unknown-function-at-0x000008c8</link><description>Hello Team, 
 I have interfaced Oled with NRF52805 on i2C. 
 I have used SDK 15.1.0. and ble_app_uart example [s112]. 
 My problem : 
 I have made some customized functions and I put one function inside BLE_GAP_EVT_DISCONNECTED event [ when the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Feb 2022 07:37:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84223/unknown-function-at-0x000008c8" /><item><title>RE: unknown function at 0x000008C8</title><link>https://devzone.nordicsemi.com/thread/350557?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 07:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:531670b7-bb01-4de4-99e7-136675af03c8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Dipak"]How to set the project in DEBUG mode ?[/quote]
&lt;p&gt;The example project here does not have a DEBUG build configuration (probably because of size constraints). So in this case you will have to disable optimization yourself, in addition to define DEBUG (hopefully that will fit in this small device).&lt;/p&gt;
[quote user="Dipak"] I have disabled the optimization level to &lt;strong&gt;none&amp;nbsp;&lt;/strong&gt;but the result is the same as it was!&amp;nbsp;[/quote]
&lt;p&gt;Then it should be good and you should be able to use a debugger to see what happened by debugging in the error handler. See &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;An introduction to error handling in nRF5 projects&lt;/a&gt;. In this case, with DEBUG defined and optimizations you should be able to get this. You may need to do this though:&lt;/p&gt;
&lt;p&gt;Either place a breakpoint in the error handler, or simply let it run to&amp;nbsp;NRF_BREAKPOINT_COND. Then add p_info to watch. Then make an expression of (char*)&amp;lt;address you find for p_file_name when inspecting p_info&amp;gt;. That should look something like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/error_5F00_handler.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;As you see, here there is an error on line 0x2a2 (674) in nrfx_spim.c. You should be able to use the same approach.&lt;/p&gt;
&lt;p&gt;(If you have trouble with this somehow, then an alternative could be to inspect every return value you feed into an APP_ERROR_CHECK() with your debugger.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unknown function at 0x000008C8</title><link>https://devzone.nordicsemi.com/thread/350516?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 18:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:127311d1-982d-460b-918b-f1b8fb37f871</guid><dc:creator>Dipak</dc:creator><description>&lt;p&gt;Also, I have disabled the optimization level to &lt;strong&gt;none&amp;nbsp;&lt;/strong&gt;but the result is the same as it was!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unknown function at 0x000008C8</title><link>https://devzone.nordicsemi.com/thread/350515?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 18:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8df68de-1ddb-4503-b667-afa6eaad1df1</guid><dc:creator>Dipak</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks for the reply!&lt;/p&gt;
&lt;p&gt;As I look in my project option there are two options are available one of them is &lt;strong&gt;release&lt;/strong&gt;&amp;nbsp;and the other is &lt;strong&gt;common&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How to set the project in DEBUG mode ? [ Please have a look at the below image ]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1643652902781v2.png" alt=" " /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/DebugNotAvailble.png" /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best and regards,&lt;/p&gt;
&lt;p&gt;Dipak&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1643652889449v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unknown function at 0x000008C8</title><link>https://devzone.nordicsemi.com/thread/350344?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 06:55:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb56e34-01a6-40d9-a685-7c37b5068743</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your topic &amp;quot;unknown function at 0x000008C8&amp;quot;, and this is within the MBR which is part of the SoftDevice distribution and only provided in binary. So that will always be unknown as you don&amp;#39;t have the source code for it.&lt;/p&gt;
[quote user=""]seggar embedded studio STOPS working[/quote]
&lt;p&gt;In what was does it stop working? Please elaborate.&lt;/p&gt;
[quote user=""]- I have placed DEBUG preprocessor inside the preprocessor and placed breakpoint&amp;nbsp;at &lt;strong&gt;app_error_fault_handler&amp;nbsp;&lt;/strong&gt;inside &lt;strong&gt;app_error.c&lt;/strong&gt; but it is not giving me any information like where the program is stuck.[/quote]
&lt;p&gt;Did you also disable optimizations? That is needed in order to make sense of things when you debug, as without it optimization will cause the actual binary code to be quite different from the C code you are looking at. If you have based your application on a SDK example, simply select the &amp;quot;Debug&amp;quot; build configuration as that will also disable optimization (in addition to define &amp;quot;DEBUG&amp;quot;). If not, select this your self under Code Generation -&amp;gt; Optimization Level. For debugging, this should be &amp;quot;None&amp;quot;.&amp;nbsp; As a last point, remember that you cannot continue from a breakpoint or pausing/stopping when using a SoftDevice, as the SoftDevice will assert in this case. So if you want to step in the code, you should instead do that with a breakpoint, then move the breakpoint and reset to go further the next time. With that, you should be able to get more out of your debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>