<?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>NRF52 DFU Serial problem in SDK 15.3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45725/nrf52-dfu-serial-problem-in-sdk-15-3</link><description>Hello everyone, 
 Currently I&amp;#39;m experiencing with some issues with serial bootloader in SDK 15.3. I&amp;#39;m using NRF52832 on my custom board together with main MCU that performs some other stuffs including firmware upgrade of NRF52. I have already successfully</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Apr 2019 09:14:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45725/nrf52-dfu-serial-problem-in-sdk-15-3" /><item><title>RE: NRF52 DFU Serial problem in SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/180682?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 09:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55c1dae7-26b1-404c-8591-e36c71eec76a</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Glad you got it working, good luck on the development!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU Serial problem in SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/180663?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 08:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a3d134e-f025-4b15-963d-b56dce4661b2</guid><dc:creator>dsasa</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I turned on logs in bootloader (level &amp;quot;Debug&amp;quot;) to see what&amp;#39;s happening. In logs I can see message that response is sent after last chunk, but it is not registered by the nrfutility. I suppose there is an issue with short time&amp;nbsp;interval that nrfutil waits for a response and if it is not received it goes further. I tried this on development kit.&lt;/p&gt;
&lt;p&gt;When I implemented a longer wait time in my firmware, it started working. I&amp;#39;m getting response to the last command now. So we can conclude that adding a delay at line 573. is a solution!&lt;/p&gt;
&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU Serial problem in SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/180481?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 11:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af1d958a-0f8e-46ff-841b-791a62758de7</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi agian.&lt;/p&gt;
&lt;p&gt;Sorry that did not work then.&lt;/p&gt;
&lt;p&gt;Could you perhaps provide some log from the bootloader? (not nrfutil logs)&lt;/p&gt;
&lt;p&gt;Also, if you want, I can make this case private if you don&amp;#39;t wish to share that with other then me.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU Serial problem in SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/180474?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 11:08:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9e5a5bc-c0ea-45ba-910a-a5352cccc86c</guid><dc:creator>dsasa</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I already supposed there is an error in snippet and placed delay inside if statement at line 573. There is no difference, no response to the last execute object command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU Serial problem in SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/180417?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 07:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:553330d7-684e-4334-baa1-536e8d9a01b2</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I just noticed that I&amp;#39;ve copied the wrong code snippet, the delay should be added to the if statement, on line 573:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9822e759655d49e6be4bdcb18987830f/pastedimage1554448566908v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you try to place it there?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU Serial problem in SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/180338?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 13:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4d1fd85-269d-4e51-9ed7-4ddc3986784a</guid><dc:creator>dsasa</dc:creator><description>&lt;p&gt;Thank You for answering,&lt;/p&gt;
&lt;p&gt;Unfortunately, adding a delay does not solve the problem. Same situation again. I experimented with delay values but with no results. Still no response to the last &amp;quot;execute object&amp;quot; command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU Serial problem in SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/180311?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 12:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2baf20d0-a23a-41dd-981b-c5665f6eedbc</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;This is unfortunately a known problem that has been looked at, but that solution was left out due to size reasons.&lt;/p&gt;
&lt;p&gt;Can you try to implement this workaround, it should work.&lt;/p&gt;
&lt;p&gt;In the file &lt;strong&gt;components\libraries\bootloader\dfu\nrf_dfu_req_handler.c&lt;/strong&gt;, add a delay on line 573:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        res.result = NRF_DFU_RES_CODE_SUCCESS;

        /* Provide response to transport */
        p_req-&amp;gt;callback.response(&amp;amp;res, p_req-&amp;gt;p_context);
        nrf_delay_ms(500); //ADDED A 500 MS DELAY
        if (NRF_DFU_SAVE_PROGRESS_IN_FLASH)
        {
            /* Allowing skipping settings backup to save time and flash wear. */
            ret = nrf_dfu_settings_write_and_backup(NULL);
            UNUSED_RETURN_VALUE(ret);
        }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You also need to use #include &amp;quot;nrf_delay.h&amp;quot; at the top of the file.&lt;/p&gt;
&lt;p&gt;You can try various delays, it should work as long as you&amp;#39;re delaying less then a second.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>