<?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 won&amp;#39;t start the application when I change the application start address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34691/bootloader-won-t-start-the-application-when-i-change-the-application-start-address</link><description>I am using secure dfu bootloader from the SDK 12. 
 I changed the start address of my application. In the bootloader, in uint32_t nrf_dfu_init() { } , calling function nrf_bootloader_app_start(MAIN_APPLICATION_START_ADDR) with the new start address. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 May 2018 07:44:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34691/bootloader-won-t-start-the-application-when-i-change-the-application-start-address" /><item><title>RE: Bootloader won't start the application when I change the application start address</title><link>https://devzone.nordicsemi.com/thread/133751?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 07:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87d2dace-acb8-4d61-b1bc-2ccd179dc742</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Thank you for letting us know how you fixed it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader won't start the application when I change the application start address</title><link>https://devzone.nordicsemi.com/thread/133685?ContentTypeID=1</link><pubDate>Mon, 28 May 2018 14:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e980e9a-b1ec-42ee-a936-d1930830fbe4</guid><dc:creator>Timur Beganovic</dc:creator><description>&lt;p&gt;OK, I found out what was wrong.&lt;/p&gt;
&lt;p&gt;First, I forgot to mention that this is &lt;span style="text-decoration:underline;"&gt;DFU&lt;/span&gt; Bootloader and that I flash the application &lt;span style="text-decoration:underline;"&gt;Over The Air.&lt;/span&gt; Besides the application start_address I also had to change the CODE_REGION_1_START which is the address where the application is being flashed. Since I had not changed this value, my application wasn&amp;#39;t flashed at the right place and that&amp;#39;s why the Bootloader couldn&amp;#39;t find it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader won't start the application when I change the application start address</title><link>https://devzone.nordicsemi.com/thread/133428?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 12:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37e53ef7-0023-423f-8204-6948a2f103fb</guid><dc:creator>Timur Beganovic</dc:creator><description>&lt;p&gt;Thank you for the answer&lt;/p&gt;
&lt;p&gt;I verified it debugging the Bootloader, the program never reaches the breakpoint after&amp;nbsp;nrf_dfu_mbr_init_sd(). &lt;/p&gt;
&lt;p&gt;I also wonder why this happens when I change the start address, since the address is not used before sd_softdevice_vector_table_base_set().&lt;/p&gt;
&lt;p&gt;Maybe another important behavior: when I change the start address only in Application .hex file and doesn&amp;#39;t change the start address in the Bootloader, then the Bootloader executes these functions&amp;nbsp; (&amp;nbsp;nrf_dfu_mbr_init_sd(), sd_softdevice_vector_table_base_set()) and crashes&amp;nbsp; first in nrf_bootloader_app_start_impl().&lt;/p&gt;
&lt;p&gt;I am not able to enable log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader won't start the application when I change the application start address</title><link>https://devzone.nordicsemi.com/thread/133393?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 10:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68cf4d25-154c-4d8d-9ba1-be842de41a1e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should not see an issue within&amp;nbsp;nrf_dfu_mbr_init_sd() because you have changed the start_addr, as it is not used that early. Referring to the implementation of&amp;nbsp;nrf_bootloader_app_start() in nrf_bootloader_app_start.c for SDK 12.0.0, the start address parameter is only used in the subsequent calls to&amp;nbsp;sd_softdevice_vector_table_base_set() and&amp;nbsp;&amp;nbsp;nrf_bootloader_app_start_impl() which.&lt;/p&gt;
&lt;p&gt;How have you verified that there is a hard fault, and that it occurs during the call to nrf_dfu_mbr_init_sd()? Can you enable logging and upload the log?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>