<?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: S32K312 C40 debugger issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1839335#M33717</link>
    <description>&lt;P&gt;I also had to change &lt;STRONG&gt;rasr[3]&lt;/STRONG&gt; for DFLASH&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2024 12:02:08 GMT</pubDate>
    <dc:creator>Novalis</dc:creator>
    <dc:date>2024-04-02T12:02:08Z</dc:date>
    <item>
      <title>S32K312 C40 debugger issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1643634#M22570</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I have an issue with S32K312 and C40 Ip when trying to erase parts of the data flash after reading data flash memory. I attached a zip with pictures of the issue. Similar to&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/S32K3-Read-Write-Flash-with-C40-Driver/m-p/1380459#M13058" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K3-Read-Write-Flash-with-C40-Driver/m-p/1380459#M13058&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If we start off by doing a erase, write, and read of data flash everything works ok, we can also see in Memory Viewer that the memory updates correctly. (See pictures 1_erase_ok.png, 2_write_ok.png &amp;amp; 3_read_ok.png).&lt;/P&gt;&lt;P&gt;However, if we do a new erase and write after the read operation nothing happens, Memory Viewer doesnt update and if we try to read the memory again we get same results as before. (See picture 4_erase_not_ok.png, 5_write_not_ok.png).&lt;/P&gt;&lt;P&gt;And after a reset of the MCU, data flash is updated to the correct value (See picture 6_memory_update_after_reset.png)&lt;/P&gt;&lt;P&gt;I found a similar issue where they said it was the old version of the SDK that caused it. I'm using S32K312, SDK RTM 3.0.0 together with a PEMicro multilink FX debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 13:30:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1643634#M22570</guid>
      <dc:creator>rakketi</dc:creator>
      <dc:date>2023-05-03T13:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 C40 debugger issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1644429#M22587</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/163468"&gt;@rakketi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is because of the cache.&lt;/P&gt;
&lt;P&gt;The cache can be either invalidated.&lt;/P&gt;
&lt;P&gt;Call this API &lt;STRONG&gt;Cache_Ip_InvalidateByAddr(CACHE_IP_DATA, TargetAddress, 32)&lt;/STRONG&gt; after programming or before reading the data back.&lt;/P&gt;
&lt;P&gt;Or disable the cache in MPU setting.&lt;/P&gt;
&lt;P&gt;In the "system.c" function "SystemInit", change &lt;STRONG&gt;rasr[2]=0x060B002BUL&lt;/STRONG&gt; to &lt;STRONG&gt;rasr[2]=0x0608002BUL. &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This sets the whole Flash as non-cacheable.&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>Thu, 04 May 2023 08:06:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1644429#M22587</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-05-04T08:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 C40 debugger issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1645242#M22630</link>
      <description>&lt;P&gt;I can confirm that it works. Thanks for the help Daniel.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 06:12:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1645242#M22630</guid>
      <dc:creator>rakketi</dc:creator>
      <dc:date>2023-05-05T06:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 C40 debugger issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1839335#M33717</link>
      <description>&lt;P&gt;I also had to change &lt;STRONG&gt;rasr[3]&lt;/STRONG&gt; for DFLASH&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 12:02:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-C40-debugger-issue/m-p/1839335#M33717</guid>
      <dc:creator>Novalis</dc:creator>
      <dc:date>2024-04-02T12:02:08Z</dc:date>
    </item>
  </channel>
</rss>

