<?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>NRF DFU Serial External MCU upgrade</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80981/nrf-dfu-serial-external-mcu-upgrade</link><description>Hello, 
 We are using nRFSDK v15.0.0 and nRF52840 in our system. There is also an external MCU that is connected to the nRF52840 via UART. Currently we are trying to perform a FW upgrade on the external MCU using the Nordic DFU. The Nordic DFU simply</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Nov 2021 16:21:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80981/nrf-dfu-serial-external-mcu-upgrade" /><item><title>RE: NRF DFU Serial External MCU upgrade</title><link>https://devzone.nordicsemi.com/thread/338640?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 16:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1259fca-19d3-48d6-9cf4-c44a5f08fe6d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="kvenkatraman_f"]Setting this timeout parameter addresses my issue.[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="kvenkatraman_f"]Did you get a chance to look into the bullet item 3 above on the nrf_serial_read[/quote]
&lt;p&gt;As long as your not in interrupt context, I don&amp;#39;t see why it would fail. Maybe it&amp;#39;s related to something in these YModem_ functions.&lt;/p&gt;
[quote user=""]We see that nrf_serial is not present in the SDK v17.x. So, is this not supported? If we were to migrate to latest SDK in future, nrf_serial will not be available anymore?[/quote]
&lt;p&gt;Correct. You would need to add nrf_serial yourself to SDK 17 to continue using it. I believe nrf_serial was deprecated and replaced with the libuarte library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF DFU Serial External MCU upgrade</title><link>https://devzone.nordicsemi.com/thread/336710?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 14:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:314cc487-d7d8-493b-9db9-3a97f5328512</guid><dc:creator>KV</dc:creator><description>&lt;p&gt;Thank you, Sigurd. Setting this timeout parameter addresses my issue. Did you get a chance to look into the bullet item 3 above on the nrf_serial_read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF DFU Serial External MCU upgrade</title><link>https://devzone.nordicsemi.com/thread/335982?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 13:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa89685f-85b2-4f5b-81a7-9e60832567b2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]After the nRF52840 sends the external image packet, it waits for an ACK from the external MCU before responding to the nrfutil. We are using nrf_serial_read/write synchronous (polling) method. Since the erase times of the flash on the external MCU is in order of 4-5 seconds, the nRF52840 does not get an ACK for this time and hence cannot respond to the nrfutil which causes the nrfutil to timeout.[/quote]
&lt;p&gt;It could be this &amp;quot;&lt;span&gt;Timeout time on serial port read&amp;quot; that is causing the timeout:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/blob/v6.1.3/nordicsemi/dfu/dfu_transport_serial.py#L153"&gt;https://github.com/NordicSemiconductor/pc-nrfutil/blob/v6.1.3/nordicsemi/dfu/dfu_transport_serial.py#L153&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try to increase this value, and see if it solves the issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If it does not solve the issue, could you post the&amp;nbsp;log from nrfutil here?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>