<?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 with nRF52805</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77660/dfu-with-nrf52805</link><description>I have a custom board with a nRF52805 based module from Minew and I&amp;#39;m trying to do a OTA DFU but I can&amp;#39;t quite understand how it works. 
 
 This is what I do. For info, I&amp;#39;m using the softdevice s112 version 7.0.1. 
 
 
 Generate the public and private</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jul 2021 16:30:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77660/dfu-with-nrf52805" /><item><title>RE: DFU with nRF52805</title><link>https://devzone.nordicsemi.com/thread/321427?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 16:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe6823cf-f065-4b38-b7dd-1ccb21dc3640</guid><dc:creator>AGarcia</dc:creator><description>&lt;p&gt;Thank you, I already tested button DFU and buttonless DFU and it worked correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with nRF52805</title><link>https://devzone.nordicsemi.com/thread/321283?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 09:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41d23f04-582c-4c86-a25f-f6a2dd76ace4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi AGarcia,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Configuring&amp;nbsp;&lt;span&gt;NRF_BL_DFU_ENTER_METHOD_BUTTON&amp;nbsp; and&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN&amp;nbsp; would allow you to enter DFU bootloader mode by holding the button when resetting (or powering on) the device.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;If you want to immediately enter DFU bootloader from a button when you are in an application you may want to look into how it&amp;#39;s implemented in the&amp;nbsp;ble_app_buttonless_dfu example. You can have a look &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h75sjziavjbukzaywg6xlx19np0fm4"&gt;here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with nRF52805</title><link>https://devzone.nordicsemi.com/thread/321182?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 15:30:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91790eaa-0efe-4415-8e45-5b48515d97fb</guid><dc:creator>AGarcia</dc:creator><description>&lt;p&gt;I think NRF_BL_DFU_ENTER_METHOD_BUTTON have to be set to 1 and change&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN to set the number of the pin where my button is in custom board right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with nRF52805</title><link>https://devzone.nordicsemi.com/thread/321181?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 15:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4fa8b80-de74-4504-8563-9b4282dbb271</guid><dc:creator>AGarcia</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;try what you suggest to do and it works, so this is what&amp;nbsp;I did:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I&amp;#39;m going to make a BT application so I&amp;#39;m using the ble_app_template in this directory: &lt;pre class="ui-code" data-mode="text"&gt;examples\ble_peripheral\ble_app_template\pca10040e\s112\ses\ble_app_template_pca10040e_s112.emProject&lt;/pre&gt;&amp;nbsp;At the moment I don&amp;#39;t have the application fully implemented, just configure a GPIO to blink a LED and test if it works.&lt;/li&gt;
&lt;li&gt;My memory segments in the ble_app_template are this:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH_PH_START=0x0
FLASH_PH_SIZE=0x30000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x6000
FLASH_START=0x19000
FLASH_SIZE=0x17000
RAM_START=0x20001a40
RAM_SIZE=0x45c0&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Make the zip package with the app to make the DFU.&lt;/li&gt;
&lt;li&gt;Change NRF_BL_DFU_ENTER_METHOD_BUTTON&amp;nbsp;= 0 in bootloader and compile.&lt;/li&gt;
&lt;li&gt;Load to the target the softdevice and the bootloader&lt;/li&gt;
&lt;li&gt;Use the mobile app to make the DFU&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;When the DFU were finished the app run correctly, the led blinks. Now I know that my app works with the bootloader and softdevice, what&amp;nbsp;have I to do if I want to enter DFU mode with a button in my app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with nRF52805</title><link>https://devzone.nordicsemi.com/thread/320909?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 12:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caa9b97b-2166-454d-a6d0-47d90c159226</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi AGarcia,&lt;/p&gt;
&lt;p&gt;Could you let me know which blinky example did you test ?&amp;nbsp;&lt;br /&gt;Since you are compiling it to work with a softdevice, have you modified the start address of the blinky example to the correct location (right after the softdevice).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to test doing normal DFU (1. Flash softdevice + bootloader; 2.&amp;nbsp;Generate .zip file from app.hex; 3. DFU update the .zip file) just to be sure that the app would work fine with the bootloader + softdevice.&lt;/p&gt;
&lt;p&gt;After that you can test with the bootloader setting. The main job of the bootloader setting is to tell the bootloader that there is a valid application on the chip and the bootloader should run the app.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;To debug this I think the easiest is to use the debug bootloader (don&amp;#39;t forget to do a chip erase when you switch to debug bootloader). With that you can step into the code and check why the bootloader doesn&amp;#39;t want to jump to the app but stay in bootloader mode instead.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I noticed that you are using a custom board, please make sure&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN is not active when the bootloader booting up, otherwise it will enter DFU mode automatically. You can disable this feature by setting&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON = 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>