<?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>NRF52 Bootloader Switch Between Applications</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57114/nrf52-bootloader-switch-between-applications</link><description>Hello, 
 I am using the nrf52832 bootloader and i got it working with the s112 sofdevice and a custom application mapped at the end of the softdevice. 
 I want to add another application (between my first application and the bootloader). And i want to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jan 2020 15:43:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57114/nrf52-bootloader-switch-between-applications" /><item><title>RE: NRF52 Bootloader Switch Between Applications</title><link>https://devzone.nordicsemi.com/thread/231731?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 15:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c06a1522-b39d-49c2-9685-dd4e52901957</guid><dc:creator>Oussama</dc:creator><description>&lt;p&gt;Thank you for the answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was already doing that. But i was also forwarding interrupts to the start address of my application using the&amp;nbsp;SD_MBR_COMMAND_IRQ_FORWARD_ADDRESS_SET command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the jump to the application was being executed successfully but the application was crashing&amp;nbsp;after calling nrf_sdh_enable_request().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So after removing the forward command, the application launched without any problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Bootloader Switch Between Applications</title><link>https://devzone.nordicsemi.com/thread/231604?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 10:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de5acb8f-c2fa-4045-8805-aeb50a193a2b</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you can jump from bootloader to your firmware with this function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static sd_mbr_command_t init_sd_command = {SD_MBR_COMMAND_INIT_SD, };

void jump_to_fw(uint32_t fwaddr)
{
	sd_mbr_command(&amp;amp;init_sd_command);
	sd_softdevice_vector_table_base_set(fwaddr);
	uint32_t app_start_ptr = ((uint32_t *)fwaddr)[1];  // get start address from vector table
	((void (*)()) app_start_ptr) ();
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>