<?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>S32KのトピックRe: Issue in Jump to Application from Bootloader</title>
    <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016867#M6205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your jump function&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;JumpToUserApplication&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; userSP&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; userStartup&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Check if Entry address is erased and return if erased */&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;userSP &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xFFFFFFFF&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

  &lt;SPAN class="comment token"&gt;/* Set up stack pointer */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"msr msp, r0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"msr psp, r0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

  &lt;SPAN class="comment token"&gt;/* Relocate vector table */&lt;/SPAN&gt;
  S32_SCB&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;VTOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_RESET_ADDRESS&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

  &lt;SPAN class="comment token"&gt;/* Jump to application PC (r1) */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"mov pc, r1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When you enter the function the passed parameters are in r0 and r1 as you know. However once you execute some C code, such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;S32_SCB-&amp;gt;VTOR = (uint32_t)APP_RESET_ADDRESS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;It is possible that the compiler used either or both r1 and r0 to execute that line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Even the compare in the if statement could modify r0 or r1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;So you can't be sure that r1 still has the Reset&amp;nbsp;Handler of your application. So you may not be jumping to your application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You could reload the values from the stack, as they are also pushed to the stack when entering the function, or you could avoid executing those statements in the jump function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You can instead&amp;nbsp;execute these statements before calling the jump function:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_RESET_ADDRESS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xFFFFFFFF&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Relocate vector table */&lt;/SPAN&gt;
  S32_SCB&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;VTOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_RESET_ADDRESS&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;JumpToUserApplication&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_RESET_ADDRESS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;APP_RESET_ADDRESS &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;JumpToUserApplication&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; userSP&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; userStartup&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Set up stack pointer */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"msr msp, r0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"msr psp, r0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Jump to application PC (r1) */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"mov pc, r1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Alternatively you can load the values inside the Jump function instead of passing the values.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2020 18:25:41 GMT</pubDate>
    <dc:creator>Ray_V</dc:creator>
    <dc:date>2020-02-13T18:25:41Z</dc:date>
    <item>
      <title>Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016864#M6202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using S32K144 EVB, out of 512kb of PFlash 44kb is used for Bootloader, and remaining for Application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app config&lt;/P&gt;&lt;P&gt;m_interrupts (RX) : ORIGIN = 0x0000E000, LENGTH = 0x00000400&lt;BR /&gt; m_flash_config (RX) : ORIGIN = 0x0000E400, LENGTH = 0x00000010&lt;BR /&gt; m_text (RX) : ORIGIN = 0x0000E410, LENGTH = 512k - 0xE410&lt;/P&gt;&lt;P&gt;/* SRAM_L */&lt;BR /&gt; m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000&lt;/P&gt;&lt;P&gt;/* SRAM_U */&lt;BR /&gt; m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00007000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;boot config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Flash */&lt;BR /&gt; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt; m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt; m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0000B000&lt;/P&gt;&lt;P&gt;/* SRAM_L */&lt;BR /&gt; m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000&lt;/P&gt;&lt;P&gt;/* SRAM_U */&lt;BR /&gt; m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00007000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanted to jump from bootloader to application, but i am facing error like&lt;/P&gt;&lt;P&gt;No source available for "0xe478"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code&lt;/P&gt;&lt;P&gt;#define APP_RESET_ADDRESS&amp;nbsp; &amp;nbsp; &lt;SPAN&gt; &lt;/SPAN&gt;0x0000E000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JumpToUserApplication(*((uint32_t*)APP_RESET_ADDRESS), *((uint32_t*)(APP_RESET_ADDRESS + 4)));&amp;nbsp; (Calling from main function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void JumpToUserApplication( unsigned int userSP, unsigned int userStartup)&lt;BR /&gt;{&lt;BR /&gt; /* Check if Entry address is erased and return if erased */&lt;BR /&gt; if(userSP == 0xFFFFFFFF){&lt;BR /&gt; return;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Set up stack pointer */&lt;BR /&gt; __asm("msr msp, r0");&lt;BR /&gt; __asm("msr psp, r0");&lt;/P&gt;&lt;P&gt;/* Relocate vector table */&lt;BR /&gt; S32_SCB-&amp;gt;VTOR = (uint32_t)APP_RESET_ADDRESS;&lt;/P&gt;&lt;P&gt;/* Jump to application PC (r1) */&lt;BR /&gt; __asm("mov pc, r1");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve this issue. Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 08:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016864#M6202</guid>
      <dc:creator>lakshmi_s</dc:creator>
      <dc:date>2020-02-12T08:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016865#M6203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;i wanted to jump from bootloader to application, but i am facing error like&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;No source available for "0xe478"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This error appears because gdb does not have the debug symbols for the application. A workaround can be done by adding a breakpoint to the entry of the application and by manually loading the debug symbols in gdb.&lt;/P&gt;&lt;P&gt;In S32DS,&amp;nbsp;&lt;EM&gt;Debugger Console&lt;/EM&gt; view, type &lt;STRONG&gt;file &amp;lt;path_to_app.elf&amp;gt;&amp;nbsp;&lt;/STRONG&gt;and after the next step the symbols will be loaded.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;IMG alt="pastedImage_4.png" src="https://community.nxp.com/t5/image/serverpage/image-id/98004i3CA2FC90DBAE13E3/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far of the entry of the application: If you are running in thumb mode, then you must add 1 to the entry address to let the cpu know that the code is in Thumb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Add 1 to the entry to respect Thumb requirements */&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"add r1, r1, #0x1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/* Jump to application PC (r1) */&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"bx r1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Rares&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016865#M6203</guid>
      <dc:creator>raresvasile</dc:creator>
      <dc:date>2020-11-02T14:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016866#M6204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your two suggestions by adding path and assembly command.&lt;/P&gt;&lt;P&gt;if i add this command _asm("add&amp;nbsp; r1, r1, 0x1"&amp;nbsp; in my&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;JumpToUserApplication function, i am getting error like "No source available for "main() at main.c:151 0xac2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Also i got error when i try to add the path in debbuger console.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;//////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;...................file F:/PROJECTS/BMS_2020/Code/s32k144_asw_uds/Debug/s32k144_asw_uds.elf&lt;BR /&gt;A program is being debugged already.&lt;BR /&gt;Are you sure you want to change the file? (y or n) [answered Y; input not from terminal]&lt;BR /&gt;Load new symbol table from "F:/PROJECTS/BMS_2020/Code/s32k144_asw_uds/Debug/s32k144_asw_uds.elf"? (y or n) [answered Y; input not from terminal]&lt;BR /&gt;Reading symbols from F:/PROJECTS/BMS_2020/Code/s32k144_asw_uds/Debug/s32k144_asw_uds.elf...done.&lt;BR /&gt;Error in re-setting breakpoint 3: No source file named F:\\PROJECTS\\BMS_2020\\Code\\S32k144_UDS\\Sources\\main.c.&lt;BR /&gt;Error in re-setting breakpoint 4: No source file named F:\\PROJECTS\\BMS_2020\\Code\\S32k144_UDS\\Sources\\14229_uds\\iso14229_serv11.c. ..................................&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;////////////////////////////////////////////////////////////////&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A href="https://community.nxp.com/docs/DOC-342385"&gt;HOWTO: Debug multiple elf files in S32 Design Studio with GDB&lt;/A&gt;&amp;nbsp; &amp;nbsp;i fallowed these steps to debug my bootloader and application code both at a time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;Can you please see and tell what is my mistake.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 09:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016866#M6204</guid>
      <dc:creator>lakshmi_s</dc:creator>
      <dc:date>2020-02-13T09:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016867#M6205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your jump function&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;JumpToUserApplication&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; userSP&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; userStartup&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Check if Entry address is erased and return if erased */&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;userSP &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xFFFFFFFF&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

  &lt;SPAN class="comment token"&gt;/* Set up stack pointer */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"msr msp, r0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"msr psp, r0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

  &lt;SPAN class="comment token"&gt;/* Relocate vector table */&lt;/SPAN&gt;
  S32_SCB&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;VTOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_RESET_ADDRESS&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

  &lt;SPAN class="comment token"&gt;/* Jump to application PC (r1) */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"mov pc, r1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When you enter the function the passed parameters are in r0 and r1 as you know. However once you execute some C code, such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;S32_SCB-&amp;gt;VTOR = (uint32_t)APP_RESET_ADDRESS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;It is possible that the compiler used either or both r1 and r0 to execute that line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Even the compare in the if statement could modify r0 or r1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;So you can't be sure that r1 still has the Reset&amp;nbsp;Handler of your application. So you may not be jumping to your application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You could reload the values from the stack, as they are also pushed to the stack when entering the function, or you could avoid executing those statements in the jump function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You can instead&amp;nbsp;execute these statements before calling the jump function:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_RESET_ADDRESS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xFFFFFFFF&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Relocate vector table */&lt;/SPAN&gt;
  S32_SCB&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;VTOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_RESET_ADDRESS&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;JumpToUserApplication&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_RESET_ADDRESS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;APP_RESET_ADDRESS &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;JumpToUserApplication&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; userSP&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; userStartup&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Set up stack pointer */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"msr msp, r0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"msr psp, r0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;/* Jump to application PC (r1) */&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;__asm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"mov pc, r1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Alternatively you can load the values inside the Jump function instead of passing the values.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016867#M6205</guid>
      <dc:creator>Ray_V</dc:creator>
      <dc:date>2020-02-13T18:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016868#M6206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fallowed your suggestion even though the error is coming. i think some signal intterupt is coming so it is giving error like&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program received signal SIGINT, Interrupt.&lt;BR /&gt;0x0000e478 in ?? ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After debugging in debugger console view it showing error like No source available for the application project main() file.&lt;/P&gt;&lt;P&gt;How can i resolve this issue?&lt;/P&gt;&lt;P&gt;I attached debugger console window for better information.&lt;span class="lia-inline-image-display-wrapper" image-alt="debugger_console_view.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99494iC9092D86BEBB5E67/image-size/large?v=v2&amp;amp;px=999" role="button" title="debugger_console_view.jpg" alt="debugger_console_view.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 10:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016868#M6206</guid>
      <dc:creator>lakshmi_s</dc:creator>
      <dc:date>2020-02-14T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016869#M6207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SIGINT is normal with some breakpoints, I don't think it is a problem.&lt;/P&gt;&lt;P&gt;About&amp;nbsp;the "No Source Available" message, on the debugger console enter&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;add-symbol-file "F:/PROJECTS/BMS_2020/Code/s32k144_asw_uds/Debug/s32k144_asw_uds.elf" 0x0x0000E000&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After this is done you can single-step and it should refresh the debugger to show the code.&lt;/P&gt;&lt;P&gt;You can even issue the add-symbol-file before jumping to the program so it will show the source right away after jumping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 17:05:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016869#M6207</guid>
      <dc:creator>Ray_V</dc:creator>
      <dc:date>2020-02-14T17:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016870#M6208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also noticed in your entry from&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" href="https://community.nxp.com/message/1269133?commentID=1269133&amp;amp;et=watches.email.thread#comment-1268426" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 500; text-decoration: none; font-size: 10.9998px;"&gt;Feb 13, 2020 3:18 AM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You tried to issue the command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f; "&gt;file F:/PROJECTS/BMS_2020/Code/s32k144_asw_uds/Debug/s32k144_asw_uds.elf&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;this command replaces all symbols instead of adding. I also noticed that you have some errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f; "&gt;Reading symbols from F:/PROJECTS/BMS_2020/Code/s32k144_asw_uds/Debug/s32k144_asw_uds.elf...done.&lt;BR /&gt;Error in re-setting breakpoint 3: No source file named F:\\PROJECTS\\BMS_2020\\Code\\S32k144_UDS\\Sources\\main.c.&lt;BR /&gt;Error in re-setting breakpoint 4: No source file named F:\\PROJECTS\\BMS_2020\\Code\\S32k144_UDS\\Sources\\14229_uds\\iso14229_serv11.c&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;From this it seems that you compiled your project in one directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;F:\\PROJECTS\\BMS_2020\\Code\\&lt;STRONG&gt;S32k144_UDS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;and then moved your project to a different directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;F:/PROJECTS/BMS_2020/Code/&lt;STRONG&gt;s32k144_asw_uds&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The information is saved with the complete path, so the debugger can't find the sources.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If you move your project you need to clean and re-compile so the debug source paths are correct&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 17:17:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016870#M6208</guid>
      <dc:creator>Ray_V</dc:creator>
      <dc:date>2020-02-14T17:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016871#M6209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried by adding&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #f6f6f6; border: 0px; font-weight: bold;"&gt;add-symbol-file "F:/PROJECTS/BMS_2020/Code/s32k144_asw_uds/Debug/s32k144_asw_uds.elf" 0x0x0000E000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now the error is solved ...it is also jumping to application but it is jumping some where else other than main()..&lt;/P&gt;&lt;P&gt;Can anyone tell that which address stack pointer and Program Counter holds if my application starts from 0xe000 address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016871#M6209</guid>
      <dc:creator>lakshmi_s</dc:creator>
      <dc:date>2020-02-26T13:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Jump to Application from Bootloader</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016872#M6210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lakshmi, main() does not start at 0xe000. The vector table starts there.&lt;/P&gt;&lt;P&gt;The first vector&amp;nbsp; (0xe000)&amp;nbsp;contains&amp;nbsp;the "initial stack pointer" and the second vector (0xe004)&amp;nbsp;contains the address for the "ResetISR" vector. Look at the JumpToUserApplication() call.&lt;/P&gt;&lt;P&gt;The first vector is loaded to SP (msp and psp) and the second vector is loaded to PC register.&lt;/P&gt;&lt;P&gt;ResetISR&amp;nbsp;will jump to main() after executing some initialization such as loading RAM regions, setting the CPU clock, configuring IO pins, etc.&lt;/P&gt;&lt;P&gt;You can look at the .map file (if you generate it) to see what the actual addresses of your ResetISR() and main() are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 14:34:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-Jump-to-Application-from-Bootloader/m-p/1016872#M6210</guid>
      <dc:creator>Ray_V</dc:creator>
      <dc:date>2020-02-26T14:34:51Z</dc:date>
    </item>
  </channel>
</rss>

