<?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>Stuck at DFU bootloader after flashing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73732/stuck-at-dfu-bootloader-after-flashing</link><description>Hello, Not so long ago I asked this question and the solution I was given is still working for the devices I was using. Now I&amp;#39;ve received a new version of the device in which the only difference is that the only LED light now has PWM. So I modified my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Apr 2021 09:57:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73732/stuck-at-dfu-bootloader-after-flashing" /><item><title>RE: Stuck at DFU bootloader after flashing</title><link>https://devzone.nordicsemi.com/thread/304757?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 09:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6ecb2b4-2e9d-410d-bb79-83ae251be1b9</guid><dc:creator>PauDC</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t know that setting existed. I followed &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;Getting started with Nordic&amp;#39;s Secure DFU bootloader, a step by step guide&lt;/a&gt; for my bootloader.&lt;br /&gt;&lt;br /&gt;NRF_BL_DFU_ENTER_METHOD_BUTTON was on so I turned it off.&lt;/p&gt;
&lt;p&gt;Just next to this setting there was NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN set to P0.16 which in my new board this is used for the PWM. So even though I turned the previous setting off I moved this to a free pin.&lt;/p&gt;
&lt;p&gt;At first this didn&amp;#39;t work, so I started looking the following settings and found that NRF_BL_DFU_ENTER_METHOD_BUTTONLESS was off. Since my board doesn&amp;#39;t have any buttons and I update the firmware via DFU I turned this on.&lt;/p&gt;
&lt;p&gt;After these two changes it started working.&lt;/p&gt;
&lt;p&gt;Thanks Amanda,&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Pau&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck at DFU bootloader after flashing</title><link>https://devzone.nordicsemi.com/thread/304716?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 07:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e59ed56-9048-438d-ae6d-ba082b825a00</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Pau,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I the log, we see: &lt;em&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: DFU mode requested via button.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Maybe you just need to disable the&amp;nbsp;&lt;a title="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_dfu_bootloader.html?cp=7_1_4_4_0_0#ble_sdk_app_dfu_bootloader_config" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_dfu_bootloader.html?cp=7_1_4_4_0_0#ble_sdk_app_dfu_bootloader_config"&gt;Configuration parameters&lt;/a&gt;&amp;nbsp;-&amp;gt; &lt;a title="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__bootloader__config.html#ga2a0043889d40d5b09e524cc701f93fbf" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__bootloader__config.html#ga2a0043889d40d5b09e524cc701f93fbf"&gt;NRF_BL_DFU_ENTER_METHOD_BUTTON&lt;/a&gt;&amp;nbsp;setting in the bootloader&lt;/p&gt;
&lt;p&gt;Regarding the reset pin, it is important that it can be set by both the application and bootloader. This is easy to forget.&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: Stuck at DFU bootloader after flashing</title><link>https://devzone.nordicsemi.com/thread/303918?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 08:28:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2fd7374-c896-4258-9b91-d836eb7e4a39</guid><dc:creator>PauDC</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;br /&gt;Thanks for your reply.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure how to perform what you suggested since I&amp;#39;ve never debugged with a bootloader. Do you know any guide on how to do what you suggested?&lt;br /&gt;&lt;br /&gt;Even though I&amp;#39;m unsure how to do it. I tried the following:&lt;br /&gt;1. Successfully compiled the debug bootloader using SES.&lt;br /&gt;2. Erased everything on my board.&lt;br /&gt;3. Turned on the RTT viewer and connected the device.&lt;br /&gt;4. Ran my script changing the bootloader with the debug one and didn&amp;#39;t flash my firmware and the bootloader settings (because as far as I know, once you perform a DFU the Bootloader settings page is created automatically)&lt;br /&gt;5. Nothing happened on the RTT viewer.&lt;br /&gt;6. Couldn&amp;#39;t find the DfuTarg device in the nrfConnect app.&lt;br /&gt;7. So I went to nRFgo Studio to see if anything was flashed. So I clicked Refresh.&lt;br /&gt;8. At this moment the RTT viewer started printing things.&lt;br /&gt;9. So I uploaded the firmware via DFU successfully. At the end of the process the device still appears as DfuTarg.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m attaching in a plain text file what I saw in the RTT screen. Is this what you asked for?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/booloader_5F00_debug_5F00_log.txt"&gt;devzone.nordicsemi.com/.../booloader_5F00_debug_5F00_log.txt&lt;/a&gt;&lt;br /&gt;Edit: I see that in line 3968 it says: 00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;Best regards,&lt;br /&gt;Pau&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck at DFU bootloader after flashing</title><link>https://devzone.nordicsemi.com/thread/303785?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 13:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bd49c0a-c9a3-454c-9e96-be92520aad4b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Pau,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The process looks correct.&amp;nbsp;You could use the secure_bootloader_pca10040_s132_ble_debug version and check the debug info.&lt;/p&gt;
&lt;p&gt;Are you able to provide the debug log? Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>