<?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>bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95542/bootloader-not-loading-application-nrf25832-ses-sdk-v-17-1-0-softdevice-s112-v7-2-0</link><description>Hello, 
 I have followed this guide https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader to create an image with bootloader, custom application and softdevice. 
 My</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jan 2023 10:53:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95542/bootloader-not-loading-application-nrf25832-ses-sdk-v-17-1-0-softdevice-s112-v7-2-0" /><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404283?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:536ce083-0f1c-4a5e-b56f-326a6164fe6f</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;to resume:&lt;/p&gt;
&lt;p&gt;I was using the wrong bootloader project for nrf52832; the bootloader has the DFU_ENTER_METHOD_BUTTON enabled by default and on my custom board it was always sensing as the dfu was enabled. changing to buttonless fixed the issue&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404281?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c65d9598-768f-4b01-81ac-a2ff55f3c54a</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;ok, now is working. I had DFU button mode enabled&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;&amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;&amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;&amp;lt;debug&amp;gt; app: App is valid&lt;br /&gt;&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;&amp;lt;debug&amp;gt; app: Running nrf_bootloader_app_start with address: 0x00001000&lt;br /&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: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404276?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8a13e5-a8dc-4660-ae36-08cf1e133174</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;I have switched to s132 and using the files:&lt;/p&gt;
&lt;p&gt;secure_bootloader_ble_s132_pca10040.hex&lt;/p&gt;
&lt;p&gt;s132_nrf52_7.2.0_softdevice.hex&lt;/p&gt;
&lt;p&gt;with the memory layout for 52832 specified here&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_bootloader.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;still device is not loading application at startup&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404270?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4c9ef10-39e8-4b6e-8cac-00536c6fc9b6</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;I&amp;#39;m planning to use&amp;nbsp;&lt;span&gt;52832&amp;nbsp;with softdevice s112 which uses less space in flash, that&amp;#39;s why I selected the&amp;nbsp;_pca10040&lt;strong&gt;e project.&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;what would be the proper bootloader in my case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404269?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c28ccc18-6e49-4bf4-ab3b-2677cb7cd496</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The bootloader project you have selected (_pca10040&lt;strong&gt;e&lt;/strong&gt;) is configured to emulate a nRF52810 on a 52832 target, see &amp;#39;&lt;a class="" title="Developing for nRF52810" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrf52810_user_guide.html?cp=8_1_5_0"&gt;Developing for nRF52810&lt;/a&gt;&amp;#39; for more details. Is this what you want, or do you plan to use a 52832 in your final design?&lt;/p&gt;
[quote userid="119390" url="~/f/nordic-q-a/95542/bootloader-not-loading-application-nrf25832-ses-sdk-v-17-1-0-softdevice-s112-v7-2-0/404268"]I have added argument&amp;nbsp;--start-address 0x2F000 to the&amp;nbsp;&lt;em&gt;nrfutil settings generate &lt;/em&gt;command but it doesn&amp;#39;t help[/quote]
&lt;p&gt;Does it fail to load as before? In that case, can you show how you are doing it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404268?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a60f29-25c7-4ae7-acd8-e38972fa5b12</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;I have added argument&amp;nbsp;--start-address 0x2F000 to the&amp;nbsp;&lt;em&gt;nrfutil settings generate &lt;/em&gt;command but it doesn&amp;#39;t help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404267?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c13edffd-f898-43ac-95fe-9fe21340f710</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;yes I&amp;#39;m using&amp;nbsp;&lt;span&gt;52832. am I using the wrong setting?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404264?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5976ebc-8ea1-44b7-9adf-19ce7115ce5e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I thought you were building for the 52832. When using the 52810, you must select &amp;#39;--family NRF52810&amp;#39; when generating the settings page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404263?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c78532f-04ce-4806-9f93-08880151c901</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;when I try to load settings.hex it&amp;#39;s just reporting &amp;quot;write failed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have tested using only example code from Nordic I have the same issue.&lt;/p&gt;
&lt;p&gt;Files:&lt;/p&gt;
&lt;p&gt;ble_app_uart_pca10040_s112.hex&lt;/p&gt;
&lt;p&gt;secure_bootloader_ble_s112_pca10040e.hex&lt;/p&gt;
&lt;p&gt;s112_nrf52_7.2.0_softdevice.hex&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the only thing that I have changed is the flash placement of the bootloader according to this info from the InfoCenter for SofDevice s112:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;Bootloader settings&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x0002 F000 - 0x0003 0000 (4 kB)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;MBR parameter storage&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x0002 E000 - 0x0002 F000 (4 kB)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Bootloader&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0002 8000 - 0x0002 E000 (24 kB)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Application area (incl. free space)&amp;nbsp; &amp;nbsp; 0x0001 9000 - 0x0002 8000 (60 kB)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;SoftDevice&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0000 1000 - 0x0001 9000 (96 kB)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Master Boot Record (MBR)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0000 0000 - 0x0000 1000 (4 kB)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;what I have noticed is that when I create the settings.hex with command:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfutil settings generate --family NRF52 --application ble_app_uart_pca10040_s112.hex --application-version 0 --bootloader-version 0 --bl-settings-version 2&amp;nbsp;settings.hex&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;the start address is set to 0x7F000, while from the schema above it should be 0x2F000:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Bootloader DFU Settings:
* File:                     settings.hex
* Family:                   nRF52
* Start Address:            0x0007F000
* CRC:                      0x8C6D5445
* Settings Version:         0x00000002 (2)
* App Version:              0x00000000 (0)
* Bootloader Version:       0x00000000 (0)
* Bank Layout:              0x00000000
* Current Bank:             0x00000000
* Application Size:         0x00005110 (20752 bytes)
* Application CRC:          0x030E67D1
* Bank0 Bank Code:          0x00000001
* Softdevice Size:          0x00000000 (0 bytes)
* Boot Validation CRC:      0x696C3C3C
* SD Boot Validation Type:  0x00000000 (0)
* App Boot Validation Type: 0x00000001 (1)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;is there a way to change the address of settings.hex?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404235?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 08:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:391d4502-ebb4-4b68-8d22-bbdccf64d429</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;What is the error you get when you try to load the setting.hex? If the settings.hex is not programmed, then that would likely explain why the why the application is not booting.&lt;/p&gt;
[quote user=""]- how do I debug what is happening in bootloader? If I load bootloader_debug with SES I lose my application in the flash[/quote]
&lt;p&gt;Does the application get erased in flash? That should not happen if you&amp;nbsp;have&amp;nbsp;the default settings here:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673425774048v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="turboj"]No idea how to do that exactly with SES but it should not be difficult to find in the debug setup/option[/quote]
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673425845787v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404163?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 15:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9d60466-4f8d-44a9-b4f2-2dbfc551e261</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;I have instructed SES to load softdevice and my custom application from Options-&amp;gt;Common-&amp;gt;Debugger-&amp;gt;Loader-&amp;gt;AdditionalFile but I can&amp;#39;t load the settings.hex file, it doesn&amp;#39;t allow me to write at address 0x7f000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader not loading application (nRF25832, SES, SDK v.17.1.0, SoftDevice s112 v7.2.0)</title><link>https://devzone.nordicsemi.com/thread/404157?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 15:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d54df794-20d0-42c1-942f-30f1218f0378</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You can instruct the debugger to load &lt;em&gt;symbols&lt;/em&gt; from the bootloader elf, but to flash the device from the merged hex file. No idea how to do that exactly with SES but it should not be difficult to find in the debug setup/options.&lt;/p&gt;
&lt;p&gt;Otherwise just &lt;em&gt;attach&lt;/em&gt; the debugger w/o flashing. That should be possible, too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>