<?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: S32K396 SPD DEMO in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2091302#M48423</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When I disable NCF2 group in the configuration of EMCEM, there will be no initialization failure or reset (FCCU_RST) due to these reasons.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ok, that is expected&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;But it still fails in other parts of the emcem initialization function, and I found that when FCCU returns from the CONFIG state to the NORMAL state, it does not enter the NORMAL state, but enters the FAULT state.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Most probably there is pending fault, and as soon as you enable it and save configuration the pending fault will propagate to your FCCU fail sate machine and trigger the ALARM state.&lt;/P&gt;
&lt;P&gt;Before entering configuration phase, do a check if there are no latched faults.&lt;/P&gt;
&lt;P&gt;At least this seems to me as the root cause of the described behavior.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 08:47:51 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2025-05-05T08:47:51Z</dc:date>
    <item>
      <title>S32K396 SPD DEMO</title>
      <link>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2087869#M48203</link>
      <description>&lt;P&gt;S32DS version 3.6.0, RTD version 4.0.0HF02, SPD version S32K396_1.0.0. When I was porting the demo to the IP layer, I encountered this error in bist, which was an&amp;nbsp;imprecise bus fault. What caused this error? It is a probability of occurrence, with a probability of approximately 50%. I have made some changes to the emcem code because after bist is completed, there will definitely be precise bus faults when accessing the au32InjectedFaults variable, and faults will also occur during erm initialization.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_0-1745806044202.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335091i67705D47E57998F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_0-1745806044202.png" alt="Jason22_0-1745806044202.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="Jason22_1-1745806063938.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335092i61F322951457CB03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_1-1745806063938.png" alt="Jason22_1-1745806063938.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_2-1745806070192.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335093i80982279197D18BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_2-1745806070192.png" alt="Jason22_2-1745806070192.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>Mon, 28 Apr 2025 02:10:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2087869#M48203</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2025-04-28T02:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 SPD DEMO</title>
      <link>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2088384#M48246</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;There must be something wrong in the integration.&lt;/P&gt;
&lt;P&gt;On our side the S32k396 non-DS example is running correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;au32InjectedFaults -We don't understand why you put orimi into code for assigment to bss, for such purpose there is memMap files where you can redefine. You will ahve a conflicts with declarations locations where you did not placed _atribute(bss).&lt;/P&gt;
&lt;P&gt;It enough to search in eMcem_MemMap.h section: EMCEM_START_SEC_VAR_NO_INIT_UNSPECIFIED_PERSIST_RESET&lt;/P&gt;
&lt;P&gt;and if you put it into BSS, the array will always be initialized to zero, what is against nature of that array which carries information of injected fault details . (specifically DCM channel)&lt;/P&gt;
&lt;P&gt;REM of eMcem_Erm_Init() seems to me like incorectly set clock if the fucntion crash. So check the clocks for ERM module.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_0-1745841609776.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335255iB1A1206DAA4E616D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="petervlna_0-1745841609776.png" alt="petervlna_0-1745841609776.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Strange is also connection of BIST problem with eMcem module. Especially if it throws Bist_StcuUnlock() error, you should check BIST clocks.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_1-1745841684313.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335256iCC0B296DECAF6FC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="petervlna_1-1745841684313.png" alt="petervlna_1-1745841684313.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;You could check linker file if it is same in DS as in the SPD demo code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:02:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2088384#M48246</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2025-04-28T12:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 SPD DEMO</title>
      <link>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2088857#M48261</link>
      <description>&lt;P&gt;Hello, thank you for your reply.&lt;BR /&gt;1 . &lt;SPAN&gt;au32InjectedFaults&lt;/SPAN&gt;&lt;BR /&gt;If I had not modified the variable, then when I run Bist_Run and reset it, accessing the variable in &lt;SPAN&gt;eMcem_Dcm_ClearNCFFaults&lt;/SPAN&gt; will definitely result in a bus fault, where the first two values of the variable do not match the memory.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_0-1745895640004.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335376i41508E76FCF0F5A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_0-1745895640004.png" alt="Jason22_0-1745895640004.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="Jason22_1-1745895654015.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335377i1D284F80ECE35221/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_1-1745895654015.png" alt="Jason22_1-1745895654015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2.&amp;nbsp; The clocks of STCU and ERM&lt;BR /&gt;There seems to be no problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_2-1745895686992.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335378i6D6C267EF32C1F0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_2-1745895686992.png" alt="Jason22_2-1745895686992.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="Jason22_3-1745895699298.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335379i83548D3CF12B6DA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_3-1745895699298.png" alt="Jason22_3-1745895699298.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_4-1745895718722.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335380i5F14D4DB4E8F5AF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_4-1745895718722.png" alt="Jason22_4-1745895718722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3 . linker file&lt;BR /&gt;I copied the linker file from the demo.&lt;/P&gt;&lt;P&gt;4. EMcemInit failed&lt;BR /&gt;Sometimes, in the &lt;SPAN&gt;eMcem_Fccu_ExecuteOperationAndConfigureCtrlReg&lt;/SPAN&gt; function, there may be failures in the &lt;SPAN&gt;eMcem_Fccu_TestAndLockFCCUAccess&lt;/SPAN&gt; function or the &lt;SPAN&gt;eMcem_Fccu_UnlockFCCUAccess&lt;/SPAN&gt; function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_6-1745896248977.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335383iA047B7AB89F96295/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_6-1745896248977.png" alt="Jason22_6-1745896248977.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="Jason22_7-1745896273632.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335384iBB595195BD1BF97D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_7-1745896273632.png" alt="Jason22_7-1745896273632.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. other&lt;BR /&gt;I copied startup_cm7. s from the demo and changed MAIN_CORE to 0; The Optimization Level is - O0;&amp;nbsp;&lt;SPAN&gt;All the results were obtained after performing a POR&amp;nbsp; and then attaching the PE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_5-1745895749606.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335381i7D1314350C03E3E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_5-1745895749606.png" alt="Jason22_5-1745895749606.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 03:21:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2088857#M48261</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2025-04-29T03:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 SPD DEMO</title>
      <link>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2089323#M48292</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It looks like you have some NCF faults latched which you are not erasing / not able to erase.&lt;/P&gt;
&lt;P&gt;It would be good if you could share some screenshots of NCF status registers (NCF_S) and K3 has fault details in DCMROD registers.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 11:33:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2089323#M48292</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2025-04-29T11:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 SPD DEMO</title>
      <link>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2089402#M48299</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don't have a screenshot now, but during the debugging process, I found that the second bit of NCF_S0 is 1, and sometimes these three bits of DCMROD4 are 1, and these bits of SR1 of ERM0 are 1, corresponding to addresses 0x10338 and 0x10340.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_0-1745933082649.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335572i3657124E502DAEF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_0-1745933082649.png" alt="Jason22_0-1745933082649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_1-1745933216184.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335574iEAE62B661C1C69EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_1-1745933216184.png" alt="Jason22_1-1745933216184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I disable NCF2 group in the configuration of EMCEM, there will be no initialization failure or reset (FCCU_RST) due to these reasons.&lt;/P&gt;&lt;P&gt;But it still fails in other parts of the emcem initialization function, and I found that when FCCU returns from the CONFIG state to the NORMAL state, it does not enter the NORMAL state, but enters the FAULT state.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2089402#M48299</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2025-04-29T13:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 SPD DEMO</title>
      <link>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2091302#M48423</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When I disable NCF2 group in the configuration of EMCEM, there will be no initialization failure or reset (FCCU_RST) due to these reasons.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ok, that is expected&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;But it still fails in other parts of the emcem initialization function, and I found that when FCCU returns from the CONFIG state to the NORMAL state, it does not enter the NORMAL state, but enters the FAULT state.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Most probably there is pending fault, and as soon as you enable it and save configuration the pending fault will propagate to your FCCU fail sate machine and trigger the ALARM state.&lt;/P&gt;
&lt;P&gt;Before entering configuration phase, do a check if there are no latched faults.&lt;/P&gt;
&lt;P&gt;At least this seems to me as the root cause of the described behavior.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 08:47:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2091302#M48423</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2025-05-05T08:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32K396 SPD DEMO</title>
      <link>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2091787#M48451</link>
      <description>&lt;P&gt;&lt;SPAN&gt;screenshots:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_0-1746498483628.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336262iD843FE90A06E1E9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_0-1746498483628.png" alt="Jason22_0-1746498483628.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="Jason22_1-1746498509557.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336263i94FE5C8D14C12298/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_1-1746498509557.png" alt="Jason22_1-1746498509557.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="Jason22_2-1746498560560.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336264iBAC4ED61CFA5A6F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_2-1746498560560.png" alt="Jason22_2-1746498560560.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_3-1746498578651.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336265i18878C2006934F64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_3-1746498578651.png" alt="Jason22_3-1746498578651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_4-1746498592129.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336266iF0005F91F8CEF2D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_4-1746498592129.png" alt="Jason22_4-1746498592129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_5-1746498603963.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336267i889FF482ADC3CE86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_5-1746498603963.png" alt="Jason22_5-1746498603963.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem seems to have been solved, but I am using the startup_cm7. s and link file of SPD1.0.5, and the driver files is still S32K396SPD1.0.0. The driver files has not been modified, and there are no issues with Bist_Run and &lt;SPAN&gt;eMcem_Init&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 02:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K396-SPD-DEMO/m-p/2091787#M48451</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2025-05-06T02:33:52Z</dc:date>
    </item>
  </channel>
</rss>

