<?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: s32k118 code lost on reboot in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k118-code-lost-on-reboot/m-p/1822849#M32593</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Arush,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It should be caused by not adding &lt;STRONG&gt;START_FROM_FLASH&lt;/STRONG&gt; in the correct place. Please refer to the discussion in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/S32K188-runs-with-debugger-but-not-witout/td-p/1203150" target="_self"&gt;S32K188 runs with debugger, but not witout&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 02:29:59 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2024-03-07T02:29:59Z</dc:date>
    <item>
      <title>s32k118 code lost on reboot</title>
      <link>https://community.nxp.com/t5/S32K/s32k118-code-lost-on-reboot/m-p/1821426#M32484</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was writing a project for an s32k118 48pin microcontroller on custom hardware, when I came across an unexpected problem; the code I flash to the MCU does not appear to be persistent. When I power-cycle the board, the previously running code does not execute. I need to reupload the code for it to execute. I was expecting previously flashed code to start running, when power is supplied to the MCU.&lt;/P&gt;&lt;P&gt;I am using a Segger J-link debugger and SWD interface.&lt;/P&gt;&lt;P&gt;I'm quite confident I'm flashing code to FLASH memory, not RAM:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have tried using the DEBUG_FLASH as well as the RELEASE_FLASH configurations.&lt;/LI&gt;&lt;LI&gt;The Generator_Configurations menu in the Components tab shows that FLASH is the active configuration.&lt;/LI&gt;&lt;LI&gt;Going through the project settings, I can see that the *_Flash.ld linker file is in use.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can replicate this issue across various projects in the workspace. I can also replicate the problem on a fresh workspace. For reference, I've attached the Blinky project, which replicates the problem.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;STRONG&gt;:&amp;nbsp;&lt;/STRONG&gt;It seems I only have this issue on "S32DS Application Projects", not on "S32DS Project from Examples". I adapted the hello_world_s32k118 project and uploaded it to the board, and the code does work after power-cycling.&lt;/P&gt;&lt;P&gt;I've tried both the "S32DS for ARM" and "S32DS for S32 Platform" versions of the IDE, and this behaviour is consistent across both; only Example Projects work after power-cycling. Clearly there's some configuration difference between my application projects, and the example projects. (I have previously developed on a custom s32k144 board, so I can't imagine what this difference may be)&lt;/P&gt;&lt;P&gt;Regardless, I am attaching "hello_world_s32k118.rar", a project which&amp;nbsp;&lt;EM&gt;is&lt;/EM&gt; persistent across power-cycles.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;On the hardware side, the MCU is receiving stable 3.3 volts power supply. The RESET pin (PTA5) is pulled up to 3v3 by a 10k resistor. a 20MHz oscillator is connected across PTB6 and PTB7.&lt;/P&gt;&lt;P&gt;I've attached screenshots to show the project settings and debugger configurations&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debugger Configuration" style="width: 807px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266539i99171D74CC0EECF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ConfigDebugger.png" alt="Debugger Configuration" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Debugger Configuration&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FLASH configurations selected" style="width: 817px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266540i435F2EB9F9483DDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="ConfigMain.png" alt="FLASH configurations selected" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FLASH configurations selected&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Startup Configurations" style="width: 770px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266541i1E0BAC0DCBCA9463/image-size/large?v=v2&amp;amp;px=999" role="button" title="ConfigStartup.png" alt="Startup Configurations" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Startup Configurations&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Linker file, _flash.ld" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266542i45674A4928EEA7D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Linker.png" alt="Linker file, _flash.ld" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Linker file, _flash.ld&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="General Linker settings" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266543i134F4D093E408003/image-size/large?v=v2&amp;amp;px=999" role="button" title="LinkerGeneral.png" alt="General Linker settings" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;General Linker settings&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FLASH selected in Generator_Configurations" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266544iE298E5900CF65FA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Project.png" alt="FLASH selected in Generator_Configurations" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FLASH selected in Generator_Configurations&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do I resolve the problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arush&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 14:06:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k118-code-lost-on-reboot/m-p/1821426#M32484</guid>
      <dc:creator>ArushThomas</dc:creator>
      <dc:date>2024-03-06T14:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: s32k118 code lost on reboot</title>
      <link>https://community.nxp.com/t5/S32K/s32k118-code-lost-on-reboot/m-p/1822849#M32593</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Arush,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It should be caused by not adding &lt;STRONG&gt;START_FROM_FLASH&lt;/STRONG&gt; in the correct place. Please refer to the discussion in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/S32K188-runs-with-debugger-but-not-witout/td-p/1203150" target="_self"&gt;S32K188 runs with debugger, but not witout&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 02:29:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k118-code-lost-on-reboot/m-p/1822849#M32593</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-03-07T02:29:59Z</dc:date>
    </item>
  </channel>
</rss>

