<?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 questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22208/nrf52-dfu-questions</link><description>I&amp;#39;m using nRF52 + SDK11.0.0 + s132 and have a couple of questions on DFU. 
 
 I want to use a CMSIS-DAP programmer + OpenOCD to upload the bootloader (or BL+SD+APP+setting) hex files. The application/SD boot up, but the bootloader keeps cycling on any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 May 2017 13:40:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22208/nrf52-dfu-questions" /><item><title>RE: nRF52 DFU questions</title><link>https://devzone.nordicsemi.com/thread/87284?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 13:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b44498cf-ffcf-4d92-bbdf-1dff3439ef5a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;2.When you tell the bootloader that you are going to update softdevice it won&amp;#39;t check for current SD and current application any more, as they will be wiped out.You are correct about the way we receive new softdevice, the application will be erased as the swap region.&lt;/p&gt;
&lt;p&gt;3.I see, I was thinking of the bootloader and the bootloader setting as a whole. But yet, they should be taken into account when you calculate the actual max size of the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU questions</title><link>https://devzone.nordicsemi.com/thread/87283?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 02:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:432e53f1-46fe-4277-aad7-ea20940159de</guid><dc:creator>Tosa</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Regarding:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It turned out to be an issue with my nrf52.cfg file (missing the UICR flash bank); it&amp;#39;s okay now.&lt;/li&gt;
&lt;li&gt;Just to be sure, the bootloader doesn&amp;#39;t know/care about the existing app and SD sizes/start locations? For example, if I update the softdevice, the app would be wiped out regardless of the size of the new softdevice, so that the new softdevice can be stored outside the existing softdevice&amp;#39;s flash area before being copied to the proper flash address, correct?&lt;/li&gt;
&lt;li&gt;dfu_types.h clarifies that the nRF52 uses two 0x1000 byte pages for BOOTLOADER_SETTINGS_ADDRESS and BOOTLOADER_MBR_PARAMS_PAGE_ADDRESS vs the nRF51 uses one 0x400 byte page for BOOTLOADER_SETTINGS_ADDRESS only, hence the difference in bootloader sizes.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU questions</title><link>https://devzone.nordicsemi.com/thread/87282?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 10:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c5a235d-beb8-450d-a974-8f2c23d4d14d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tosa,&lt;/p&gt;
&lt;p&gt;I dont have experience with OpenOCD. But it seems that &lt;a href="https://devzone.nordicsemi.com/question/23842/st-link-nrf51822-and-openocd/"&gt;this person managed&lt;/a&gt; to write to UICR ?&lt;/p&gt;
&lt;p&gt;2.Yes you should give enough space because the Secure bootloader from SDK v12 requires more space than the one on SDK v11. To change the start address of the bootloader, have a look &lt;a href="https://devzone.nordicsemi.com/question/18039/bootloader-debugging/?answer=18051#post-id-18051"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;3.You are right. The documentation was written when there was no nRF52. It was for 256kB max size flash. If you are using nRF52 with 512kB flash size, the limit is 0x80000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>