<?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>Using openbootloader &amp;amp; softdevice to switch two app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68321/using-openbootloader-softdevice-to-switch-two-app</link><description>Hi, 
 
 I&amp;#39;s trying to implement switch two application firmware in the openbootloader example, but I meet some issue. 
 I change the sector to 0x27000 in App1, 0x40000 in App2, the bootloader is default to open the 0x27000 in softdevice S140, I change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Nov 2020 13:55:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68321/using-openbootloader-softdevice-to-switch-two-app" /><item><title>RE: Using openbootloader &amp; softdevice to switch two app</title><link>https://devzone.nordicsemi.com/thread/280123?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 13:55:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9801dd6-9943-48d3-a6c8-e026fd483c6c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please make sure that you don&amp;#39;t forward interrupts to the start address of your application using the&amp;nbsp;&lt;span&gt;SD_MBR_COMMAND_IRQ_FORWARD_ADDRESS_SET&amp;nbsp;command. This will cause the jump to the application to be executed successfully, but crash as the nrf_sdh_enable_request() is called. Try removing this forwarding command if you&amp;#39;re using it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using openbootloader &amp; softdevice to switch two app</title><link>https://devzone.nordicsemi.com/thread/280036?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 07:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba80daa9-a78c-48c1-89dc-3b2276cb0e85</guid><dc:creator>IanChen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have try this command, but I still can&amp;#39;t jump the address except 0x27000.&lt;/p&gt;
&lt;p&gt;Is there any loss in the app FW?&lt;/p&gt;
&lt;p&gt;I only modify the *.icf file,&amp;nbsp;__ICFEDIT_intvec_start__ and&amp;nbsp;__ICFEDIT_region_ROM_start__.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using openbootloader &amp; softdevice to switch two app</title><link>https://devzone.nordicsemi.com/thread/279889?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 11:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a38b390-c253-409a-8dfa-54f461905e69</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As explained in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57114/nrf52-bootloader-switch-between-applications"&gt;this case&lt;/a&gt;, which seems to be very similar to yours, you can jump from the bootloader to your firmware with the following 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;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>