<?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>nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58803/nrfutil-mesh-dfu-flash-erase-timeout---perhaps</link><description>Hi. 
 I am trying to get mesh DFU working and I keep getting &amp;quot;Failed to upgrade target. Error is: Crashed on start packet&amp;quot; from nrfutil. 
 When debugging the target I see: &amp;lt;t: 882920&amp;gt;, nrf_mesh_dfu.c, 344, Erase complete (0x8D000) &amp;lt;t: 882923&amp;gt;, nrf_mesh_dfu</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Mar 2020 07:50:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58803/nrfutil-mesh-dfu-flash-erase-timeout---perhaps" /><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/239881?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 07:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87c36667-7cca-4925-bb7c-207d54690afe</guid><dc:creator>JensK</dc:creator><description>&lt;p&gt;Thanks Hung Bui.&lt;/p&gt;
&lt;p&gt;Too bad. Would have been nice to be able to remotely update our next test installation.&lt;br /&gt;I&amp;#39;ll will put it aside for now and await your update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/239794?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 16:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26105473-23d9-4066-8ced-698d37cfe671</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tardis,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think setting ACK_WAIT_TIME to 1 and MAX_RETRIES to 5 would have the same effect. The problem is that if retry happens when the bootloader is erasing&amp;nbsp; it will cause a DFU fail.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you are updating the serial node with different application ID to the .zip image, you may run to another issue that we have found and I provided a fix here:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56151/mesh-dfu-relay-problem"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56151/mesh-dfu-relay-problem"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56151/mesh-dfu-relay-problem&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry that the DFU for mesh has many issues. We are planning to have a large bug fix for this in the next few weeks. Hopefully all the issues will be solved in the official branch.&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/239736?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 13:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56d74037-657e-403c-90ae-e15ee0c902e2</guid><dc:creator>JensK</dc:creator><description>&lt;p&gt;I am not a python guru.&lt;br /&gt;But wouldn&amp;#39;t a combination of tweaking ACK_WAIT_TIME and MAX_RETRIES result in a better solution?&lt;/p&gt;
&lt;p&gt;E.g.&lt;br /&gt;ACK_WAIT_TIME = 1.0&lt;br /&gt;MAX_RETRIES = 5&lt;br /&gt;Would result in a total timeout of 5 sec. but not have to wait the 5 sec. per timeout as you propose?&lt;/p&gt;
&lt;p&gt;But I agree with your finding that it is a nrfutil Mesh DFU flash erase timeout problem.&lt;/p&gt;
&lt;p&gt;I have tried setting ACK_WAIT_TIME as you described and I&amp;#39;ve also tried setting both ACK_WAIT_TIME and MAX_RETRIES as I described.&lt;/p&gt;
&lt;p&gt;Now it starts every time but it ends with&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;t:    1062241&amp;gt;, nrf_mesh_dfu.c,  339, Write complete (0x2003FE90)
&amp;lt;t:    1062245&amp;gt;, nrf_mesh_dfu.c,  348, Flash idle.
&amp;lt;t:    1071939&amp;gt;, nrf_mesh_dfu.c,  538, 	RADIO TX! SLOT 1, count 3, interval: exponential, handle: FFFC
&amp;lt;t:    1071952&amp;gt;, nrf_mesh_dfu.c,  339, Write complete (0x2003FE90)
&amp;lt;t:    1071955&amp;gt;, nrf_mesh_dfu.c,  348, Flash idle.
&amp;lt;t:    1080737&amp;gt;, nrf_mesh_dfu.c,  538, 	RADIO TX! SLOT 2, count 3, interval: exponential, handle: FFFC
&amp;lt;t:    1080750&amp;gt;, nrf_mesh_dfu.c,  339, Write complete (0x2003FE90)
&amp;lt;t:    1080754&amp;gt;, nrf_mesh_dfu.c,  348, Flash idle.
&amp;lt;t:    1089672&amp;gt;, nrf_mesh_dfu.c,  398, 	Abort event. Reason: 0x3&lt;/pre&gt;&lt;br /&gt;before reaching 2%.&lt;/p&gt;
&lt;p&gt;After toying with it a few minutes I tried to change SEND_START_DFU_WAIT_TIME to a value greater than the expected flash erase time. And setting it to 4.0 seems to have helped a great deal.&lt;br /&gt;It is at 5% right now and it started the first time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/239719?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 12:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f43fa579-8a6f-4fe2-b157-13f4eb89bc53</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tardis,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try again with&amp;nbsp;ACK_WAIT_TIME set to 5.0 in &lt;span&gt;dfu_transport_mesh.py&amp;nbsp; and recompile nrfutil&lt;/span&gt;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I had a look at the UART trace and it&amp;#39;s pointing out to the long delay when the chip has to erase multiple pages in flash (for the swap bank).&lt;/p&gt;
&lt;p&gt;In my case I&amp;#39;m testing with an image with size of 160kB meaning it&amp;#39;s 40 pages. The time it take to erase a page can be up to 89ms. This result a CPU busy time of up to 3.56 seconds. The&amp;nbsp;&lt;span&gt;ACK_WAIT_TIME&amp;nbsp;by default is 0.5 second and the nrfutil will try to send the message again. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Because the CPU is busy when doing DFU, it seems that the UART packets are&amp;nbsp;hang due to HWFC and it only continue when the CPU finished with flash erase. And after that the nRFUtil is confused and will stop.&amp;nbsp;&lt;br /&gt;You can see the screenshot here:&amp;nbsp;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x354/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-676fb57f920e45b588e0a41d7d3fe727/pastedimage1584102533175v1.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The small pulse in the middle is when the nrfutil tried to resend the packet but couldn&amp;#39;t finish due to buffer overflow and HWFC stoped it. The time from A1 to A2 is 3.38s matched with the erasing time for 40 pages.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will check with the Mesh team to get a confirmation. Before we can have the official fix from the team, the workaround here is to increase the timeout to 5 seconds so that the CPU have enough time to erase the flash. 5 seconds is enough for an image size of 224kB. The draw back of this is when a packet is dropped on UART (which don&amp;#39;t usually happens) it would take 5 seconds before the nrfutil retransmit the packet.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/239542?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2020 13:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c345d5fe-689e-4064-a173-79379a231a15</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tardis,&lt;br /&gt;I will check the file you provided.&amp;nbsp;&lt;br /&gt;But could you try to test using my files here. I forgot to attach it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-676fb57f920e45b588e0a41d7d3fe727/TestFiles.zip"&gt;devzone.nordicsemi.com/.../TestFiles.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/239494?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2020 10:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9866425-debd-458f-ad96-cf14b373960e</guid><dc:creator>JensK</dc:creator><description>&lt;p&gt;Ok I think I&amp;#39;ve made som progress.&lt;/p&gt;
&lt;p&gt;I was using the same device page hex file with both boards.&lt;br /&gt;Using a different one on the &amp;quot;DFU sender&amp;quot; it now starts every time.&lt;/p&gt;
&lt;p&gt;But now I get a new error&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;t:    1870209&amp;gt;, nrf_mesh_dfu.c,  538, 	RADIO TX! SLOT 6, count 3, interval: exponential, handle: FFFC
&amp;lt;t:    1870222&amp;gt;, nrf_mesh_dfu.c,  339, Write complete (0x2003FE90)
&amp;lt;t:    1870225&amp;gt;, nrf_mesh_dfu.c,  348, Flash idle.
&amp;lt;t:    1886673&amp;gt;, nrf_mesh_dfu.c,  538, 	RADIO TX! SLOT 7, count 3, interval: exponential, handle: FFFC
&amp;lt;t:    1886685&amp;gt;, nrf_mesh_dfu.c,  339, Write complete (0x2003FE90)
&amp;lt;t:    1886689&amp;gt;, nrf_mesh_dfu.c,  348, Flash idle.
&amp;lt;t:    1903653&amp;gt;, nrf_mesh_dfu.c,  538, 	RADIO TX! SLOT 1, count 3, interval: exponential, handle: FFFC
&amp;lt;t:    1903666&amp;gt;, nrf_mesh_dfu.c,  339, Write complete (0x2003FE90)
&amp;lt;t:    1903669&amp;gt;, nrf_mesh_dfu.c,  348, Flash idle.
&amp;lt;t:    1922053&amp;gt;, nrf_mesh_dfu.c,  398, 	Abort event. Reason: 0x3&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then it stops receiving before reaching 2%. This happens 5/5 tries.&lt;br /&gt;It still seems related to a timeout since I can get it to run past that point by pausing a specific point.&lt;br /&gt;If I press the pause button at this point (line 18)&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Nordic\lontech_config\DFU Test&amp;gt;nrfutil --verbose dfu serial -pkg .\dfu_nrf52840_xxAA_s140_7.0.1_LED2.hex.zip -p COM7 -i 250 -b 115200 -fc --mesh
Upgrading target on COM7 with DFU package C:\Nordic\lontech_config\DFU Test\dfu_nrf52840_xxAA_s140_7.0.1_LED2.hex.zip. Flow control is enabled.
Flushing com-port...
Opened com-port
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 122648
Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.
PC -&amp;gt; target: 0502aabbccdd
target -&amp;gt; PC: 0582aabbccdd
Got echo response
Sending DFU init packet
PC -&amp;gt; target: 1378fdff040f214dea9259000000010002000000
target -&amp;gt; PC: 16a6045900000001000200000059000000e803e8030000
target -&amp;gt; PC: 03847800
PC -&amp;gt; target: 1378fdff040f214dea9259000000010002000000
target -&amp;gt; PC: 03847800
PC -&amp;gt; target: 1478fcff0000214dea92ffffffffc677000040000c
target -&amp;gt; PC: 0da2020459000000010002000000
target -&amp;gt; PC: 03847800&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then wait for the target &amp;quot;Erase complete&amp;quot; message. Then let it resume.&lt;br /&gt;Then the the FW goes through.&lt;/p&gt;
&lt;p&gt;I have attached all the files I&amp;#39;ve used for this test&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU-Test.zip"&gt;devzone.nordicsemi.com/.../DFU-Test.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/239379?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 15:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da42216b-716a-4b80-af95-9a424a989782</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The problem is that it worked fine here. And this is the first time we got this report on the forum (the tool&amp;nbsp;created&amp;nbsp;3 years ago) so I&amp;#39;m not sure why.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you please provide all hex files you used for your DFU so we can try here ? This include the bootloader, softdevice, device page and dfu app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I also attached the files that I used, could you please test. You just need to run the script2.bat to flash all the files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The script for nrfutil is:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil dfu serial -pkg dfu_test100kID2.zip -p COM7 -b 115200 -fc --mesh
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please make sure you re-compile nrfutil after the modification.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/239355?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 13:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a34be785-d13d-4cab-9bb3-6141703ce498</guid><dc:creator>JensK</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried setting it to 10.0 - didn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;Then I set it to 100.0 and it started on the 5th try.&lt;/p&gt;
&lt;p&gt;Still not usable and it doesn&amp;#39;t seem to have any effect.&lt;br /&gt;Please get back to me when you have verified a working fix.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/238899?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 15:36:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e5d944-5217-47c1-8a5c-5c066e512341</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tardis,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s most likely the UART timeout was too short. Could you please change&amp;nbsp;&lt;strong&gt;DEFAULT_SERIAL_PORT_TIMEOUT&lt;/strong&gt; to &lt;strong&gt;10&lt;/strong&gt; (or larger) inside dfu_transport_mesh.py in the nRFutil for mesh source code.&amp;nbsp;&lt;br /&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/blob/mesh_dfu/nordicsemi/dfu/dfu_transport_mesh.py#L147"&gt;https://github.com/NordicSemiconductor/pc-nrfutil/blob/mesh_dfu/nordicsemi/dfu/dfu_transport_mesh.py#L147&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And re-compile nrfutil.exe (or install in python) and test again ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/238809?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 12:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff1f2cda-a10f-4c57-b1c8-f4e5d2b0745e</guid><dc:creator>JensK</dc:creator><description>&lt;p&gt;Yes. But it requires several attempts to get it going.&lt;/p&gt;
&lt;p&gt;I tried sending blinky_nrf52840_xxAA_s140_7.0.1.hex from mesh\bin\blinky and it seemed to go through in the first try. But it is not what I&amp;#39;m trying to do.&lt;br /&gt;Blinky is not representative of a real mesh application imho.&lt;/p&gt;
&lt;p&gt;I compile the dfu example (debug build) to dfu_nrf52840_xxAA_s140_7.0.1.hex&lt;br /&gt;So I can have a debug session running and see what is going on during the transfer.&lt;/p&gt;
&lt;p&gt;Then I generate a zip file using&lt;br /&gt;nrfutil dfu genpkg --application&amp;nbsp;dfu_nrf52840_xxAA_s140_7.0.1.hex --company-id 0x00000059 --application-id 1 --application-version 2 --sd-req 0x00CA --mesh dfu_nrf52840_xxAA_s140_7.0.1.hex.zip&lt;/p&gt;
&lt;p&gt;device_page is generated from:&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;bootloader_config&amp;quot;: {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;bootloader_id&amp;quot;: 1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;bootloader_version&amp;quot;: 1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;company_id&amp;quot;: 89,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;application_id&amp;quot;: 1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;application_version&amp;quot;: 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;Using:&lt;br /&gt;python device_page_generator.py -d nrf52840_xxAA -sd &amp;quot;s140_7.0.1&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Two identical DK boards are loaded using:&lt;br /&gt;nrfjprog -s %1 --chiperase --program s140_nrf52_7.0.1_softdevice.hex --verify s140_nrf52_7.0.1_softdevice.hex&lt;br /&gt;nrfjprog -s %1 --program mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.hex --verify mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.hex&lt;br /&gt;nrfjprog -s %1 --program&amp;nbsp;dfu_nrf52840_xxAA_s140_7.0.1.hex --verify dfu_nrf52840_xxAA_s140_7.0.1.hex&lt;br /&gt;nrfjprog -s %1 --program device_page_nrf52840_xxAA_s140_7.0.1.hex --verify device_page_nrf52840_xxAA_s140_7.0.1.hex&lt;/p&gt;
&lt;p&gt;Using &amp;quot;bootloader_verify.py&amp;quot; I get (on both boards):&lt;br /&gt;Reading UICR..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OK.&lt;br /&gt;Reading Device page..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OK.&lt;br /&gt;Resetting device..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OK (In application)&lt;br /&gt;Checking serial connection..&amp;nbsp;&amp;nbsp;&amp;nbsp; OK.&lt;/p&gt;
&lt;p&gt;I then start debugging one board:&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;gt;, main.c,&amp;nbsp; 194, ----- Bluetooth Mesh DFU Example -----&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13354&amp;gt;, serial_handler_prov.c,&amp;nbsp; 267, Generating encryption keypair...&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18151&amp;gt;, main.c,&amp;nbsp; 200, Initialization complete!&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22830&amp;gt;, main.c,&amp;nbsp; 221, Enabling serial interface...&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22833&amp;gt;, mesh_app_utils.c,&amp;nbsp;&amp;nbsp; 65, Device UUID (raw): xxxxxxxxxxxxxxxxxxxxxxxxx&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22836&amp;gt;, mesh_app_utils.c,&amp;nbsp;&amp;nbsp; 66, Device UUID : xxxxxxxxxxxxxxxxxxxxxxxxxx&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22847&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 538, &amp;nbsp;&amp;nbsp; &amp;nbsp;RADIO TX! SLOT 0, count 255, interval: periodic, handle: FFFE&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22852&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 576, &amp;nbsp;&amp;nbsp; &amp;nbsp;SERIAL TX!&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22859&amp;gt;, main.c,&amp;nbsp; 229, DFU example started!&lt;/p&gt;
&lt;p&gt;Start the DFU using:&lt;br /&gt;nrfutil --verbose dfu serial -pkg&amp;nbsp;dfu_nrf52840_xxAA_s140_7.0.1.hex.zip -p COM7 -b 115200 -fc --mesh &lt;br /&gt;&lt;br /&gt;From nrfutil I get:&lt;br /&gt;Upgrading target on COM7 with DFU package C:\xxxxx\dfu_nrf52840_xxAA_s140_7.0.1.hex.zip. Flow control is enabled.&lt;br /&gt;Flushing com-port...&lt;br /&gt;Opened com-port&lt;br /&gt;Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 122616&lt;br /&gt;Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.&lt;br /&gt;PC -&amp;gt; target: 0502aabbccdd&lt;br /&gt;target -&amp;gt; PC: 0582aabbccdd&lt;br /&gt;Got echo response&lt;br /&gt;Sending DFU init packet&lt;br /&gt;PC -&amp;gt; target: 1378fdff040f96df2d9759000000010002000000&lt;br /&gt;target -&amp;gt; PC: 16a6045900000001000200000059000000010001000000&lt;br /&gt;target -&amp;gt; PC: 03847800&lt;br /&gt;PC -&amp;gt; target: 1378fdff040f96df2d9759000000010002000000&lt;br /&gt;target -&amp;gt; PC: 03847800&lt;br /&gt;PC -&amp;gt; target: 1478fcff000096df2d97ffffffffbe77000000000c&lt;br /&gt;PC -&amp;gt; target: 1478fcff000096df2d97ffffffffbe77000000000c&lt;br /&gt;PC -&amp;gt; target: 1478fcff000096df2d97ffffffffbe77000000000c&lt;br /&gt;PC -&amp;gt; target: 1478fcff000096df2d97ffffffffbe77000000000c&lt;br /&gt;PC -&amp;gt; target: 1478fcff000096df2d97ffffffffbe77000000000c&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Failed to upgrade target. Error is: Crashed on start packet&lt;br /&gt;&lt;br /&gt;Possible causes:&lt;br /&gt;- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.&lt;br /&gt;- baud rate or flow control is not the same as in the target bootloader.&lt;br /&gt;- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.&lt;br /&gt;Closing serial port...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And in the Debug Terminal I get:&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3799440&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 405, &amp;nbsp;&amp;nbsp; &amp;nbsp;New firmware!&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3799443&amp;gt;, main.c,&amp;nbsp; 109, Requesting DFU transfer with bank at 0x0008D000&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3799446&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 538, &amp;nbsp;&amp;nbsp; &amp;nbsp;RADIO TX! SLOT 0, count 255, interval: periodic, handle: FFFD&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3799450&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 549, Killing a TX slot prematurely (repeats done: 12).&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3799454&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 576, &amp;nbsp;&amp;nbsp; &amp;nbsp;SERIAL TX!&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3803757&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 538, &amp;nbsp;&amp;nbsp; &amp;nbsp;RADIO TX! SLOT 0, count 255, interval: periodic, handle: FFFD&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3803761&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 549, Killing a TX slot prematurely (repeats done: 0).&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3803765&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 576, &amp;nbsp;&amp;nbsp; &amp;nbsp;SERIAL TX!&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3947034&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 445, &amp;nbsp;&amp;nbsp; &amp;nbsp;DFU start&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3947037&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 538, &amp;nbsp;&amp;nbsp; &amp;nbsp;RADIO TX! SLOT 5, count 6, interval: exponential, handle: FFFC&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 4031158&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 344, Erase complete (0x8D000)&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 4031161&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 348, Flash idle.&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 6830620&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 312, ABORT Timeout fired @720453979&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 6830623&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 538, &amp;nbsp;&amp;nbsp; &amp;nbsp;RADIO TX! SLOT 0, count 255, interval: periodic, handle: FFFE&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 6830628&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 576, &amp;nbsp;&amp;nbsp; &amp;nbsp;SERIAL TX!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;Failed to upgrade target. Error is: Crashed on start packet&amp;quot; message is received after &amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3947037&amp;gt; but before &amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 4031158&amp;gt;.&lt;br /&gt;Which is what leads me to think it&amp;#39;s a timeout issue waiting for the flash to be erased.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a different PC on hand but what would you think could be the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil Mesh DFU flash erase timeout - perhaps</title><link>https://devzone.nordicsemi.com/thread/238541?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 13:51:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4261de85-45b8-46a2-b4c7-400592469c84</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tardis,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Even without the public key, have you managed to get any DFU session succeeded ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Have you tried to do DFU with a very small image, for example the Blinky application as in the documentation ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think it&amp;#39;s an erase timeout as you can find the flash was idle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t seen the &amp;quot;&lt;span&gt;&amp;nbsp;Crashed on start packet&amp;quot; before. If you still have issue updating the blinky application, please send us your files (bootloader ,dfu application, DFU .zip file of the blinky, device page ). Could you try again on another PC ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We havent got much update of the nRFutil lately so it&amp;#39;s still the same as a few years ago and stuck at Python 2.7 .We will do an update in the future.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>