<?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 after sending notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81178/fatal-error-after-sending-notification</link><description>Hey Guys, currently, I am working on my masterthesis. I have to develop an mobile application which comminicates with the nordic board via BLE. I know that there is an existing application from nordic but I had to implement some extra features. The example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Nov 2021 13:30:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81178/fatal-error-after-sending-notification" /><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/337282?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 13:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e7b28ba-1401-4bdc-b004-f3605eaedca2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Thomas,&lt;/p&gt;
&lt;p&gt;Is the situation now that you ensure that you use the HFXO but still you get framing errors on the UART?&lt;/p&gt;
&lt;p&gt;And is it still the case that you only see this safter sending a BLE notification? If so that is a bit odd, as UART and BLE should be independent (though you are sending the same data). Have you tested what happens if you comment out the code that actually sends the notification over BLE but keep the UART part? Do you still see the same issue? I believe it would make sense to try to handle this issue in a small application that focuses only on the UART part first, as that seems to be the problem. That way we avoid other details which may just get in the way of understanding and fixing the issue.&lt;/p&gt;
&lt;p&gt;Have you double checked that you use the same baud rate configuration, flow control configuration etc on the nRF as on the other device?&lt;/p&gt;
&lt;p&gt;Do you have a logic analyzer you can use to observe the UART traffic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/337134?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 15:19:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fd11cd8-aa9f-4ec3-a008-4246a7addef5</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;I called this function by putting hfclk_start into the function nrf_drv_clock_init(). The function hfclk_start includes the function sd:clock_hfclk_request(). As you told me, I am calling the init in my main.c. Unfortunatly it didnt solve my issue. Is there something else I can try? I have to make it work...I need it for my masterthesis.&lt;br /&gt;Kind Regards,&lt;br /&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336783?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 08:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcefb42d-5143-446d-b786-7844f9b0ca35</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="Toran613"]So a solution could be to change HFINT to HFOX.[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote user="Toran613"]I read that I have to set NRF_CLOCK-&amp;gt;TASKS_CTART=1 and NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART=1 but this is not correct, I guess. It did not work...[/quote]
&lt;p&gt;You are right, this is not correct in this case. You write that you are using BLE, so I assume you have a SoftDevice running. In that case, the SoftDevice is responsible for configuring the clocks. Therefore, you need to either use SoftDevices APIs directly, or use the clock driver, which use the SoftDevice APIs when a SoftDevice is in use. If you use the clock driver, this always works well. However, if you do not have any other code that use the clock driver to control the HF clock (some drivers and libraries do that internally).&lt;/p&gt;
&lt;p&gt;If you do this without the clock driver, then you can simply request the HFXO by calling&amp;nbsp;sd_clock_hfclk_request(). If you don not care about current consumption you can leave it on. If you want to optimize current consumption, you should call&amp;nbsp;sd_clock_hfclk_release() when you no longer need an accurate HF clock.&lt;/p&gt;
&lt;p&gt;If you want to or has touse the driver, then you call&amp;nbsp;nrf_drv_clock_hfclk_request() when you need an accurate HF clock and&amp;nbsp;nrf_drv_clock_hfclk_release() when you no longer need it. Note that you also need to call&amp;nbsp;nrf_drv_clock_init() at startup, and configure the driver in sdk_config.h. See for instance &amp;lt;SDK17.1.0&amp;gt;\examples\peripheral\usbd\main.c for an example of this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336721?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 14:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3856718-297e-4da5-808e-01dfd2df2616</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;So a solution could be to change HFINT to HFOX. As I have read in my research I have to set this up in file nrf_drv_clock.c. But I&amp;nbsp; don`t understand how. I read that I have to set NRF_CLOCK-&amp;gt;TASKS_CTART=1 and NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART=1 but this is not correct, I guess. It did not work...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336628?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 09:22:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8bc512a-e9e8-4f42-a4dd-30190224bf22</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. The&amp;nbsp;APP_UART_COMMUNICATION_ERROR means that there was an error in the UART communication. The API doc indicates how you can know more about this error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    APP_UART_COMMUNICATION_ERROR, /**&amp;lt; An communication error has occured during reception. The error is stored in app_uart_evt_t.data.error_communication field. */
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is the number you provide to&amp;nbsp;APP_ERROR_HANDLER, and from the printout we see it is 4. In this case, this does not mean&amp;nbsp;NRF_ERROR_NO_MEM but that is printed as that is the standard meaning of error codes in the nRF5 SDK. In this case, the number is from the&amp;nbsp;ERRORSRC register in the UART peripheral, as we see form the API documentation for&amp;nbsp;error_communication you found:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        uint32_t error_communication; /**&amp;lt; Field used if evt_type is: APP_UART_COMMUNICATION_ERROR. This field contains the value in the ERRORSRC register for the UART peripheral. The UART_ERRORSRC_x defines from nrf5x_bitfields.h can be used to parse the error code. See also the \nRFXX Series Reference Manual for specification. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Looking at the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=4_2_0_34_9_4#register.ERRORSRC"&gt;UARTE chapter in the product specification&lt;/a&gt; you can see that 4 in&amp;nbsp;ERRORSRC is&amp;nbsp;FRAMING:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Framing error occurred. A valid stop bit is not detected on the serial data input after all bits in a character have been received.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;There are several reasons you could get framing errors. Assuming everything is OK with the other UART device and there is no logical error, it could for instance be simply that you are using HFINT instead of HFXO, and that will not be accurate enough.&amp;nbsp;If that is the case you would typically see the issue more with longer packets or higher baud rates. And the fix is to request the HFXO before doing UART communication.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336500?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 13:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abc070d7-af6e-46d5-b10a-fcb6f965b1dd</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    case APP_UART_COMMUNICATION_ERROR:
            APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;it is this one.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;here is the definition of the used enums in file app_uart.h&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;typedef enum
{
    APP_UART_DATA_READY,          /**&amp;lt; An event indicating that UART data has been received. The data is available in the FIFO and can be fetched using @ref app_uart_get. */
    APP_UART_FIFO_ERROR,          /**&amp;lt; An error in the FIFO module used by the app_uart module has occured. The FIFO error code is stored in app_uart_evt_t.data.error_code field. */
    APP_UART_COMMUNICATION_ERROR, /**&amp;lt; An communication error has occured during reception. The error is stored in app_uart_evt_t.data.error_communication field. */
    APP_UART_TX_EMPTY,            /**&amp;lt; An event indicating that UART has completed transmission of all available data in the TX FIFO. */
    APP_UART_DATA,                /**&amp;lt; An event indicating that UART data has been received, and data is present in data field. This event is only used when no FIFO is configured. */
} app_uart_evt_type_t;

/**@brief Struct containing events from the UART module.
 *
 * @details The app_uart_evt_t is used to notify the application of asynchronous events when data
 * are received on the UART peripheral or in case an error occured during data reception.
 */
typedef struct
{
    app_uart_evt_type_t evt_type; /**&amp;lt; Type of event. */
    union
    {
        uint32_t error_communication; /**&amp;lt; Field used if evt_type is: APP_UART_COMMUNICATION_ERROR. This field contains the value in the ERRORSRC register for the UART peripheral. The UART_ERRORSRC_x defines from nrf5x_bitfields.h can be used to parse the error code. See also the \nRFXX Series Reference Manual for specification. */
        uint32_t error_code;          /**&amp;lt; Field used if evt_type is: NRF_ERROR_x. Additional status/error code if the error event type is APP_UART_FIFO_ERROR. This error code refer to errors defined in nrf_error.h. */
        uint8_t  value;               /**&amp;lt; Field used if evt_type is: NRF_ERROR_x. Additional status/error code if the error event type is APP_UART_FIFO_ERROR. This error code refer to errors defined in nrf_error.h. */
    } data;
} app_uart_evt_t;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336497?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 13:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a21cd51-39d2-4eaa-a3d4-aed83448fdf5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Good, you are getting closer. Just so I know as well Which line in this code snippet represents line 581?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336490?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 13:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12fcdaba-f8ed-4772-92c1-88a1a976a660</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void uart_event_handle(app_uart_evt_t * p_event)
{
    static uint8_t data_array[BLE_NUS_MAX_DATA_LEN];
    static uint8_t index = 0;
    uint32_t       err_code;

    switch (p_event-&amp;gt;evt_type)
    {
        case APP_UART_DATA_READY:
            UNUSED_VARIABLE(app_uart_get(&amp;amp;data_array[index]));
            index++;
            rx_uart_data = data_array[index];
            if (rx_uart_data == &amp;#39;h&amp;#39;)
            {
                 bsp_board_led_on(CONNECTED_LED_3);
                 nrf_delay_ms(1000);
                 bsp_board_led_off(CONNECTED_LED_3);
            }

            if ((data_array[index - 1] == &amp;#39;\n&amp;#39;) ||
                (data_array[index - 1] == &amp;#39;\r&amp;#39;) ||
                (index &amp;gt;= m_ble_nus_max_data_len))
            {
                if (index &amp;gt; 1)
                {
                    NRF_LOG_DEBUG(&amp;quot;Ready to send data over BLE NUS&amp;quot;);
                    NRF_LOG_HEXDUMP_DEBUG(data_array, index);

                    do
                    {
                        uint16_t length = (uint16_t)index;
                        err_code = ble_nus_data_send(&amp;amp;m_nus, data_array, &amp;amp;length, m_conn_handle);
                        if ((err_code != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp;
                            (err_code != NRF_ERROR_RESOURCES) &amp;amp;&amp;amp;
                            (err_code != NRF_ERROR_NOT_FOUND))
                        {
                            APP_ERROR_CHECK(err_code);
                        }
                    } while (err_code == NRF_ERROR_RESOURCES);
                }

                index = 0;
            }
            break;

        case APP_UART_COMMUNICATION_ERROR:
            APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);
            break;

        case APP_UART_FIFO_ERROR:
            APP_ERROR_HANDLER(p_event-&amp;gt;data.error_code);
            break;

        default:
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;its a switch case. Seems like I get in the wrong state of my uart_event_handler. I get in the state&amp;nbsp;APP_UART_COMMUNICATION_ERROR The error also shows that I have a memory issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336487?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 12:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bbdcbd6-5a81-4251-90c4-bbee46a9b031</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Good. Did you also check what happens around line 581 in your main.c file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336486?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 12:52:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5264727a-5352-4b18-b1f1-a45147dc77c6</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.
&amp;lt;info&amp;gt; app: Connected
&amp;lt;info&amp;gt; app: Data len is set to 0xF4(244)
&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at C:\Users\loratho\Desktop\Projektordner_Thomas_Loran\Masterthesis\BLEtoUART\Nordic\nRF5_SDK_BLEtoUART\examples\ble_peripheral\ble_app_uart\main.c:581
PC at: 0x0002F8E3
&amp;lt;error&amp;gt; app: End of error report



&lt;/pre&gt;Thank you for the Link. I am read it and try to understand it. Here is the left part of the screen, you metioned&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336471?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 12:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d544ce5f-1cee-4201-9959-5dd5a5266df0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is not the relevant log. This is from programming the device, and what we are after is the log from the device, which where there are printouts from the error handler. And the code in your snippet is from the error handler, and that runs because of the error. The relevant log is from your previous screenshot, specifically in the left par of it, where you see the debug log printed by your application running in the nRF. This log contains all&amp;nbsp;information we need to start looking into this, when combined with the file it points to (probably your main.c, but could also be something else).&lt;/p&gt;
&lt;p&gt;I strongly suggest that you spend time understanding the error handling in the nrF5 SDK by the link in my previous post. This will surly save you time in the long run.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336468?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 12:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f51b541-03b6-4449-8e15-ba3bc4f9a887</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;this is not what you needed, I guess&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336466?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 12:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6124fad8-5cb8-41f9-894d-3f0f160a3145</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;To be honest these are the only two error code lines that appeared after debugging.&amp;nbsp;&lt;br /&gt;Here is the function where the error code has guided me to:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void app_error_handler(ret_code_t error_code, uint32_t line_num, const uint8_t * p_file_name)
{
    __ASM volatile(

    &amp;quot;push {lr}                      \n&amp;quot;

    /* reserve space on stack for error_info_t struct - preserve 8byte stack aligment */
    &amp;quot;sub sp, sp, %0                 \n&amp;quot;

    /* prepare error_info_t struct */
    &amp;quot;str r0, [sp, %1]               \n&amp;quot;
    &amp;quot;str r1, [sp, %3]               \n&amp;quot;
    &amp;quot;str r2, [sp, %2]               \n&amp;quot;

    /* prepare arguments and call function: app_error_fault_handler */
    &amp;quot;ldr r0, =%4                    \n&amp;quot;
    &amp;quot;mov r1, lr                     \n&amp;quot;
    &amp;quot;mov r2, sp                     \n&amp;quot;
    &amp;quot;bl  %5                         \n&amp;quot;

    /* release stack */
    &amp;quot;add sp, sp, %0                 \n&amp;quot;

    &amp;quot;pop {pc}                       \n&amp;quot;
    &amp;quot;.ltorg                         \n&amp;quot;

    : /* Outputs */
    : /* Inputs */
    &amp;quot;I&amp;quot; (APP_ERROR_ERROR_INFO_SIZE_ALIGNED_8BYTE),
    &amp;quot;I&amp;quot; (APP_ERROR_ERROR_INFO_OFFSET_ERR_CODE),
    &amp;quot;I&amp;quot; (APP_ERROR_ERROR_INFO_OFFSET_P_FILE_NAME),
    &amp;quot;I&amp;quot; (APP_ERROR_ERROR_INFO_OFFSET_LINE_NUM),
    &amp;quot;X&amp;quot; (NRF_FAULT_ID_SDK_ERROR),
    &amp;quot;X&amp;quot; (app_error_fault_handler)
    : /* Clobbers */
    &amp;quot;r0&amp;quot;, &amp;quot;r1&amp;quot;, &amp;quot;r2&amp;quot;
    );
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Here is the copied log:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading ‘s132_nrf52_7.2.0_softdevice.hex’ to J-Link
Programming 2.7 KB of addresses 00000000 — 00000aff
Programming 146.3 KB of addresses 00001000 — 0002596b
J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (126976 bytes)
J-Link: Flash download: Total: 3.005s (Prepare: 0.490s, Compare: 0.042s, Erase: 0.071s, Program &amp;amp; Verify: 2.266s, Restore: 0.135s)
J-Link: Flash download: Program &amp;amp; Verify speed: 55 KB/s
Download successful
Downloading ‘ble_app_uart_pca10040_s132.elf’ to J-Link
Programming 59.7 KB of addresses 00026000 — 00034f16
Programming 0.1 KB of addresses 00034f18 — 00034fbb
J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
Download successful
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635422958763v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336456?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 11:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d28fd1b9-a6a2-448a-9d7f-7f4cd2dfa11f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, this is much more helpful, except for a few things&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the screenshot does not have the full text. So me (and perhaps you) do not see which file it is.&lt;/li&gt;
&lt;li&gt;Even if i saw the file name, I do not have your code. So I cannot see what is there.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So, plese:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Give me the full log output. Either by scaling the window so everything is shown, or even better copy past here using Insert -&amp;gt; Code. That makes it more readable.&lt;/li&gt;
&lt;li&gt;Please let me know which function returned the error, which you see from the file name and line number in the log. It could also be useful if you upload the&amp;nbsp;entire file here.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Update: i think you will benefit from reading &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;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336452?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 11:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d24444-d3b9-4620-a412-d9c79be7cf3e</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635421547203v1.png" alt=" " /&gt;&lt;br /&gt;Hi,&lt;br /&gt;this was the error code I got when I set up Debug build in the build configurations. Is this more helpful?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336442?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 11:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d19d3d7-0d1e-4f52-aaec-3a827dc2b2e3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the log it seems you are testing a release build and not a debug build. Can you build a debug build, test again, and upload the new log output here? Also, please check the file and line you hopefully see in the log and post here so that we can see which function returned an error code (assuming that is what happened).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336438?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 11:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:062da9e0-d92d-43e6-b82a-303fa3da6c57</guid><dc:creator>Toran613</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635420417127v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Yes, I am using Embedded Studio. These are the error codes I get when I try to send a notification. But I have to add, that I made a mistake in my explanation. I can send more than one sign as long as I don&amp;acute;t add &amp;quot;\n&amp;quot;. The point is that I need \n because without it, I have to send several packages until my app gets the packages.&amp;nbsp;&lt;br /&gt;Is it possible that it is something like a cache problem? Because no matter on which device I ran my C-Code, first it worked and after a few trys I got this error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fatal Error after sending notification</title><link>https://devzone.nordicsemi.com/thread/336424?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 11:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba39c21c-410c-4907-84a5-793f48835ee3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
[quote user=""]My issue is that always when I try to send a notification with docklight to my application (Notification is enabled) my embedded studio crashes and I get a fatal error. [/quote]
&lt;p&gt;Is this Segger Embedded Studio(?) that has a fatal error and crashes, or is it that you see a fatal error in the log from the nRF? If it is the latter, then this is likely from an APP_ERROR_CHECK. In that case, testing a debug build (select &amp;quot;Debug&amp;quot; from the build configuration dropdown menu) will give you more information. With this you should see file name, line number and error code, and that will give us much more to go on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>