<?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: The problem of jumping between Bootloader and Application in S32K</title>
    <link>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091261#M7926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is a pure user affair. You can create a constant somewhere in flash or you can use for inspiration the fw_header in AN12323 Boot.c.&lt;/P&gt;&lt;P&gt;The status register below will help you with recognizing the source of the reset&amp;nbsp; "26.4.3 System Reset Status Register (RCM_SRS)" see RM rev 12.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since we have no example code according to your requirements the implementation is up to you.&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>Mon, 22 Jun 2020 14:24:37 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2020-06-22T14:24:37Z</dc:date>
    <item>
      <title>The problem of jumping between Bootloader and Application</title>
      <link>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091258#M7923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Board：S32K144 EVB，IDE：S32 DS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to realize that , for example, the &lt;SPAN&gt;variable&lt;/SPAN&gt; "Currentsession" is shared between&amp;nbsp;Bootloader and Application, the&amp;nbsp;&lt;SPAN&gt;Currentsession is a "ennum: 0, 1, 2", the init value is 0. When&amp;nbsp;the&amp;nbsp;&lt;SPAN&gt;Currentsession is changed to 2 in the App, then "reset" command, the program return to Bootloader and read the value of&amp;nbsp;Currentsession (it is equal to 2). Only when the program restarts due to power on and power off, the&amp;nbsp;Currentsession can be inited. Other "reset"(such as watchdog, reset command) can't make the &lt;SPAN&gt;variable&lt;/SPAN&gt; Currentsession change.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Problem 1:&lt;/STRONG&gt; How to set the value&amp;nbsp;&amp;nbsp;"Currentsession" is shared between&amp;nbsp;&lt;SPAN&gt;Bootloader and Application, can you give me a demo?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem 2: &lt;/STRONG&gt;How to realize&amp;nbsp;the&amp;nbsp;variable&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Currentsession"&lt;/SPAN&gt;&amp;nbsp; to be persistent which&amp;nbsp;meets the above requirements. In the past, I use resenus chip, othes use the "#pragma location ="CURRENTSESSION""&amp;nbsp; to meet the&amp;nbsp;&lt;SPAN&gt;requirements,&amp;nbsp;&lt;/SPAN&gt;as far as I am concerned.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 02:08:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091258#M7923</guid>
      <dc:creator>zjgchenzhen</dc:creator>
      <dc:date>2020-06-12T02:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: The problem of jumping between Bootloader and Application</title>
      <link>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091259#M7924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to suggest document AN12323&amp;nbsp;S32K1xx Firmware updates&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN12323.pdf" title="https://www.nxp.com/docs/en/application-note/AN12323.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN12323.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SW&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note-software/AN12323SW.zip" title="https://www.nxp.com/docs/en/application-note-software/AN12323SW.zip"&gt;https://www.nxp.com/docs/en/application-note-software/AN12323SW.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"There is a space of 4 bytes reserved in ram memory to share a status variable between the loader and the application."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&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>Tue, 16 Jun 2020 11:08:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091259#M7924</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-06-16T11:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: The problem of jumping between Bootloader and Application</title>
      <link>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091260#M7925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean&amp;nbsp;the&amp;nbsp;following( 0x55AA55AA) which is from your attachment?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113141iEAFC61FF3ECD0B8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is that the value is stored in the memory, when Power off and on, the value will not changed. If I use the method, this method will let me store the value to the memory every time, it is not convinient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I want to have the method that &lt;STRONG&gt;"&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;I want to realize that , for example, the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px;"&gt;variable&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;"Currentsession" is shared between&amp;nbsp;Bootloader and Application, the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px;"&gt;Currentsession is a "ennum: 0, 1, 2", the init value is 0. When&amp;nbsp;the&amp;nbsp;&lt;SPAN style="border: 0px;"&gt;Currentsession is changed to 2 in the App, then "reset" command, the program return to Bootloader and read the value of&amp;nbsp;Currentsession (it is equal to 2). Only when the program restarts due to power on and power off, the&amp;nbsp;Currentsession can be inited. Other "reset"(such as watchdog, reset command) can't make the&amp;nbsp;&lt;SPAN style="border: 0px;"&gt;variable&lt;/SPAN&gt;&amp;nbsp;Currentsession change.&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091260#M7925</guid>
      <dc:creator>zjgchenzhen</dc:creator>
      <dc:date>2020-06-18T06:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: The problem of jumping between Bootloader and Application</title>
      <link>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091261#M7926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is a pure user affair. You can create a constant somewhere in flash or you can use for inspiration the fw_header in AN12323 Boot.c.&lt;/P&gt;&lt;P&gt;The status register below will help you with recognizing the source of the reset&amp;nbsp; "26.4.3 System Reset Status Register (RCM_SRS)" see RM rev 12.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since we have no example code according to your requirements the implementation is up to you.&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>Mon, 22 Jun 2020 14:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091261#M7926</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-06-22T14:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: The problem of jumping between Bootloader and Application</title>
      <link>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091262#M7927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 00:38:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/The-problem-of-jumping-between-Bootloader-and-Application/m-p/1091262#M7927</guid>
      <dc:creator>zjgchenzhen</dc:creator>
      <dc:date>2020-06-23T00:38:59Z</dc:date>
    </item>
  </channel>
</rss>

