<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Jump to application from bootloader in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Jump-to-application-from-bootloader/m-p/794367#M2650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP team/developers,&lt;BR /&gt;I am using S32K144.&lt;/P&gt;&lt;P&gt;Flash bootloader : 0x00-0xc000&lt;/P&gt;&lt;P&gt;Application : 0xc000-0x7ffff&lt;/P&gt;&lt;P&gt;Application reset handler : 0xc401(thumb instruction set)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: After jumping to application, it stucks in OS_enable_interrupt function.&lt;/P&gt;&lt;P&gt;Below are some scenarioes :&lt;/P&gt;&lt;P&gt;Case 1:&amp;nbsp; Flashed only&amp;nbsp;application, it&amp;nbsp;works fine.&lt;/P&gt;&lt;P&gt;Case 2: Flashed both&amp;nbsp;FBL and application. Application stucks in hardfault.&lt;/P&gt;&lt;P&gt;Case 3: Flashed both FBL and&amp;nbsp;application. Erased FBL first sector(0x00-0xFFF), Application works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in application startup file, VTABLE is reassigned to VTOR_Reg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why application is not running with FBL?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/tag/S32K144/tg-p"&gt;#S32K144&lt;/A&gt; &lt;A href="https://community.nxp.com/t5/tag/Bootloader/tg-p"&gt;#Bootloader&lt;/A&gt; &lt;A href="https://community.nxp.com/t5/tag/jumptoapplication/tg-p"&gt;#jumptoapplication&lt;/A&gt;‌ &lt;A href="https://community.nxp.com/t5/tag/s32k/tg-p"&gt;#s32k&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2018 22:19:19 GMT</pubDate>
    <dc:creator>ravindralature</dc:creator>
    <dc:date>2018-06-18T22:19:19Z</dc:date>
    <item>
      <title>Jump to application from bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Jump-to-application-from-bootloader/m-p/794367#M2650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP team/developers,&lt;BR /&gt;I am using S32K144.&lt;/P&gt;&lt;P&gt;Flash bootloader : 0x00-0xc000&lt;/P&gt;&lt;P&gt;Application : 0xc000-0x7ffff&lt;/P&gt;&lt;P&gt;Application reset handler : 0xc401(thumb instruction set)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: After jumping to application, it stucks in OS_enable_interrupt function.&lt;/P&gt;&lt;P&gt;Below are some scenarioes :&lt;/P&gt;&lt;P&gt;Case 1:&amp;nbsp; Flashed only&amp;nbsp;application, it&amp;nbsp;works fine.&lt;/P&gt;&lt;P&gt;Case 2: Flashed both&amp;nbsp;FBL and application. Application stucks in hardfault.&lt;/P&gt;&lt;P&gt;Case 3: Flashed both FBL and&amp;nbsp;application. Erased FBL first sector(0x00-0xFFF), Application works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in application startup file, VTABLE is reassigned to VTOR_Reg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why application is not running with FBL?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/tag/S32K144/tg-p"&gt;#S32K144&lt;/A&gt; &lt;A href="https://community.nxp.com/t5/tag/Bootloader/tg-p"&gt;#Bootloader&lt;/A&gt; &lt;A href="https://community.nxp.com/t5/tag/jumptoapplication/tg-p"&gt;#jumptoapplication&lt;/A&gt;‌ &lt;A href="https://community.nxp.com/t5/tag/s32k/tg-p"&gt;#s32k&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 22:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Jump-to-application-from-bootloader/m-p/794367#M2650</guid>
      <dc:creator>ravindralature</dc:creator>
      <dc:date>2018-06-18T22:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Jump to application from bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Jump-to-application-from-bootloader/m-p/794368#M2651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravindra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the jump&amp;nbsp;to the application from bootloader, you can use the&amp;nbsp;function below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void startApplication(unsigned long app_link_location)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;S32_SCB-&amp;gt;VTOR=(uint32_t)(app_link_location);&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;asm(" ldr sp, [r0,#0]");&lt;BR /&gt;asm(" ldr pc, [r0,#4]");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fault handler could be useful see&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-334902"&gt;Fault handling on S32K144&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:21:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Jump-to-application-from-bootloader/m-p/794368#M2651</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2018-06-20T13:21:07Z</dc:date>
    </item>
  </channel>
</rss>

