<?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>DFU issue with UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53489/dfu-issue-with-uart</link><description>SDK version: nRF5_SDK_15.0.0_a53641a 
 Softdevice version: s132_nrf52_6.0.0_softdevice 
 Hardware: nrf52DK PCA10040 
 nrfutil version 5.2.0 
 
 Hi, 
 I am trying to get the DFU via UART to work. I am using the secure bootloader secure_bootloader\pca10040_uart_debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2019 09:19:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53489/dfu-issue-with-uart" /><item><title>RE: DFU issue with UART</title><link>https://devzone.nordicsemi.com/thread/216548?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 09:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db2ce1de-55bd-45a9-b360-8cd9c08235a6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Avi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why would you disable HWFC?&lt;/p&gt;
&lt;p&gt;Please enable HWFC which might solve the problem. Please see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36611/enter-bootloader-from-app-sdk15/142266#142266"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU issue with UART</title><link>https://devzone.nordicsemi.com/thread/216226?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 17:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7a8d44-ba87-451b-b8ec-f5cedb2ae461</guid><dc:creator>Avi A</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thank you for responding. I have not made any changes to&amp;nbsp;&lt;span&gt;pca10040_uart_debug example except for disabling HWFC in sdk_config.h.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;I tried additional debugging as you suggested. I found that everything works after DFU until the app_start. In the app_start the issue occurs&amp;nbsp;at the jump_addr step&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; if (current_isr_num == 0)&lt;br /&gt; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;jump_to_addr(new_msp, new_lr, reset_handler); // Jump directly to the App&amp;#39;s Reset Handler.&lt;br /&gt; }&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; Following is the my last debug log before reset, that I am seeing which I added before the above step.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;lt;debug&amp;gt; app: jump_to_addr current_isr_num:&amp;nbsp; 0&amp;nbsp; new_msp: 200012E0&amp;nbsp;reset_handler: 243D1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I am not sure why the jump to addr does not work. I have no issues with the app when I run it with just the softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU issue with UART</title><link>https://devzone.nordicsemi.com/thread/216164?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 12:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:022cac2c-08ca-4ad1-b4b6-9dcedfb87531</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Avi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you modify the&amp;nbsp;&lt;span&gt;secure_bootloader\pca10040_uart_debug example? If so, what is that?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It looks like it reset before the nrf_dfu_settings_init() in the nrf_bootloader_init(). Could you check it execute&amp;nbsp;dfu_enter_button_init() or not? You add a debug info as&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_LOG_DEBUG(&amp;quot;dfu_enter_button_init&amp;quot;);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>