<?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: S32K116 EIM none-correctale error cleared SRAM cause program crash in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1692035#M25401</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188361"&gt;@Helloyt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;When the MCU detects a non-correctable ECC error, it fetches the HardFault_Handler vector (or BusFault_Handler if enabled).&lt;/P&gt;
&lt;P&gt;But because the vector is in SRAM_U, it detects another non-correctable ECC error during the vector fetching.&lt;/P&gt;
&lt;P&gt;And this escalates the hard fault exception to Core Lockup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you leave the vector table in the flash?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Declare symbol&lt;/P&gt;
&lt;P&gt;__flash_vector_table__&lt;/P&gt;
&lt;P&gt;in the startup.h file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And define in the linker file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1690272393492.png" style="width: 563px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233462i9AD78A9D3C5D456C/image-dimensions/563x214?v=v2" width="563" height="214" role="button" title="danielmartynek_0-1690272393492.png" alt="danielmartynek_0-1690272393492.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;void HardFault_Handler(void){
   while(1){}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 09:55:31 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2023-07-25T09:55:31Z</dc:date>
    <item>
      <title>S32K116 EIM none-correctale error cleared SRAM cause program crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1689915#M25253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I tried to test the action of ERM after an double bit ECC error occured(none-correctable),to my understanding,in S32K116 ,after an double bit ECC error occured the hardfault_handler will first be triggered ,and user can add some code to the hardfault_handler to deal the error flag in ERM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; but when i injected an double bit ECC error to SRAM_U, the SRAM was dirrectly cleared with the vector_table in SRAM reset to &lt;FONT color="#FF6600"&gt;0x00000000&lt;/FONT&gt; ,and after an hardfault_handler trigger ,the pc(core register) jumpt to &lt;FONT color="#FF6600"&gt;0x00000000&lt;/FONT&gt; to fetch code ,and then ,the program crashed.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; as you know , stack locte in S32K116'SSRAM_U ,therefor ethe double bit ECC error will be triggered in EIM_DRV_Init() first ,following is the debug info before enable EIM module&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Helloyt_3-1689907127129.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232842i07C73F0FE758D128/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Helloyt_3-1689907127129.png" alt="Helloyt_3-1689907127129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I redefined&amp;nbsp;&lt;FONT color="#CC99FF"&gt;NMI_Handler&lt;/FONT&gt;,&lt;FONT color="#CC99FF"&gt;HardFault_Handler&lt;/FONT&gt;&amp;nbsp;at following code ,so their func address in SRAM is not default value(WDG_Handler,&lt;FONT color="#FF6600"&gt;0x46d&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;void ECC_check_init(void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;&amp;nbsp; &amp;nbsp; ERM_DRV_Init(INST_ERM1, ERM_CHANNEL_COUNT0, erm1_InitConfig0);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;&amp;nbsp; &amp;nbsp; INT_SYS_EnableIRQ(ERM_fault_IRQn);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;&amp;nbsp; &amp;nbsp; INT_SYS_InstallHandler(ERM_fault_IRQn,erm_error_cbk,NULL);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;&amp;nbsp; &amp;nbsp; INT_SYS_InstallHandler(NonMaskableInt_IRQn,Fault_Handler,NULL);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;&amp;nbsp; &amp;nbsp; INT_SYS_InstallHandler(HardFault_IRQn,Fault_Handler,NULL);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;&amp;nbsp; &amp;nbsp; INT_SYS_InstallHandler(SVCall_IRQn,Fault_Handler,NULL);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;&amp;nbsp; &amp;nbsp; INT_SYS_InstallHandler(PendSV_IRQn,Fault_Handler,NULL);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;void Fault_Handler(void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;&amp;nbsp; &amp;nbsp; while(1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="helvetica" color="#CC99FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Helloyt_4-1689907269437.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232843i9C179856F2B27609/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Helloyt_4-1689907269437.png" alt="Helloyt_4-1689907269437.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; to describe the problem in detail ,the code line before trigger ECC double bit error will need to change to disassembly view as you see in pic2(no breakpoint in the program also will cause crash)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; the SRAM was cleared,and the register xpsr == &lt;FONT color="#FFCC99"&gt;0x81000000&lt;/FONT&gt; ,which mean no interrupt triggered,the same time(or before SRAM cleared) the ERM NEC0 was set to &lt;FONT color="#FF9900"&gt;1&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Helloyt_5-1689907431501.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232845i8E8F3EFB73E3C764/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Helloyt_5-1689907431501.png" alt="Helloyt_5-1689907431501.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;then,go on signal step debug, xpsr == &lt;FONT color="#FFCC99"&gt;0x81000003&lt;/FONT&gt; ,it seems an hardfault_handler interrupt was triggered and the program crashed&lt;/P&gt;&lt;P&gt;&amp;nbsp; I guess that after xpsr change to &lt;FONT color="#FFCC99"&gt;0x81000003&amp;nbsp;&lt;/FONT&gt;the pc(register) will go to SRAM address &lt;FONT color="#FF6600"&gt;0x2000000c&lt;/FONT&gt; to fetch the entry of&amp;nbsp;hardfault_handler,but as you see, the SRAM was cleared by some reason,at the end ,the program crashed because the error address&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;FONT color="#FF00FF"&gt;so,what caused the SRAM cleared ,and what should i do to deal double bit error in hardfault handler?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 03:05:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1689915#M25253</guid>
      <dc:creator>Helloyt</dc:creator>
      <dc:date>2023-07-21T03:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 EIM none-correctale error cleared SRAM cause program crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1690435#M25295</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188361"&gt;@Helloyt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you post the images in a better resolution?&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>Fri, 21 Jul 2023 12:26:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1690435#M25295</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-07-21T12:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 EIM none-correctale error cleared SRAM cause program crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1690871#M25312</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,picture illustrated above are displayed in a better way here ,and you can read problem described above for detail&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic1 &lt;FONT color="#0000FF"&gt;before inject double ecc error&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_0-1690161765181.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233115i1A45FC7D9C9D26CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_0-1690161765181.png" alt="Helloyt_0-1690161765181.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic2 &lt;FONT color="#0000FF"&gt;jump into EIM_DRV_INIT()&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_1-1690162022962.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233117i46E9E42C9E0EF546/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_1-1690162022962.png" alt="Helloyt_1-1690162022962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic3 &lt;FONT color="#0000FF"&gt;change view to assembly code meanwhile supervise the&amp;nbsp; SRAM content&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_2-1690162266612.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233120i4B3C954D7EB97D08/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_2-1690162266612.png" alt="Helloyt_2-1690162266612.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic4 &lt;FONT color="#0000FF"&gt;ecc double bit error occur&lt;/FONT&gt; , &lt;FONT color="#FF0000"&gt;SRAM had been cleared&lt;/FONT&gt; and &lt;FONT color="#0000FF"&gt;hardfault interrupr had not yet been triggered&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_0-1690162859967.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233121iBBA3330F6FA7F67A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_0-1690162859967.png" alt="Helloyt_0-1690162859967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic5 &lt;FONT color="#0000FF"&gt;hardfault triggered but&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;SRAM content (vector address) is NULL&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;,thus the program crashed&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_1-1690163106315.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233124i2AF9AA2FE97A2F76/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_1-1690163106315.png" alt="Helloyt_1-1690163106315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;usually ,to reflect the real register action ,breakpoints should not set in step,so the 2 pictures above show the same program without breakpoints in middle process&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic1 &lt;FONT color="#0000FF"&gt;before inject double ecc error&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_0-1690161765181.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233115i1A45FC7D9C9D26CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_0-1690161765181.png" alt="Helloyt_0-1690161765181.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pic2 &lt;FONT color="#0000FF"&gt;mcu reset and program run to the same breakpoint&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_0-1690161765181.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233115i1A45FC7D9C9D26CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_0-1690161765181.png" alt="Helloyt_0-1690161765181.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 01:58:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1690871#M25312</guid>
      <dc:creator>Helloyt</dc:creator>
      <dc:date>2023-07-24T01:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 EIM none-correctale error cleared SRAM cause program crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1691325#M25345</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188361"&gt;@Helloyt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for the detailed description.&lt;/P&gt;
&lt;P&gt;I understand that VTOR is in the SRAM_U region. Therefore, once the EIM is enabled on SRAM_U and a non-correctable error is injected (by reading SRAM_U data or unstacking), it fetches the HardFault_Handler from SRAM_U and this causes Core Lockup which is a system reset source on the MCU.&lt;/P&gt;
&lt;P&gt;Can you read the MCR_SRS[LOCKUP] flag?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 10:40:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1691325#M25345</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-07-24T10:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 EIM none-correctale error cleared SRAM cause program crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1691763#M25378</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;,@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001" target="_self"&gt;&lt;SPAN class=""&gt;danielmartynek&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; I think your mean is to supervise the LOCKUP flag in&amp;nbsp;&amp;nbsp;System Reset Status Register (RCM_SRS) ,following pictures shows the change&amp;nbsp; of RCM_SRC[LOCKUP]&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;pic1 before ecc error occur&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_1-1690252660894.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233373i21FBFE420AAC8D5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_1-1690252660894.png" alt="Helloyt_1-1690252660894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;pic2 a reset occured&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_2-1690252863166.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233376i41BF6604A14E549B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_2-1690252863166.png" alt="Helloyt_2-1690252863166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the picture2 shows the core was lockup , but I not sure whether the NULL vector caused core lockup or the ecc double bit error caused core lockup with SRAM cleared.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p.s. I found that this time the ecc error triggered after the EIM gloale enable instead of EIM channel enable yesterday ,with little code changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 02:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1691763#M25378</guid>
      <dc:creator>Helloyt</dc:creator>
      <dc:date>2023-07-25T02:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 EIM none-correctale error cleared SRAM cause program crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1692035#M25401</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188361"&gt;@Helloyt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;When the MCU detects a non-correctable ECC error, it fetches the HardFault_Handler vector (or BusFault_Handler if enabled).&lt;/P&gt;
&lt;P&gt;But because the vector is in SRAM_U, it detects another non-correctable ECC error during the vector fetching.&lt;/P&gt;
&lt;P&gt;And this escalates the hard fault exception to Core Lockup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you leave the vector table in the flash?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Declare symbol&lt;/P&gt;
&lt;P&gt;__flash_vector_table__&lt;/P&gt;
&lt;P&gt;in the startup.h file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And define in the linker file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1690272393492.png" style="width: 563px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233462i9AD78A9D3C5D456C/image-dimensions/563x214?v=v2" width="563" height="214" role="button" title="danielmartynek_0-1690272393492.png" alt="danielmartynek_0-1690272393492.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;void HardFault_Handler(void){
   while(1){}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 09:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1692035#M25401</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-07-25T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 EIM none-correctale error cleared SRAM cause program crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1692097#M25406</link>
      <description>&lt;P&gt;That's amazing ! the code runs well !&lt;/P&gt;&lt;P&gt;thanks for your patience and wisdom.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_0-1690274553151.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233476i1B0835398C36E007/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_0-1690274553151.png" alt="Helloyt_0-1690274553151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Helloyt_1-1690274588315.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233479i387A974ABF75D066/image-size/large?v=v2&amp;amp;px=999" role="button" title="Helloyt_1-1690274588315.png" alt="Helloyt_1-1690274588315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 08:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-EIM-none-correctale-error-cleared-SRAM-cause-program/m-p/1692097#M25406</guid>
      <dc:creator>Helloyt</dc:creator>
      <dc:date>2023-07-25T08:45:54Z</dc:date>
    </item>
  </channel>
</rss>

