<?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>DFU serial failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44924/dfu-serial-failed</link><description>Hi guys, 
 i&amp;#39;m using DFU over serial and i get the error 4 in NRF_DRV_UART_EVT_ERROR. 
 This was not happening before and suddenly started. 
 
 
 What could be the issue? 
 SDK: 14.1 
 board: nrf52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jul 2022 07:40:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44924/dfu-serial-failed" /><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/378005?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 07:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e6e851-6aa8-467d-9e17-1cf1dba65337</guid><dc:creator>Adam Varga</dc:creator><description>&lt;p&gt;Could you elaborate? I have the same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/220895?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 14:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b68851ee-e694-4788-b57b-a05611fcbc7b</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;There was error not connected to uart but to the flash. So this is resolved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/220459?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 04:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd4f24f5-2816-4246-bdaa-b6ee6cd5880a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you tried to&amp;nbsp;call&amp;nbsp;nrf_drv_uart_uninit() before you init uart again ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you check in the info if there is a file name and line number, error code ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/220079?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 13:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62eccc26-e191-46a3-a742-eb3e13dfbe67</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;Is it possible to recover from this issue using software only? Reinit uart and repeat the packet. CRC will fail and then i can try to send it again.&lt;/p&gt;
&lt;p&gt;I tried to enable nrf_drv_uart_rx but after that i got &amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2003FEF8&lt;/p&gt;
&lt;p&gt;do you have any suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/176933?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 10:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73d22677-d464-4183-8b93-70222ed18ede</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You are right. It&amp;#39;s the UART ERROR and bit 3 is Framing error. You&amp;nbsp;can to monitor the UART communication with a logic analyzer to look for the error. Do you have a long UART cable/track ? any parasitic capacitance ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/176874?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 07:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f19aa1-b37c-4929-84cf-4d1b5c0e92d8</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;Framing error as described here &lt;a href="http://ltxfaq.custhelp.com/app/answers/detail/a_id/85/~/serial-port-framing-errors"&gt;http://ltxfaq.custhelp.com/app/answers/detail/a_id/85/~/serial-port-framing-errors&lt;/a&gt; is some HW staff which has sense because on one board i don&amp;#39;t have this errors and on another i have (i found that out yesterday).&lt;/p&gt;
&lt;p&gt;I have no flow control, and baud-rate used is 9600.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/176872?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 07:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde8b08d-9bed-449b-b34e-c758c3fc68c3</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;Are you sure that Error 0x04 in:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void uart_event_handler(nrf_drv_uart_event_t * p_event, void * p_context)
{
    switch (p_event-&amp;gt;type)
    {
        case NRF_DRV_UART_EVT_TX_DONE:
            nrf_dfu_req_handler_reset_if_dfu_complete();
            break;

        case NRF_DRV_UART_EVT_RX_DONE:
            ...
            break;

        case NRF_DRV_UART_EVT_ERROR: {
	        APP_ERROR_HANDLER(p_event-&amp;gt;data.error.error_mask);
            break;
            }
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;is not based on enum nrf_uart_error_mask_t which would be NRF_UART_ERROR_FRAMING_MASK?&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.1.0%2Fgroup__nrf__uart__hal.html&amp;amp;anchor=ga2657a793028d3f7083ad87cc05bd9817"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/176748?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 14:19:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f99aec6f-b173-4c4d-a1fa-a6c0d1da8f2e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Schef,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have HWFC on UART ? At which baudrate you were running&amp;nbsp; &amp;nbsp;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error 4 is&amp;nbsp;NRF_ERROR_NO_MEM. We need to track down which function throwing that error. Could you test using the bootloader debug version and turn optimization off to see more debug information ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/176712?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 13:04:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc76baaf-572d-4cef-9a2b-b32706508923</guid><dc:creator>schef</dc:creator><description>&lt;p&gt;Here is more information from gdb:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#0 app_error_handler_bare (error_code=4) at ../../main.c:73
#1 0x000775a0 in uart_event_handler (p_event=&amp;lt;optimized out&amp;gt;, p_context=&amp;lt;optimized out&amp;gt;, p_event=&amp;lt;optimized out&amp;gt;) at ../../sdk_edited/components/libraries/bootloader/serial_dfu/nrf_serial_dfu.c:403
#2 0x00076534 in uarte_irq_handler (p_uarte=0x40002000, p_cb=&amp;lt;optimized out&amp;gt;) at ../../../../sdk/nRF5_SDK_14.2.0_17b948a/components/drivers_nrf/uart/nrf_drv_uart.c:912
#3 UARTE0_UART0_IRQHandler () at ../../../../sdk/nRF5_SDK_14.2.0_17b948a/components/drivers_nrf/uart/nrf_drv_uart.c:963
#4 &amp;lt;signal handler called&amp;gt;
#5 0x00013d6e in ?? ()
#6 0x00013d6c in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU serial failed</title><link>https://devzone.nordicsemi.com/thread/176529?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2019 22:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5498d2c-9e52-4362-990d-020907ec8e3a</guid><dc:creator>Stjepan</dc:creator><description>&lt;p&gt;Maybe this can help ?&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/22753/bootloader_secure_serial-and-nrfgo-studio-not-working"&gt;devzone.nordicsemi.com/.../bootloader_secure_serial-and-nrfgo-studio-not-working&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>