<?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>Programming Blinky app with nrfjprog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70869/programming-blinky-app-with-nrfjprog</link><description>Hello, I&amp;#39;m struggling programming the Blinky app from examples to my NRF52 DK (pca10040) Here is my script: # 1. Generate settings nrfutil settings generate --application ./sdk16.0.0/examples/ble_central/ble_app_blinky_c/hex/ble_app_blinky_c_pca10040_s132</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jan 2021 13:46:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70869/programming-blinky-app-with-nrfjprog" /><item><title>RE: Programming Blinky app with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/291296?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2021 13:46:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d693e8f-736f-4570-ab6b-115ab46b197d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Then we are back in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70219/flashed-pcb-doesn-t-boot-to-app-stays-in-bootloader"&gt;this thread&lt;/a&gt;, I guess. I suggest we continue there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Blinky app with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/291253?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2021 12:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7676e7-8b22-4689-bb6f-3d09afd2e2e3</guid><dc:creator>QuentinFarizon</dc:creator><description>&lt;p&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: App is valid&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Running nrf_bootloader_app_start with address: 0x00001000&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Disabling interrupts. NVIC-&amp;gt;ICER[0]: 0x0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Blinky app with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/291246?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2021 11:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e110df-7d4a-408d-9690-30d252dcc99a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking at your set of commands I do not see anything wrong. I see you wisely used the debug bootloader project now, and that has very good RTT logging. Can you observe the RTT log output and copy it here? That should show if the application is started or not, and if not, why.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Blinky app with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/291242?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2021 11:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf34e6e-3083-4d9c-9c51-06a3a4950f5a</guid><dc:creator>QuentinFarizon</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;m no further, with these steps :&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Build
emBuild -config &amp;#39;Release&amp;#39; sdk16.0.0/examples/dfu/secure_bootloader/pca10040_s132_ble_debug/ses/secure_bootloader_ble_s132_pca10040_debug.emProject
emBuild -config &amp;#39;Release&amp;#39; sdk16.0.0/examples/peripheral/blinky/pca10040/s132/ses/blinky_pca10040_s132.emProject

# Settings.hex generate
nrfutil settings generate --application ./sdk16.0.0/examples/peripheral/blinky/pca10040/s132/ses/Output/Release/Exe/blinky_pca10040_s132.hex --application-version-string ${APPLICATION_VERSION} --family NRF52 --bootloader-version 2 --bl-settings-version 2 --app-boot-validation VALIDATE_GENERATED_CRC settings.hex

# Merge hex
mergehex -m ./sdk16.0.0/examples/peripheral/blinky/pca10040/s132/ses/Output/Release/Exe/blinky_pca10040_s132.hex ./sdk16.0.0/examples/dfu/secure_bootloader/pca10040_s132_ble_debug/ses/Output/Release/Exe/secure_bootloader_ble_s132_pca10040_debug.hex settings.hex -o tmp.hex
mergehex -m tmp.hex ./sdk16.0.0/components/softdevice/s132/hex/s132_nrf52_7.0.1_softdevice.hex -o merged_app_bootloader_softdevice_settings.hex

nrfjprog --eraseall
nrfjprog --program merged_app_bootloader_softdevice_settings.hex --verify
nrfjprog --reset&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Programing goes fine, but it doesn&amp;#39;t blink :( which I guess means that app doesn&amp;#39;t run&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I guess I&amp;#39;m missing something, but what ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Blinky app with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/291013?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 11:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:544b74d8-163d-48fc-a3f7-e5b4f83817a4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The problem here is that both the application hex you are using and the bootloader hex you are using have been merged with the SoftDevice from before (SDK is shipped with merged hex files). So you are getting a conflict there. You need to use a bootloader hex which is not merged with the SoftDevice in this case.&lt;/p&gt;
&lt;p&gt;Another key point is that the pre-built bootloader hex file is useless to you in case as you want to generate your own DFU upgrade package. Then you must also build the bootloader with your own public key. See &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_dfu_bootloader.html"&gt;bootloader example documentation&lt;/a&gt; for how to use your own key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>