<?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: Reset to App in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Reset-to-App/m-p/1820461#M32421</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56838"&gt;@rmaier&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Do you mean the vector table at 0x0 and 0x2000 looks the same?&lt;/P&gt;
&lt;P&gt;How did you build the application code? Did you modify the linker file?&lt;/P&gt;
&lt;P&gt;Have a look at AN12218 S32K1xx Bootloader&lt;/P&gt;
&lt;P&gt;Chapter 3. Building compatible applications&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12218.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12218.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 10:14:33 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-03-04T10:14:33Z</dc:date>
    <item>
      <title>Reset to App</title>
      <link>https://community.nxp.com/t5/S32K/Reset-to-App/m-p/1818028#M32274</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are working on implementing a bootloader on the S32K144. The problem we are having is launching the newly bootloaded App.&lt;/P&gt;&lt;P&gt;The bootloader occupies the flash from 0 to 0x1FF. The application starts at 0x2000. When looking at the memory at 0x2000 the bootloaded memory and app memory look the same.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rmaier_0-1709160338445.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265645i613A576526699CDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rmaier_0-1709160338445.png" alt="rmaier_0-1709160338445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//We have this def
#define PROG_START 0x00002000
//When the app is ready to launch, call this
JumpToProgram(*((uint32_t *)PROG_START), *((uint32_t *)(PROG_START + 4)));

void JumpToProgram(uint32_t userSP, uint32_t userStartup)
{
    /* Set up stack pointer */
    DISABLE_INTERRUPTS();
    __asm("msr msp, r0");
    __asm("msr psp, r0");
    ENABLE_INTERRUPTS();

    // Set app_start to point to the application's reset handler
    AppAddr resetHandle = (AppAddr)(userStartup);

    (resetHandle)();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This causes the target to reset and load back into bootloader rather than execute the App. I am using S32DS for ARM. Is there anything I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 22:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Reset-to-App/m-p/1818028#M32274</guid>
      <dc:creator>rmaier</dc:creator>
      <dc:date>2024-02-28T22:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reset to App</title>
      <link>https://community.nxp.com/t5/S32K/Reset-to-App/m-p/1820461#M32421</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56838"&gt;@rmaier&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Do you mean the vector table at 0x0 and 0x2000 looks the same?&lt;/P&gt;
&lt;P&gt;How did you build the application code? Did you modify the linker file?&lt;/P&gt;
&lt;P&gt;Have a look at AN12218 S32K1xx Bootloader&lt;/P&gt;
&lt;P&gt;Chapter 3. Building compatible applications&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12218.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12218.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 10:14:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Reset-to-App/m-p/1820461#M32421</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-04T10:14:33Z</dc:date>
    </item>
  </channel>
</rss>

