<?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>nrf52832 serial dfu mode implementation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42375/nrf52832-serial-dfu-mode-implementation</link><description>Hi, 
 
 I&amp;#39;m trying to implement nrfutil serial DFU master in C code. I have few doubts on it. 
 
 1. Can we avoid ping packet at the start? 
 2. What is PNR and how we can use this to send our firmware packet? 
 3. What is MTU? is this really necessary</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Feb 2020 08:15:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42375/nrf52832-serial-dfu-mode-implementation" /><item><title>RE: nrf52832 serial dfu mode implementation</title><link>https://devzone.nordicsemi.com/thread/236709?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 08:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:065a1acb-59bb-4f96-b9ac-e5857fa629a6</guid><dc:creator>Vaibhav_Bansal</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In above process I was doing follow the steps, but during execution of .dat file i go no response from the NRF, can you help me out with the possible reasons of no response and also there is no error with the packet transmission.&lt;/p&gt;
&lt;p&gt;The procedure I had followed:&lt;/p&gt;
&lt;p&gt;1. Set PRN - got success&lt;/p&gt;
&lt;p&gt;2. Get MTU - got success&lt;/p&gt;
&lt;p&gt;3. Create Object. - got success&lt;/p&gt;
&lt;p&gt;4. Write data to object - got success&lt;/p&gt;
&lt;p&gt;5. Calculate checksum - got success and verified&lt;/p&gt;
&lt;p&gt;6. Execute - no response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 serial dfu mode implementation</title><link>https://devzone.nordicsemi.com/thread/166585?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 17:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbfe4ad2-204d-4fc6-879d-fb57e0ed2a74</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know your suggestion for below query&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42731/nrf52-serial-dfu-file-loading-sequence"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42731/nrf52-serial-dfu-file-loading-sequence&lt;/a&gt;&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: nrf52832 serial dfu mode implementation</title><link>https://devzone.nordicsemi.com/thread/165505?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 14:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261ba068-613c-4d99-9cfc-33298f8cf7c7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Basavanagouda,&lt;/p&gt;
&lt;p&gt;That 0xC0 is the&amp;nbsp;SLIP code for identifying the beginning and end of a packet frame. So that is only related to UART over USB.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 serial dfu mode implementation</title><link>https://devzone.nordicsemi.com/thread/165235?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 15:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19e0827e-7def-4d65-b401-cb017e778641</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the response and its helps us lot.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;6. Where do you see that there is always a 0xC0 in the end of an init packet?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/btbin.htm"&gt;devzone.nordicsemi.com/.../btbin.htm&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We captures data while&amp;nbsp;sending example firmware from nrfutils to board. Each sent and&amp;nbsp;&amp;nbsp;rx packets are ending with 0xC0.&lt;/p&gt;
&lt;p&gt;please check the end of the file you can see Blue and red colored data. Blue represents Tx data from the nrfutil and Red is Rx response from the device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Basavanagouda.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 serial dfu mode implementation</title><link>https://devzone.nordicsemi.com/thread/165186?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 13:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef1b5bef-f7e8-4081-a3f8-6751017b945f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Basavanagouda,&lt;/p&gt;
&lt;p&gt;The whole serial DFU flow is shown in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_dfu_transport_serial.html"&gt;sequence charts for the Serial transport layer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;1. There is no need to implement the ping packet. It can be useful for testing though, as you can use it to see if you have a working connection with the bootloader on the nRF.&lt;/p&gt;
&lt;p&gt;2. Packet Receipt Notification (PRN) is used to acknowledge packet reception. It is not needed if you are using a reliable link (UART can probably be considered reliable here).&lt;/p&gt;
&lt;p&gt;3. MTU is the&amp;nbsp;maximum transmission unit (think of it as the maximum packet size). It is covered by the serial transport layer documentation. You can set a fixed number as long as you know that it is not too large for the device you are upgrading (which you can know if you are making both).&lt;/p&gt;
&lt;p&gt;4. All opcodes are listed in a &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_dfu_transport.html"&gt;table in the DFU protocol documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;5. The .dat file contains the init packet, which is required. This contains version info etc. and is signed. The DFU process will only commence if the init packet validation is successful.&lt;/p&gt;
&lt;p&gt;6. Where do you see that there is always a 0xC0 in the end of an init packet?&lt;/p&gt;
&lt;p&gt;7. The firmware is transferred as raw binary (but split up). So no particular format as such.&lt;/p&gt;
&lt;p&gt;8.&amp;nbsp;PRN is not&amp;nbsp;required.&lt;/p&gt;
&lt;p&gt;9. No.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>