<?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>Vector forwarding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107326/vector-forwarding</link><description>The as built MBR and docs say the MBR &amp;quot;forwards&amp;quot; interrupts. How is this accomplished? I have looked a bit here, I see its not being done with VTOR. 
 
 Is this using some default handler that uses the SD_CODE_BASE 0x20000000 to figure where to go? 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jan 2024 08:56:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107326/vector-forwarding" /><item><title>RE: Vector forwarding</title><link>https://devzone.nordicsemi.com/thread/464107?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2024 08:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e947f3b-246c-411f-a519-77367dd69fe8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Erik,&amp;nbsp;&lt;br /&gt;The code of MBR is not published and we generally dont give information about how the code is implemented. But as far as I know it doesn&amp;#39;t use VTOR to forward the interrupt.&amp;nbsp;&lt;br /&gt;Do you have any special requirement that you want to know more about the MBR ?&lt;br /&gt;Our suggestion is to follow what we have in the bootloader if you want to do something more advanced.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Vector forwarding</title><link>https://devzone.nordicsemi.com/thread/464026?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 23:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a73e3995-3b0f-470a-9d82-dfea57636533</guid><dc:creator>Erik Friesen</dc:creator><description>&lt;p&gt;I&amp;#39;d like to let the softdevice handle the process, but the mbr is a closed box and I can&amp;#39;t understand how it is forwarding interrupts.&amp;nbsp; As stated above, its apparently doing something special because changing the vector makes it crash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Vector forwarding</title><link>https://devzone.nordicsemi.com/thread/463999?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 14:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8081bc-a60b-4cb2-80f9-53ed3ad111f9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Erik,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please correct me if I&amp;#39;m wrong, but you want to have your own bootloader and you want to jump to the application after the bootloader. But you don&amp;#39;t want to use the softdevice to jump to the bootloader but rather forward the interrupt manually and jump directly from the bootloader ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you have studied our bootloader ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I think you can consider using&amp;nbsp;sd_mbr_command_irq_forward_address_set_t to forward the interrupt to the application vector table and then jump after that.&amp;nbsp;&lt;br /&gt;You would need to make sure you de-init the softdevice before doing so if you already initialize it in the bootloader. You do so by a soft reset then boot back to the bootloader then jump to the application. In your application you would need to initialize the softdevice. Think of using your application as the 2nd stage bootloader.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you let me know why you don&amp;#39;t want to jump to 0x1000 and let the softdevice handles the process ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Vector forwarding</title><link>https://devzone.nordicsemi.com/thread/463887?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 03:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97cade08-9e30-45cb-926e-524453c1cc7e</guid><dc:creator>Erik Friesen</dc:creator><description>&lt;p&gt;I can&amp;#39;t seem to edit, but I used it like this&lt;/p&gt;
&lt;p&gt;SCB-&amp;gt;VTOR = 0x1000;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>