<?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 Re: S32K314 bootloader Jump to application error in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1895629#M36987</link>
    <description>&lt;P&gt;What kind of error can you see?&lt;/P&gt;
&lt;P&gt;Is everythinng de-initialized before the jump? Are interrupts disabled? I mean on all levels - in the core, by local enable bits in peripherals, in NVIC... Is core MPU and XRDC disabled?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 05:36:27 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2024-06-28T05:36:27Z</dc:date>
    <item>
      <title>S32K314 bootloader Jump to application error</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1894212#M36922</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are developing S32K314 on S32DS. I am writing code to create a project and jump to an application.&lt;BR /&gt;It seems to jump from Bootloader to Application's Reset_Handler, but the main routine is not executed. I can't get out because I exited with undefined_handler. Below is the currently executed application area.&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jwkang_0-1719389901278.png" style="width: 690px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285818i561A35C5BFCEEA3E/image-dimensions/690x294?v=v2" width="690" height="294" role="button" title="jwkang_0-1719389901278.png" alt="jwkang_0-1719389901278.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bootloader calls Reset_Handler with the following code.&lt;BR /&gt;&lt;SPAN&gt;I tried debugging, and it seems to move to Reset_Handler just fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jwkang_1-1719389624029.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285806i799F4115FC2B5012/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jwkang_1-1719389624029.png" alt="jwkang_1-1719389624029.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks if you can help me what I did wrong.&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jun 2024 08:25:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1894212#M36922</guid>
      <dc:creator>jwkang</dc:creator>
      <dc:date>2024-06-26T08:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 bootloader Jump to application error</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1894332#M36928</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/161128"&gt;@jwkang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we got almost the same question also from another channel, so let me copy here the response I sent short time ago:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some differences betweeen S32K1 and S32K3. As you mentioned, the reset vector on S32K1 is hardwired to address 0x4. When you shift user application to some other area, it's offset+0x4. &lt;BR /&gt;On S32K3, there's Image Vector Table (IVT) used for booting. There are several locations which are checked automatically during the startup (0x40_0000, 0x50_0000...). The entry point for core 0 can be found at offset 0xC in the IVT. And notice that the section used in linker file is called as boot_header (this name was used for older devices). &lt;BR /&gt;See please attached screenshots. &lt;BR /&gt;So, if your boot_header section (IVT) is forced to 0x50_0100, you should jump to address which can be found at 0x50_0100 + 0xC.&lt;/P&gt;
&lt;P&gt;The only demo we have for S32K3 devices is this Unified Bootloder:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099&lt;/A&gt;&lt;BR /&gt;But please notice that it's unofficial demo only provided AS IS with not guarantees and no support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 10:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1894332#M36928</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-06-26T10:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 bootloader Jump to application error</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1895044#M36964</link>
      <description>&lt;P&gt;Thank you for your review.&lt;/P&gt;&lt;P&gt;I found out that there is a boot_header IVT at the start location, and the Start address of Core0 is located at the offset 0xC address.&lt;BR /&gt;And I also knew the address of Reset_Handler located at Start address + 4.&lt;BR /&gt;So, Jump seems to move to those locations well, but an error still occurs at the same location.&lt;/P&gt;&lt;P&gt;There doesn't seem to be much difference in the Unified bootloader demo code.&lt;BR /&gt;What part did I set up wrong?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jwkang_0-1719479652308.png" style="width: 562px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286023i63EA2028B7CB5F08/image-dimensions/562x132?v=v2" width="562" height="132" role="button" title="jwkang_0-1719479652308.png" alt="jwkang_0-1719479652308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any more detailed information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 09:20:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1895044#M36964</guid>
      <dc:creator>jwkang</dc:creator>
      <dc:date>2024-06-27T09:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 bootloader Jump to application error</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1895629#M36987</link>
      <description>&lt;P&gt;What kind of error can you see?&lt;/P&gt;
&lt;P&gt;Is everythinng de-initialized before the jump? Are interrupts disabled? I mean on all levels - in the core, by local enable bits in peripherals, in NVIC... Is core MPU and XRDC disabled?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 05:36:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/1895629#M36987</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-06-28T05:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 bootloader Jump to application error</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/2060080#M46669</link>
      <description>I have the same problems, can you tell me how do you slove this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks very much!</description>
      <pubDate>Wed, 12 Mar 2025 05:54:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/2060080#M46669</guid>
      <dc:creator>EllieLiu</dc:creator>
      <dc:date>2025-03-12T05:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 bootloader Jump to application error</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/2062767#M46844</link>
      <description>&lt;P&gt;Hello Lukas,&lt;/P&gt;&lt;P&gt;Thanks for replying my question.&lt;/P&gt;&lt;P&gt;Before jumping, I disabled all the interrupts through "&lt;FONT color="#3366FF"&gt;cpsid i".&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;My colleague told me I need to disable the&amp;nbsp;specific interrput.&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#333333"&gt;I will try.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;Thanks and&amp;nbsp;&lt;/FONT&gt;Regards !&lt;/P&gt;&lt;P&gt;Ellie&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 06:30:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-bootloader-Jump-to-application-error/m-p/2062767#M46844</guid>
      <dc:creator>EllieLiu</dc:creator>
      <dc:date>2025-03-17T06:30:57Z</dc:date>
    </item>
  </channel>
</rss>

