<?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>How I can get a simple to help me understand the DFU procedure that Transfer of a firmware image?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58606/how-i-can-get-a-simple-to-help-me-understand-the-dfu-procedure-that-transfer-of-a-firmware-image</link><description>Hi，I want to write the firmware to 52832 from android system by UART .I have readed the firmware into bytes, and then do not know how to compose the bytes to write into serial port.I will Appreciate if you can show me a simple!! 
 Thanks!! Best Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Mar 2020 08:55:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58606/how-i-can-get-a-simple-to-help-me-understand-the-dfu-procedure-that-transfer-of-a-firmware-image" /><item><title>RE: How I can get a simple to help me understand the DFU procedure that Transfer of a firmware image?</title><link>https://devzone.nordicsemi.com/thread/237948?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 08:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7697768-a4f3-46b9-a1ac-90c64eec1756</guid><dc:creator>QingF</dc:creator><description>&lt;p&gt;It has not enter the&amp;nbsp;&lt;span&gt;on_packet_received() handler&amp;nbsp;yet when&amp;nbsp;I&amp;nbsp; send&amp;nbsp;{0x02,0x00,0x00}&amp;nbsp; ;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I can get a simple to help me understand the DFU procedure that Transfer of a firmware image?</title><link>https://devzone.nordicsemi.com/thread/237942?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 08:37:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b47183-192a-44c6-9982-d565416026ec</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;OK, do you enter the&amp;nbsp;&lt;span&gt;on_packet_received() handler at all when&amp;nbsp;you send&amp;nbsp;{0x02,0x00,0x00} ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I can get a simple to help me understand the DFU procedure that Transfer of a firmware image?</title><link>https://devzone.nordicsemi.com/thread/237920?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 07:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aca660b-f6d3-4878-91f5-e3cc7f2ac7fc</guid><dc:creator>QingF</dc:creator><description>&lt;p&gt;I debugged as follow:&lt;/p&gt;
&lt;p&gt;00&amp;gt; :INFO:Inside main&lt;br /&gt;00&amp;gt; :DEBUG:In nrf_bootloader_init&lt;br /&gt;00&amp;gt; :DEBUG:In real nrf_dfu_init&lt;br /&gt;00&amp;gt; :DEBUG:running nrf_dfu_settings_init&lt;br /&gt;00&amp;gt; :DEBUG:Enter nrf_dfu_continue&lt;br /&gt;00&amp;gt; :DEBUG:Valid App&lt;br /&gt;00&amp;gt; :DEBUG:Application sent bootloader request&lt;br /&gt;00&amp;gt; :DEBUG:In nrf_dfu_transports_init&lt;br /&gt;00&amp;gt; :DEBUG:num transports: 1&lt;br /&gt;00&amp;gt; :DEBUG:UART initialized&lt;br /&gt;00&amp;gt; :DEBUG:After nrf_dfu_transports_init&lt;br /&gt;00&amp;gt; :DEBUG:Waiting for events&lt;/p&gt;
&lt;p&gt;It&amp;#39;s print same as send command use nRfutil tool from PC. but it has no the print of the &lt;span&gt;SERIAL_DFU_OP_CODE_SET_RECEIPT_NOTIF&amp;nbsp;&lt;/span&gt;case :&lt;/p&gt;
&lt;p&gt;case SERIAL_DFU_OP_CODE_SET_RECEIPT_NOTIF:&lt;br /&gt; NRF_LOG_DEBUG(&amp;quot;Set receipt notif\r\n&amp;quot;);------------------------ths line.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also try to write the bytes of {0x02,0x00,0x00} to&amp;nbsp;trigger it ,but no reponse too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I can get a simple to help me understand the DFU procedure that Transfer of a firmware image?</title><link>https://devzone.nordicsemi.com/thread/237841?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 15:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62bb6a58-1b6a-4965-aa86-1d9c318ea2d1</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Please note that the serial bootloader in SDK v13.0.0 is considered experimental.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you debug the bootloader and verify that you enter the&amp;nbsp;SERIAL_DFU_OP_CODE_SET_RECEIPT_NOTIF case in&amp;nbsp;on_packet_received() in nrf_serial_dfu.c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I can get a simple to help me understand the DFU procedure that Transfer of a firmware image?</title><link>https://devzone.nordicsemi.com/thread/237723?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 12:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:739ea3d6-05f1-42f0-a3a5-eb1e08253bc3</guid><dc:creator>QingF</dc:creator><description>&lt;p&gt;Hi bjorn-spokeli:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;thanks for your answer!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I had seen the SDK&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_dfu_transport_serial.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_dfu_transport_serial.html&lt;/a&gt;&amp;nbsp; &amp;nbsp;Correspond with my&amp;nbsp;nRF5_SDK_13.0.0&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; and I have&amp;nbsp;&lt;span&gt;performed the update from a PC user the nRFutil tool:&amp;nbsp;nrfutil dfu serial -pkg application.zip -p COM7 -fc 0 -b 9600&amp;nbsp; . It update successfully. The next I will do is implemented the same function as the nrfutil tool&amp;nbsp; in android system to update automaticlly.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; According to the&amp;nbsp;procedure of DFU protocol ,at first:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1. I set the PRN to 256&amp;nbsp; and send the following content:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] PRN ={02,01,00}&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;   boolean &lt;/span&gt;&lt;span&gt;isSuccessBegin &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;getSerialPort&lt;/span&gt;&lt;span&gt;().&lt;/span&gt;&lt;span&gt;SerialSendData&lt;/span&gt;&lt;span&gt;(PRN&lt;/span&gt;&lt;span&gt;);&lt;br /&gt;   It should have a respond of [60 02 01],but I have not received any message; &lt;br /&gt;   I make sure the baudrate is corret，I can send other test commad and the 52832 reply to me successfully.&lt;br /&gt;   Finally,if you have the java library ??&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I can get a simple to help me understand the DFU procedure that Transfer of a firmware image?</title><link>https://devzone.nordicsemi.com/thread/237700?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 11:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d0b3bc2-8e5f-484c-b16f-8a05bb0429e6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI QingF.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;we have a Serial Bootloader example in our SDK, see&amp;nbsp;&lt;a title="Secure DFU Bootloader over Serial Link (UART/USB)" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/sdk_app_serial_dfu_bootloader.html?cp=7_1_4_4_4"&gt;Secure DFU Bootloader over Serial Link (UART/USB)&lt;/a&gt;. It uses the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_modules.html?cp=7_1_3_5"&gt;Secure Bootloader module&lt;/a&gt; and it has a&amp;nbsp;serial&amp;nbsp;transport layer, where the protocol is described &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_dfu_transport_serial.html?cp=7_1_3_5_2_3_0#lib_dfu_transport_usb"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to perform the update from a PC, then you can use our nRFutil tool, see&amp;nbsp;&lt;a title="nRF Util" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_intro.html?cp=8_5"&gt;nRF Util&lt;/a&gt;&amp;nbsp;on our Infocenter. If you want to perform the update from another MCU, then one of our FAEs ported the nrfutil serial dfu functionality to a C library see&amp;nbsp;&lt;a href="https://github.com/jimmywong2003/nrf-slim-serial-uart-dfu-host-c-code"&gt;https://github.com/jimmywong2003/nrf-slim-serial-uart-dfu-host-c-code&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I can get a simple to help me understand the DFU procedure that Transfer of a firmware image?</title><link>https://devzone.nordicsemi.com/thread/237668?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 09:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddd4c978-0eef-4d20-b6d1-2b741c7d24cc</guid><dc:creator>QingF</dc:creator><description>&lt;p&gt;Additional explanation：&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; My device is not supported BLE，So I must to transfer the firmware image by serial port. I found some demos,but all are&amp;nbsp;about BLE . Where can I found the demo that&amp;nbsp;&lt;span&gt;&amp;nbsp;transfer the firmware image by serial port ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>