<?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>Fatal error! id: 16385 code line: 0  info: 537132876</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76837/fatal-error-id-16385-code-line-0-info-537132876</link><description>When I do a &amp;#39;build and run&amp;#39; in Segger Embedded Studio I get this error 
 
 Then I press the reset button and everything works. 
 If I do &amp;#39;build and run&amp;#39; again the error repeats. It does not happen if I use the &amp;#39;build and debug&amp;#39; option. 
 I am using SoftDevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Aug 2021 13:38:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76837/fatal-error-id-16385-code-line-0-info-537132876" /><item><title>RE: Fatal error! id: 16385 code line: 0  info: 537132876</title><link>https://devzone.nordicsemi.com/thread/323784?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 13:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c560dcc-1036-4b54-aeb6-d73557fb5db7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="83646" url="~/f/nordic-q-a/76837/fatal-error-id-16385-code-line-0-info-537132876/320553#320553"]Since I have not gotten any further response to this problem, for some reason,[/quote]
&lt;p&gt;Sorry for the delay(I was on vacation). But&amp;nbsp;lucky I see my colleague was able to help you with this issue in your other case. :)&lt;/p&gt;
&lt;p&gt;Link to case if someone else finds this post:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77690/adding-nrf_nvic_state_t-nrf_nvic_state-0-causes-code-not-to-build-no-reason-for-build-failure/323711#323711"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/77690/adding-nrf_nvic_state_t-nrf_nvic_state-0-causes-code-not-to-build-no-reason-for-build-failure/323711#323711&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal error! id: 16385 code line: 0  info: 537132876</title><link>https://devzone.nordicsemi.com/thread/320553?ContentTypeID=1</link><pubDate>Sun, 18 Jul 2021 13:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85963217-d9c0-449f-a097-356f4e07ff89</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;Since I have not gotten any further response to this problem, for some reason, I am getting additional info that may help in the form you have outlined above. This is the first day that has happened and it has repeated twice.. The problem continues, but a press of the reset button solves it, so I have not been blocked. I am still concerned there is something fundamentally wrong causing the error, and I am just hiding it by pressing the reset button.&lt;/p&gt;
&lt;p&gt;In any case after calling&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;err_code = nrf_sdh_enable_request();&lt;/strong&gt;&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I now get this addition information:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;error&amp;gt; app: ERROR 8 [NRF_ERROR_INVALID_STATE] at E:\projects\utech\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_ghs_epoch\main.c:1952
PC at: 0x0002FD3F
&amp;lt;error&amp;gt; app: End of error report
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The documentation is hopeless. Think I can find anything on&amp;nbsp;NRF_ERROR_INVALID_STATE for the method nrf_sdh_enable_request() method? It&amp;#39;s probably in there but as I said before the search engine is one of the worst I have ever worked with. I would need to ask many fewer questions if the search was better.&amp;nbsp; The documentation is huge, and a good search engine is needed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Looking at the source code the only reasons I can see for returning the invalid state code is that SoftDevice is already enabled ... which makes no sense.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal error! id: 16385 code line: 0  info: 537132876</title><link>https://devzone.nordicsemi.com/thread/318040?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 17:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e586bda-6155-44a9-971a-a453fdf32eda</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;Yes I have. But as I said in the post, I can&amp;#39;t use it because it only works in Debug mode, and in Debug mode the error does not happen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal error! id: 16385 code line: 0  info: 537132876</title><link>https://devzone.nordicsemi.com/thread/318034?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 15:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f79ee2ee-ea01-4774-9194-feb10702865a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;16385 is 0x4001 -&amp;gt;&amp;nbsp;NRF_FAULT_ID_SDK_ERROR&lt;/p&gt;
&lt;p&gt;Have you implemented your own error-handler? Normally it looks something like this,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**
 * Function is implemented as weak so that it can be overwritten by custom application error handler
 * when needed.
 */
__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
{
    __disable_irq();
    NRF_LOG_FINAL_FLUSH();

#ifndef DEBUG
    NRF_LOG_ERROR(&amp;quot;Fatal error&amp;quot;);
#else
    switch (id)
    {
#if defined(SOFTDEVICE_PRESENT) &amp;amp;&amp;amp; SOFTDEVICE_PRESENT
        case NRF_FAULT_ID_SD_ASSERT:
            NRF_LOG_ERROR(&amp;quot;SOFTDEVICE: ASSERTION FAILED&amp;quot;);
            break;
        case NRF_FAULT_ID_APP_MEMACC:
            NRF_LOG_ERROR(&amp;quot;SOFTDEVICE: INVALID MEMORY ACCESS&amp;quot;);
            break;
#endif
        case NRF_FAULT_ID_SDK_ASSERT:
        {
            assert_info_t * p_info = (assert_info_t *)info;
            NRF_LOG_ERROR(&amp;quot;ASSERTION FAILED at %s:%u&amp;quot;,
                          p_info-&amp;gt;p_file_name,
                          p_info-&amp;gt;line_num);
            break;
        }
        case NRF_FAULT_ID_SDK_ERROR:
        {
            error_info_t * p_info = (error_info_t *)info;
            NRF_LOG_ERROR(&amp;quot;ERROR %u [%s] at %s:%u\r\nPC at: 0x%08x&amp;quot;,
                          p_info-&amp;gt;err_code,
                          nrf_strerror_get(p_info-&amp;gt;err_code),
                          p_info-&amp;gt;p_file_name,
                          p_info-&amp;gt;line_num,
                          pc);
             NRF_LOG_ERROR(&amp;quot;End of error report&amp;quot;);
            break;
        }
        default:
            NRF_LOG_ERROR(&amp;quot;UNKNOWN FAULT at 0x%08X&amp;quot;, pc);
            break;
    }
#endif

    NRF_BREAKPOINT_COND;
    // On assert, the system can only recover with a reset.

#ifndef DEBUG
    NRF_LOG_WARNING(&amp;quot;System reset&amp;quot;);
    NVIC_SystemReset();
#else
    app_error_save_and_stop(id, pc, info);
#endif // DEBUG
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and should print e.g. something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.

&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at C:\SDK_folder\SDK17.0.2\examples\ble_peripheral\ble_app_beacon\main.c:300

PC at: 0x0002E8B7

&amp;lt;error&amp;gt; app: End of error report&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you have implemented your own error handler, you should try print the information stored in info&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;            error_info_t * p_info = (error_info_t *)info;
            NRF_LOG_ERROR(&amp;quot;ERROR %u [%s] at %s:%u\r\nPC at: 0x%08x&amp;quot;,
                          p_info-&amp;gt;err_code,
                          nrf_strerror_get(p_info-&amp;gt;err_code),
                          p_info-&amp;gt;p_file_name,
                          p_info-&amp;gt;line_num,
                          pc);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>