<?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>Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42873/uploading-issue-of-application-and-softdevice-file-from-the-master-serial-dfu</link><description>Hi, 
 
 I have implemented the Master serial DFU code to update application and SD file. I&amp;#39;m following DFU packet send sequence. Ping, inti packet, FW packet. 
 I&amp;#39;m framing packet of 116 byte and sending to nrf device. But device is not properlly uploading</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Feb 2019 10:05:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42873/uploading-issue-of-application-and-softdevice-file-from-the-master-serial-dfu" /><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/169877?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 10:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f042d3e7-6dc5-444d-8a2b-ec316700dc8b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Basava,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit surprised that you need a longer delay when lowering the baudrate, I would have expected the opposite. Did you try to debug the bootloader to see what was causing the hardfault? The&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_hardfault"&gt;hardfault handling library&lt;/a&gt;&amp;nbsp;can help you to trace back to the source of the fault. Also, do you have a way&amp;nbsp;to&amp;nbsp;monitor the transactions between&amp;nbsp; the host and nrf52 to see if the data is transferred correctly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/169804?ContentTypeID=1</link><pubDate>Wed, 06 Feb 2019 20:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ab9096-7fd9-4174-8cea-ce5ee63a95cd</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is there any suggestions on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/169097?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 14:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30b82e1a-31fc-411f-8da5-007d0556c6e4</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Now i&amp;#39;m sending data at 9600 baud rate using nrfutils command from the Prompt. Its working. But we have implemented same in St controller side(C code), here we saw same issue with hardware fault.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then we log the working CMD prompt data, we observe the log packet by packet. While sending&amp;nbsp; Firmware packet, after every 3 packet its need 200msec delay. (I really dont know why this delay is needed after &lt;strong&gt;3packet&lt;/strong&gt;?).&lt;/p&gt;
&lt;p&gt;So, we considered it in our code and implemented it. Now issue got resolved. We struggled a lot to find out this and took 2 week of time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To verify that delay, we tested with different baud like 4800. Now it is taking 400msec after every 3 packet.&lt;/p&gt;
&lt;p&gt;and for 14400baud it is taking ~150msec delay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I request you, Can you please let us know why the bootloader needs a delay after 3 packet? and&lt;/p&gt;
&lt;p&gt;why the delay is changing based on the baud rate?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can find the log file in the below link:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42982/secure-dfu-without-flow-control-sdk-15-2"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42982/secure-dfu-without-flow-control-sdk-15-2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Baudrate_5F00_9600.htm"&gt;Baudrate_9600.htm&lt;/a&gt;&amp;nbsp;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Because of this delay requirement some time its not working with 57600baud.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let us know the delay requirement.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks ,&lt;/p&gt;
&lt;p&gt;Basava.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/168379?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 07:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ceecf3-550d-4914-bb0a-46516c463e9c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Basava,&lt;/p&gt;
&lt;p&gt;Are you able to debug the bootloader to see where the Hardfault occurred?&amp;nbsp;The bootloader should not hardfault because of data being transferred too fast.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/168359?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 05:07:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27730376-16c5-417c-9876-a7327e00f42b</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;HI Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply. I have tried with 9600 baud rate with nrfutil. Its taking around 50 sec to upload and it updated properly.&lt;/p&gt;
&lt;p&gt;So same thing i have implemented C code to transmit FW packet to BLE. I&amp;#39;m making 64 bytes of packet of 4 bytes and sending it to BLE. It receiving properly. After sending 4k asking for CRC. I&amp;#39;m getting CRC.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m facing issue here.&lt;/p&gt;
&lt;p&gt;1. After sending 4 or 5 4kbytes packet. Bootloader code going for Hardware fault.&lt;/p&gt;
&lt;p&gt;2. I&amp;#39;m not understanding this issue. It will update the FW using CMD prompt nrfutil commands.&lt;/p&gt;
&lt;p&gt;3. But with my code it is going for Hardware fault.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there any delay required for each packet?&lt;/p&gt;
&lt;p&gt;What will be the reason for this hardware fault issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know the suggestions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basava.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/168277?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 14:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c27ec03-c30d-4919-b0b9-5ad962a31ab2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Basava,&lt;/p&gt;
&lt;p&gt;have you tried with nrfutil with the same baudrate without flow control?&amp;nbsp;I took ~30 seconds to&amp;nbsp;upload the softdevice (145K) image here. Would be nice to know if you get the same result.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5fffc4c3bf5847e8ad30fdd8ec48a1c1/cmd.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/168009?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 16:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d3b4cae-9c1b-4402-9854-3e687a2622f3</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried with 64 bytes with 57600 baud, but I&amp;#39;m getting Hardfault error.&lt;/p&gt;
&lt;p&gt;then i tried with&amp;nbsp; 32 bytes with&amp;nbsp;&lt;span&gt;57600 baud and 1 sec delay in between each packet. Now its working fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;I was tested it with 500msec and it is going for hardware fault. It didn&amp;#39;t write it to flash.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I really don&amp;#39;t know why it need 1sec to write 32bytes Flash memory. I&amp;#39;m not trace out where its going wrong.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But the issue is, i&amp;#39;m sending 34k bytes of data. It will take lot of time to send. So is there any solution for this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;basava&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/167816?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 07:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad89673-a6a5-4fb5-aede-f7bfd189dcdf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Basava,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since you don&amp;#39;t have HWFC enabled it may help to request the checksum more frequent. This will lower the throughput some but also help reduce the risk of buffer overflow on the uart interface. As a test I would suggest to try requesting it after every data packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/167755?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 17:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92ad8628-ef3d-4743-b2c7-8c0394c0f075</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;While testing with nrfutil i found this issue&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42975/op_code-error"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42975/op_code-error&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;quot;m suspecting&amp;nbsp;below reason for that&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42982/secure-dfu-without-flow-control-sdk-15-2"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42982/secure-dfu-without-flow-control-sdk-15-2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i request you please check these and help me to understand it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Basava.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/167663?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 13:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0fd4a56-5b97-4399-9c8f-3e07d163e678</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. It&amp;#39;s actually 0x83 bytes because the value is little endian. From your log:&lt;/p&gt;
&lt;pre style="color:#ff0000;font-size:14.6667px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;"&gt;60&amp;lt;RESPONSE&amp;gt; 07&amp;lt;OPCODE MTU GET&amp;gt; 01&amp;lt;&lt;em&gt;NRF_DFU_RES_CODE_SUCCESS&lt;/em&gt;&amp;gt; 83 00 &amp;lt;VALUE - LSB comes first&amp;gt;&lt;/pre&gt;
&lt;p&gt;2. What version of nrfutil are you using? I thought the PRN was set to &amp;#39;0&amp;#39; by default but appears to be 192 here.&amp;nbsp; Note that the transfer size shown in the log does not reflect the packet size, see SLIP encoding. I couldn&amp;#39;t spot any large packages at least.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5fffc4c3bf5847e8ad30fdd8ec48a1c1/trace.png" /&gt;&lt;/p&gt;
&lt;p&gt;3. It is up to the controller. If you have a reliable transport you might not need it at all. You could do before every execute command to ensure that you don&amp;#39;t have to re-start the entire upload if there was a transfer error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. The MTU size limits the packet size. So the number of &amp;quot;splits&amp;quot; depends on packet size and the size of your data objects.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading issue  of  Application and Softdevice file from the Master serial DFU.</title><link>https://devzone.nordicsemi.com/thread/167662?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 13:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2100449-72e0-4c55-b0fd-449fd7a3c706</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. It&amp;#39;s actually 0x83 bytes because the value is little endian. From your log:&lt;/p&gt;
&lt;pre style="color:#ff0000;font-size:14.6667px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;"&gt;60&amp;lt;RESPONSE&amp;gt; 07&amp;lt;OPCODE MTU GET&amp;gt; 01&amp;lt;&lt;em&gt;NRF_DFU_RES_CODE_SUCCESS&lt;/em&gt;&amp;gt; 83 00 &amp;lt;VALUE - LSB comes first&amp;gt;&lt;/pre&gt;
&lt;p&gt;2. What version of nrfutil are you using? I thought the PRN was set to &amp;#39;0&amp;#39; by default but appears to be 192 here.&amp;nbsp; Note that the transfer size shown in the log does not reflect the packet size, see SLIP encoding. I couldn&amp;#39;t spot any large packages at least.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5fffc4c3bf5847e8ad30fdd8ec48a1c1/trace.png" /&gt;&lt;/p&gt;
&lt;p&gt;3. It is up to the controller. If you have a reliable transport you might not need it at all. You could do before every execute command to ensure that you don&amp;#39;t have to re-start the entire upload if there was a transfer error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. The MTU size limits the packet size. So the number of &amp;quot;splits&amp;quot; depends on packet size and the size of your data objects.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>