<?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: S32K324 reset failure and cache issues in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/1665109#M23710</link>
    <description>&lt;P&gt;thanks for support, Daniel!&lt;/P&gt;&lt;P&gt;this two issues have been solved. The first one is excatly the point you mentioned, and I just clear the counter everytime it functional reset, but it seems this problem has been fixed in MCAL V2.0.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the recond problem, FAE suggested me to change the MCAL configuration of FLS module. But the risk of using API cacheclean he had no idea either.&lt;/P&gt;&lt;P&gt;Anyway, thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;xinping&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 10:35:00 GMT</pubDate>
    <dc:creator>xinping</dc:creator>
    <dc:date>2023-06-07T10:35:00Z</dc:date>
    <item>
      <title>S32K324 reset failure and cache issues</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/1659585#M23396</link>
      <description>&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;recently I met two issues during developing ECU with S32K324.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. while debugging the software with PEmicro and S32DS, i reset the program through the host computer(a CAN protocol) sending a message. No matter which reset methods i used( &lt;STRONG&gt;API mcu_performreset() or watchdog timeout&lt;/STRONG&gt;), at the ninth time reset, the program would always dead in a ram&amp;nbsp; fixed address(this address can be found and actually variables exist there). Even i marked a breakpoint at the startup function, the program could not stop. Why could this issue happen? When the chip is not in debug mode, there isn't this problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. after reprogram the flash address, i would like to calculate the crc value of the programmed data to checkout whether there are wirtten correctly or not. However,&amp;nbsp; when i enabled the cache funciton, everytime the global variables of the read data are not the latest, actually i even have not idea how were the variables changed, cause the data were neither the same with the data in flash nor the same with the last data. The made the CRC value didn't match the value on host computer. Finally i tried to use the API&amp;nbsp;&lt;STRONG&gt;sys_m7_cache_clean()&amp;nbsp;&lt;/STRONG&gt;to clean the cache data before reading the flash data, in this case, the variables could be updated and the crc check was also passed.&amp;nbsp; &lt;STRONG&gt;I would like to konw：are there any risks if i use the api &amp;nbsp;&amp;nbsp;sys_m7_cache_clean()&amp;nbsp;in my app code? Why could the data not be read immedately after written?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i am looking foward to a supprot and response. thanks!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 07:21:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/1659585#M23396</guid>
      <dc:creator>xinping</dc:creator>
      <dc:date>2023-05-30T07:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 reset failure and cache issues</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/1660653#M23431</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207458"&gt;@xinping&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;Please have a look at the Reset escalation in the RM,&lt;/P&gt;
&lt;P&gt;Section &lt;STRONG&gt;31.4.3.4.2 Reset escalation&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You mentioned the WDOG (SWT) which is a functional reset.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;33.7.7 Functional reset escalation&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"If the counter reaches the value in the FRET field of the RGM_FRET register, MC_RGM asserts a destructive reset."&lt;/P&gt;
&lt;P&gt;The reset counter can be cleared by writing 0xF to FREC between reset events.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&lt;/P&gt;
&lt;P&gt;This is the purpose of the cache, the data are read from the cache and not the actual flash memory on a hit.&lt;/P&gt;
&lt;P&gt;Seems like you are using the IP RTD drivers.&lt;/P&gt;
&lt;P&gt;The Cache_Ip driver has this APIs that can be used for the purpose.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cache_Ip_Invalidate()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cache_Ip_InvalidateByAddr()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cache_Ip_Clean()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cache_Ip_CleanByAddr()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The description of the functions can be found in &lt;STRONG&gt;Cache_Ip.h&lt;/STRONG&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 08:59:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/1660653#M23431</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-05-31T08:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 reset failure and cache issues</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/1665109#M23710</link>
      <description>&lt;P&gt;thanks for support, Daniel!&lt;/P&gt;&lt;P&gt;this two issues have been solved. The first one is excatly the point you mentioned, and I just clear the counter everytime it functional reset, but it seems this problem has been fixed in MCAL V2.0.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the recond problem, FAE suggested me to change the MCAL configuration of FLS module. But the risk of using API cacheclean he had no idea either.&lt;/P&gt;&lt;P&gt;Anyway, thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;xinping&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 10:35:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/1665109#M23710</guid>
      <dc:creator>xinping</dc:creator>
      <dc:date>2023-06-07T10:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 reset failure and cache issues</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/2350313#M57914</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found this forum post by searching for people experiencing the same issue of reset escalation at the 9th reset attempt. I have verified that this issue is still present without the debugger attached for our device on at least one system. The issue is that this escalation to a hung state is only supposed to take place after the FRET reset count is met, and then the DRET count is met after escalation to destructive resets. However, the chip hangs in standby mode after the 9th reset no matter what value is written to the FRET or DRET registers. We have 0xF in each register, so it should hang on the 30th reset is my understanding. Yet even changing the value in the threshold registers we still see the chip hang on the 9th reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clearing the counter register for the functional reset does prevent this issue from happening. But we would like to understand why we cannot configure the threshold to trigger after the maximum possible threshold count of resets instead.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 19:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-reset-failure-and-cache-issues/m-p/2350313#M57914</guid>
      <dc:creator>mitchell_ament</dc:creator>
      <dc:date>2026-04-13T19:59:35Z</dc:date>
    </item>
  </channel>
</rss>

