<?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: S32K MCU reset when using FLASH commands. in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910264#M4713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;I assume that in your SDK application, the vector table is SRAM.&lt;/P&gt;&lt;P&gt;Please see the linker file and the startup code.&lt;/P&gt;&lt;P&gt;S32K1xx_flash.ld&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97503i73F474BC39A93781/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So fetching the interrupt vector should not compose a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the address of the&amp;nbsp;SysTick_Handler function in the .map file (Debug_FLASH folder).&lt;/P&gt;&lt;P&gt;I guess it is in PFlash block and thus calling this function during a PFlash operation&amp;nbsp;causes&amp;nbsp;a collision on the block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2020 12:26:54 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2020-03-17T12:26:54Z</dc:date>
    <item>
      <title>S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910258#M4707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Context:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm building a bootloader for the s32k144 MCU using the&amp;nbsp;AN12218 as a reference. I'm using the processor expert flash_driver to program internal flash memory.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;The problem:&lt;BR /&gt;&lt;/STRONG&gt;When using the&amp;nbsp;&lt;EM&gt;FLASH_DRV_CommandSequence()&lt;/EM&gt; function, the MCU reset completely; as you can see here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85596iE0D808794CF2CAA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.gif" alt="pastedImage_1.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking at the system reset status register, the reset seems to be caused by a LOCKUP EVENT.&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/85747iE6DCBEEB69CCE2A1/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;&lt;STRONG&gt;The question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What can cause such behaviour?&lt;BR /&gt;Can I catch this event to better understand where it comes from?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This function happens to be located inside the RAM because of the&amp;nbsp;&lt;EM&gt;START_FUNCTION_DEFINITION_RAMSECTION&lt;/EM&gt; macro. Do I need to do something to ensure it works properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional information&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My bootloader linker file:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86098i4E2AEDC3560EF66C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm trying to write my program to&amp;nbsp;0x0000B000 and above.&lt;/LI&gt;&lt;LI&gt;The problem is still happening without debugger.&lt;/LI&gt;&lt;LI&gt;The processor expert component&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86830iC05662D71C08820B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;Your help is very much appreciated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 21:27:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910258#M4707</guid>
      <dc:creator>gberthiaume</dc:creator>
      <dc:date>2019-09-25T21:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910259#M4708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/gberthiaume@nordresa.com"&gt;gberthiaume@nordresa.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Just to be sure, I would read the program counter in the CommandSequence function to see if it is in RAM, disable interrupts and make sure no Flash data are read during the flash operation.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developer.arm.com/docs/dui0553/a/the-cortex-m4-processor/fault-handling/lockup" title="https://developer.arm.com/docs/dui0553/a/the-cortex-m4-processor/fault-handling/lockup"&gt;Cortex-M4 Devices Generic User Guide | Lockup – Arm Developer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83084i9988754BD7BE728B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can catch the event, please create a HardFault handler and debug the exception.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-334902"&gt;Fault handling on S32K144&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share the project? If you don't want to post it here, you can create a ticket:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329745"&gt;How to submit a new question for NXP Support&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 10:25:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910259#M4708</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-09-27T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910260#M4709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielmartynek"&gt;danielmartynek&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fixed the problem by disabling the Global IRQ before writing to the flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;INT_SYS_DisableIRQGlobal&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="background-color: #1e1e1e; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; sdkStatus&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;FLASH_DRV_EraseSector&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;g_flashSSDConfig,&amp;nbsp;memoryAddress,&amp;nbsp;FEATURE_FLS_PF_BLOCK_SECTOR_SIZE);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="background-color: #1e1e1e; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;INT_SYS_EnableIRQGlobal&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the program now behaves as expected, this solution seems like a hack...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you explain to me how the interrupt could cause this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my understanding, the only interrupt that could fire while the program is writing to the flash is the systick.&amp;nbsp;&lt;BR /&gt;I also have the&amp;nbsp;UART interrupt enable, but it shouldn't fire between write.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910260#M4709</guid>
      <dc:creator>gberthiaume</dc:creator>
      <dc:date>2019-10-10T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910261#M4710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update on this &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielmartynek"&gt;danielmartynek&lt;/A&gt;?&amp;nbsp;&lt;BR /&gt;Disabling interrupts before writing to flash seems to be an SDK problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you think?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910261#M4710</guid>
      <dc:creator>gberthiaume</dc:creator>
      <dc:date>2020-03-10T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910262#M4711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;I'm sorry, I must have forgotten to reply.&lt;/P&gt;&lt;P&gt;There is only one PFlash block (or partition) on S32K144.&lt;/P&gt;&lt;P&gt;And when the FTFC module is programing the block, the core must not access the block.&lt;/P&gt;&lt;P&gt;If the SysTick is causing this failure, it is because you have either the Systick handler in PFlash or the Interrupt vector table is in PFlash or both.&lt;/P&gt;&lt;P&gt;The SDK driver does not have to disable interrupts, this is application-dependent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:38:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910262#M4711</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-10T14:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910263#M4712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;f the SysTick is causing this failure, it is because you have either the Systick handler in PFlash or the Interrupt vector table is in PFlash or both.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think you're are right. &lt;BR /&gt;By looking at my configuration, I can see my P-Flash goes from 0x0 to 0x80000.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103382i081DE80D00A33074/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My liker file is configured to put the bootloader in the range of the P-flash.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103419iFD80F281F91F08AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This configuration is explained in the AN12218 (S32K1xx Bootloader) application note, but there's is no mention of the issue.&amp;nbsp;Do you recommend another alternative for the memory management of a bootloader?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910263#M4712</guid>
      <dc:creator>gberthiaume</dc:creator>
      <dc:date>2020-03-13T14:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910264#M4713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;I assume that in your SDK application, the vector table is SRAM.&lt;/P&gt;&lt;P&gt;Please see the linker file and the startup code.&lt;/P&gt;&lt;P&gt;S32K1xx_flash.ld&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97503i73F474BC39A93781/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So fetching the interrupt vector should not compose a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the address of the&amp;nbsp;SysTick_Handler function in the .map file (Debug_FLASH folder).&lt;/P&gt;&lt;P&gt;I guess it is in PFlash block and thus calling this function during a PFlash operation&amp;nbsp;causes&amp;nbsp;a collision on the block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2020 12:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910264#M4713</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-17T12:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910265#M4714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The systick_handler is located at 0x4d14&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99376i50E37DEE8C625265/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wich is in the P-Flash (Exactly as you said)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/100042i2B7DA3178B0C8CE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that in your SDK application, the vector table is SRAM.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Therefore, I conclude that the vector table is not in SRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose this is why, in the&amp;nbsp;AN12323 app note, the bootloader is put in the FlexMemory:&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/99200i0475A9F9DF797119/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;The bootloader memory map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99243i00FAF1216F4C0B53/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;If the SysTick is causing this failure, it is because you have either the Systick handler in PFlash or the Interrupt vector table is in PFlash or both.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in the AppNote example, the Interrupt Vector is still in the PFlash:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99325i441CEC7374D85ABB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why is this not a problem?&amp;nbsp;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps.&lt;/P&gt;&lt;P&gt;I don't want to use too much of your time, so if you have a good reading on microcontroller memory fundamentals, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2020 14:05:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910265#M4714</guid>
      <dc:creator>gberthiaume</dc:creator>
      <dc:date>2020-03-20T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K MCU reset when using FLASH commands.</title>
      <link>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910266#M4715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Gabriel,&lt;/P&gt;&lt;P&gt;I'm not aware of any document that would address all of this.&lt;/P&gt;&lt;P&gt;The interrupt vector table (initial SP value, reset vector) has to be at 0x00000000, because out of the system reset the execution starts at this address (VTOR = 0x00000000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tested the S32K144_FOTA_Bootloader SW (AN12323).&lt;/P&gt;&lt;P&gt;The startup.c file copies the vector table in SRAM before the application enables interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103811iAE9A478ABFEBBC59/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&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/103866iEA81086904648452/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;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103891i869F70E51373641C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103941i927C4D37BC166FFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the interrupt handlers are in DFlash as you mentioned:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/104039iD640093807B8C324/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 14:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-MCU-reset-when-using-FLASH-commands/m-p/910266#M4715</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-23T14:41:05Z</dc:date>
    </item>
  </channel>
</rss>

