<?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>How to flash the SoftDevice, the bootloader and the application at once?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27006/how-to-flash-the-softdevice-the-bootloader-and-the-application-at-once</link><description>I have tried to merge the hex files using mergehex, and flashed it to my device. 
 After flash the device is in DFU mode. 
 It seems the booloader doesn&amp;#39;t know that there is a valid application there.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Dec 2017 15:27:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27006/how-to-flash-the-softdevice-the-bootloader-and-the-application-at-once" /><item><title>RE: How to flash the SoftDevice, the bootloader and the application at once?</title><link>https://devzone.nordicsemi.com/thread/105930?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 15:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32852a4b-f780-46e5-9c90-00ee6a74172d</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;is this supposed to work with nrf52832 / SDK 14 ? It&amp;#39;s not working for me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash the SoftDevice, the bootloader and the application at once?</title><link>https://devzone.nordicsemi.com/thread/105929?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 21:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38946804-5b58-40da-8f46-759be9aa55f3</guid><dc:creator>Brook Gebremedhin</dc:creator><description>&lt;p&gt;Thanks Petter Myhre  your bootloader setting hex file works fine.&lt;/p&gt;
&lt;p&gt;can you expain more why we have to do this everytime , ho can we do this without using this hex ?&lt;/p&gt;
&lt;p&gt;And in what way does this hex  sets 0x00  ?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash the SoftDevice, the bootloader and the application at once?</title><link>https://devzone.nordicsemi.com/thread/105928?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 06:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a67ed412-e686-48ac-a1b5-9ab84ea98da7</guid><dc:creator>tim</dc:creator><description>&lt;p&gt;The alternative is to change bootloader_util_arm.c to match
However it will cause the keil compiled bootloader size to grow with sdk v6
Petter&amp;#39;s solution above is the preferred method.&lt;/p&gt;
&lt;p&gt;const uint8_t m_boot_settings[CODE_PAGE_SIZE] &lt;strong&gt;attribute&lt;/strong&gt;((at(BOOTLOADER_SETTINGS_ADDRESS))) &lt;strong&gt;attribute&lt;/strong&gt;((used)) = {BANK_VALID_APP};&lt;/p&gt;
&lt;p&gt;const uint32_t m_uicr_bootloader_start_address &lt;strong&gt;attribute&lt;/strong&gt;((at(NRF_UICR_BOOT_START_ADDRESS))) = BOOTLOADER_REGION_START;&lt;/p&gt;
&lt;p&gt;nrfjprog.exe --eraseall --programs s110_nrf51822_6.0.0_softdevice.hex --program bootloader.hex application.hex --verify --reset&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash the SoftDevice, the bootloader and the application at once?</title><link>https://devzone.nordicsemi.com/thread/105931?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2014 14:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed6be588-86b6-4a85-a175-8d9c0db0c0d9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I know that worked earlier, but now I get this error:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/14988/cannot-init-the-m_boot_settings-in-s110-70-bootloader/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash the SoftDevice, the bootloader and the application at once?</title><link>https://devzone.nordicsemi.com/thread/105927?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2014 14:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:200599fe-d92a-4d65-b842-3e8330e94b58</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The bootloader believes the application is invalid, and that it is why it is entering DFU mode.&lt;/p&gt;
&lt;p&gt;The bootloader settings tells the bootloader if the application is valid or invalid. Please see bootloader_types.h. The settings are stored in the last page of the flash, at address 0x3FC00.&lt;/p&gt;
&lt;p&gt;One way to convince the bootloader that it has an valid application is to create the bootloader settings manually, in a separate hex file, and merge it with the other hex files.&lt;/p&gt;
&lt;p&gt;To convince the bootloader that the application is valid bank_0 must be 0x01 and bank_0_crc should be 0x00.&lt;/p&gt;
&lt;p&gt;Merge &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bootloader_5F00_settings.hex"&gt;this hex&lt;/a&gt; with the SoftDevice, the bootloader, and the application using mergehex. Flash the merged hex with nrfjprog, and you should be good to go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash the SoftDevice, the bootloader and the application at once?</title><link>https://devzone.nordicsemi.com/thread/105926?ContentTypeID=1</link><pubDate>Wed, 13 Aug 2014 13:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:155c3a60-39e1-4351-9fbf-d27cdf60eaf3</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Read &lt;a href="https://devzone.nordicsemi.com/question/12800/flashing-bootloader-and-application-via-j-link/"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;UPD:&lt;/p&gt;
&lt;p&gt;Try to do it like &lt;a href="https://devzone.nordicsemi.com/question/14988/cannot-init-the-m_boot_settings-in-s110-70-bootloader/?answer=15146#post-id-15146"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And you can download your hex files with nrfjprog without merging like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --eraseall --programs softdevice.hex --program application.hex bootloader.hex --verify --reset
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>