<?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>sdk 13.1 DFU (bootloader_secure_ble)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23454/sdk-13-1-dfu-bootloader_secure_ble</link><description>Dear Nordic:
I have transplanted my code from sdk 10.0(nrf51422+S310) to sdk 13.1(nrf52832 + s332(v4.0.2)).
I program softdevice and application to my board by nRFgo_Studio , it runs ok.
I use example :sdk13.1\examples\dfu\bootloader_secure_ble\pca10040_debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jul 2017 13:12:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23454/sdk-13-1-dfu-bootloader_secure_ble" /><item><title>RE: sdk 13.1 DFU (bootloader_secure_ble)</title><link>https://devzone.nordicsemi.com/thread/92149?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 13:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e635eb0d-f60d-4939-9219-e32aff62c00d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I have edited my answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 13.1 DFU (bootloader_secure_ble)</title><link>https://devzone.nordicsemi.com/thread/92151?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 00:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ba031d3-a749-46c6-a598-300d38aedc70</guid><dc:creator>Linxi</dc:creator><description>&lt;p&gt;Thanks for your support .
Q1: What are the correct IROＭ and RAM settings for bootloader and applicationn project respectively, in Keil Target setting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 13.1 DFU (bootloader_secure_ble)</title><link>https://devzone.nordicsemi.com/thread/92150?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 14:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dd288c1-3610-4a60-a146-4b5c896df5ec</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;strong&gt;Q1:&lt;/strong&gt; The correct Keil memory settings for the Secure Bootloader project are&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IROM1 Start: 0x78000     Size: 0x6000
IRAM1 Start: 0x20002060  Size: 0xDA70
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The correct  memory settings for the ble_ant_app_hrm example are&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  IROM1 Start: 0x29000    Size: 0x57000
  IRAM1 Start: 0x20002560 Size: 0xDAA0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Q2:&lt;/strong&gt; Yes, you only need to compile the bootloader against the headers of the S332 and add S332 to the compiler flags.&lt;/p&gt;
&lt;p&gt;The reason to why the bootloader does not jump to the application is because it calculates the CRC of the application and compares it to the CRC stored on the bootloader settings flash page, if they match, then the bootloader jumps to the application. The bootloader settings page is default set to 0s unless a bootloader settings page is flashed to the device. You can create a bootloader settings page&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil.exe settings generate --family NRF52 --application &amp;lt;name of application hex&amp;gt; --application-version 1 --bootloader-version 1 --bl-settings-version 1 bootloader_settings.hex
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The resulting bootloader_settings.hex file should be merged with the bootloader hex file using mergehex and then flashed to the nRF52 together with the S332 SoftDevice and the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>