<?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>problem testing DFU functionality w/SDK14 SoftDevice v5</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24944/problem-testing-dfu-functionality-w-sdk14-softdevice-v5</link><description>Hello, 
 I am trying to update our application with DFU support but it will not work for me. One of 2 things happens: 
 
 Programming the bootloader and softdevice by programming the hex image bootloader_secure_ble/hex directory. Then I download the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Sep 2017 11:12:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24944/problem-testing-dfu-functionality-w-sdk14-softdevice-v5" /><item><title>RE: problem testing DFU functionality w/SDK14 SoftDevice v5</title><link>https://devzone.nordicsemi.com/thread/98241?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 11:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b7ae5c2-e0b4-41fa-905b-324a9ff6f905</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Yes this looks correct. Just one thing, I have only had Keil delete the bootloader when the settings under Utilities are set to full chip erase. As long as the application code is not large enough to intrude on the flash memory occupied by the bootloader it should not get deleted, as I believe it is set to sector erase by default. And it should therefore only erase the parts of flash actually occupied by the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem testing DFU functionality w/SDK14 SoftDevice v5</title><link>https://devzone.nordicsemi.com/thread/98240?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 16:04:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19371b8-3600-4d3e-a6a9-9d4cd523c8ff</guid><dc:creator>Allen</dc:creator><description>&lt;p&gt;Thank you for the reply Jorn,&lt;/p&gt;
&lt;p&gt;Let me take a moment to explain my solution to this problem. The example documentation sort of glosses over some important details.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you are using an IDE to perform the download of the application, you may need to change the JTAG/Flash Download configuration. The default configuration for Keil will delete both the application and the bootloader. To fix this change RAM size from 0x4000 to 0x2000.&lt;/li&gt;
&lt;li&gt;Having the bootloader installed isn&amp;#39;t enough to boot your    application, you also need to have    the bootloader settings page programmed and properly configured.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So, if you want to test the DFU download operation using the bootloader images provided and your own application, do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Erase flash and program the bootloader and softdevice (using hex images provided)&lt;/li&gt;
&lt;li&gt;Create a bootloader settings page for your application. The only significant fields are --family, --application and --bl-settings-version. Don&amp;#39;t forget the output hex file at the end.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;nrfutil.exe settings generate --family NRF52 --application ./nrf52832_xxaa.hex --application-version 0 --application-version-string 0.1.0 --bootloader-version 0 --bl-settings-version 1 app_settings.hex&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Program the bootloader settings page. One way to do this is with nrfjprog.exe.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;nrfjprog.exe --program app_settings.hex --sectorerase --verify --family NRF52&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Now program your application and reset.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;nrfjprog.exe --program nrf52832_xxaa.hex  --sectorerase --verify --family NRF52 --reset&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Please verify that this is correct. It works for me.&lt;/p&gt;
&lt;p&gt;Thanks,
Allen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem testing DFU functionality w/SDK14 SoftDevice v5</title><link>https://devzone.nordicsemi.com/thread/98239?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 09:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58e9b231-e639-4a50-91df-c5402f3c7a3b</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello ajc&lt;/p&gt;
&lt;p&gt;Please try to follow the DFU example documentation &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/ble_sdk_app_dfu_bootloader.html?cp=4_0_0_4_3_0"&gt;here&lt;/a&gt;. Are you able to correctly program and update your application when you follow the example?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>