<?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>Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23416/issue-with-serial-dfu-on-nrf52</link><description>Hi All, 
 I am trying to get the serial DFU working with nRF52832 development kit with SDK 13. I am able to get the bootloader flashed and have installed the nrfUtil tool. I followed the exact sequence of the steps mentioned here and got it right until</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jul 2017 14:29:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23416/issue-with-serial-dfu-on-nrf52" /><item><title>RE: Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/92029?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 14:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af588cea-c2f6-4c7e-a0bc-7b2e42c87b19</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Siva,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s pretty strange. I just tested on my nRF52DK , I can reset the board right after programming.&lt;/p&gt;
&lt;p&gt;Could you make it more clear what you mean LED1 changes and LED 2 LED3 glowing?  What exactly was glowing, like lid up bot not solid ?&lt;/p&gt;
&lt;p&gt;Do you see that right after you program the bootloader or when you start sending the image  ?&lt;/p&gt;
&lt;p&gt;Could you include your bootloader file and the .zip file you used ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/92028?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 08:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c957238-f4f0-46ab-8feb-9194fec675af</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your inputs.&lt;/p&gt;
&lt;p&gt;I am stuck with an other issue now. I need to do a hard reset (unplug-plug the USB to serial cable in the nef52 DK) before able to perform a serial DFU. This is an intermittent issue when the softreset using SW5 isn&amp;#39;t enough after programming the bootloader and you need to perform a hard reset to get the DFU transfer going.&lt;/p&gt;
&lt;p&gt;I connected a saleae to trace the transfer and could see that a nrfutil is it sending a  &amp;quot;\t 1 192&amp;quot; in ascii for which there is no response from the device.&lt;/p&gt;
&lt;p&gt;The LED1 and LED3 is the one normally lit in the bootloader mode but in the instances when the device doesn&amp;#39;t respond the LED1 changes LED2 and I can see LED2 and LED3 glowing.&lt;/p&gt;
&lt;p&gt;The steps that I followed is as below:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Flash the SD and the bootloader after a flash erase from nrfGO.&lt;/li&gt;
&lt;li&gt;Reset the device using SW5 and transfer the image using nrfUtil&lt;/li&gt;
&lt;li&gt;Transfer fails with msg &amp;quot;No ping response&amp;quot; (Not always)&lt;/li&gt;
&lt;li&gt;Unplug and plug the cable. Try the DFU now and it works.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The same happens when I switch back to the bootloader from the application for performing a DFU. The device jumps to the bootloader but the transfer fails with &amp;quot;No ping response&amp;quot;&lt;/p&gt;
&lt;p&gt;Please let me know if you have some pointers for resolving this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/92033?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 14:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bceb5ab-b49f-4461-945d-78480a39fa5c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Siva,&lt;/p&gt;
&lt;p&gt;If you have a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/sdk_app_serial_dfu_bootloader.html?cp=4_0_0_4_3_2"&gt;documentation&lt;/a&gt; (very first lines), you can find that the serial bootloader still require the softdevice.&lt;/p&gt;
&lt;p&gt;The reason is that the bootloader still use the vector forwarding inside the softdevice and the flash API is also used the softdevice flash API.&lt;/p&gt;
&lt;p&gt;The softdevice always have to be flashed first.&lt;/p&gt;
&lt;p&gt;Erase function inside Keil is not suggested to use, the reason is that it can&amp;#39;t erase the softdevice. You should always use nRFGo studio or nRFjprog to do flash erase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/92032?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 08:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d5d94ae-8c0c-4144-8d73-b7e7b9383578</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;So now I did a &amp;quot;erase all&amp;quot; in nRFGO, programmed the SD from it (nRFGo) and then did a full flash erase in keil and programmed the bootloader (from keil) to check the behavior. Surprisingly that too worked. In the keil debugger the address range set for the flash is 0x0 - 0x7FFFF which is the entire flash memory range of nrf52. So clearly there is something which the keil is not able to do in a full flash erase but the nrfGo can do. Because if  the keil did a full flash erase like the nrfGo tool does the &amp;quot;erase all&amp;quot; then I wouldn&amp;#39;t have got that working. In other words there is something which  the nrfGo tool writes which is required by the bootloader and can&amp;#39;t be deleted by an IDE like keil even if you try to erase the entire flash. Is there some kind of vector table which is required an inaccessible to keil? Sorry for the long comments. Let me know if you need more clarification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/92031?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 08:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf74cef3-6f68-48d6-9e4c-c1c362af8746</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Hi Hung,
I have some interesting observations. Before coming to that, the good news is I am able to get the serial boot loader working. Until now I was using the keil to flash my serial bootloader binaries. In the &amp;quot;Flash Download&amp;quot; settings in Keil, I had opted for a full flash erase before the programming operation to simulate a bare flash scenario coming out of production. I was struggling to get the serial boot loader work with this setup.&lt;/p&gt;
&lt;p&gt;Now I switched to nRFGo for the first time. I did the exact same procedure of &amp;quot;erase all&amp;quot; and then program the bootloader. Even this didn&amp;#39;t seem to work. Then just my the stroke of luck I happened to program the SD after an &amp;quot;erase all&amp;quot; and then program the bootloader. Bingo, It started working now and I was able to perform serial DFU. Until then or even now I dont understand the need of the SD for bootloader to work? Continuing below..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/92035?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 12:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c528a143-45b8-4be2-97f3-0c61d4b5efc1</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I have tried with the latest version of the nrfutil-3.2 . But still its the same result. I have not done any code changes in the bootloader. I just compiled the micro-ecc and created a new publickey.c file. I am able to flash and the bootloader is waiting in the wait_for_event function. As I have mentioned, it doesn&amp;#39;t seem to sent the full dfu packet from the host.&lt;/p&gt;
&lt;p&gt;I am able to get the UART logs and I got most of the example applications working in my setup except this serial bootloader. Please let me know if you need any further information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/92030?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 14:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6815900-d145-45f7-b48e-b52c8a3b544b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Siva,&lt;/p&gt;
&lt;p&gt;Could you check which nrfutil version do you have make sure you have version 3.x.&lt;/p&gt;
&lt;p&gt;You can download the latest nrfutil.exe &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Have you modified anything on the bootloader ? If you simply test UART with a normal application does it work ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with serial DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/92034?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 07:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e7b8b70-75aa-4ccc-b5d5-8f6bd792a3cc</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Updating few more observation from the debugging done after this post:-
When I put a break point on on_rx_complete in the uart_event_handler, I see that the number of bytes received is 1 and its value is &amp;#39;C0&amp;#39; which as per Serial (HCI) should be SLIP start/stop. But I dont see the remaining bytes of the Start packet coming. I am sure DFU serial works for other so could this be an issue with the nrfUtil tool? I followed the steps in this link [link text] (&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fnrfutil%2Fnrfutil_intro.html)"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt; for its installation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>