<?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: S32K3 Noncorrectable Error of FLEXCAN in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2124124#M50302</link>
    <description>&lt;P&gt;Thanks Petr, I did notice the NOTE, but i still have 3 confusions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. I couldn't find the memory location of the Tx_SMB, Rx_SMB0, Rx_SMB1 you listed above. besides the RXMGMASK, RXFGMASK, RX14MASK, RX15MASK are not in 0X0AA0~0XAAF and &lt;SPAN&gt;RXFIR_0~RXFIR_5 are not in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0x0A80~0xA9F&amp;nbsp;&lt;/SPAN&gt;in my manual. and it seems that&amp;nbsp;&lt;SPAN&gt;RXFIR_0~RXFIR_5 don't even need to be initialized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoinFish_0-1750950492012.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344890iB8E2ED467EDB7D76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CoinFish_0-1750950492012.png" alt="CoinFish_0-1750950492012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;I know that certain memory and registers need to be initialized, but there seems to be no clear instructions for initialization in the manual. What i did is, set CTRL2[WRMFRZ] = 1; clear the memory and registers that need to be initialized to be 0 and then set&amp;nbsp;&amp;nbsp;CTRL2[WRMFRZ] = 0; am i right? and what is the principle behind it?&lt;/P&gt;&lt;P&gt;3. Why the FLEXCAN reads more memories than i set? I thought MAXMB limits the range of FLEXCAN reads.&lt;/P&gt;&lt;P&gt;Can you explain it more clearly and in detail? Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2025 15:24:55 GMT</pubDate>
    <dc:creator>CoinFish</dc:creator>
    <dc:date>2025-06-26T15:24:55Z</dc:date>
    <item>
      <title>S32K3 Noncorrectable Error of FLEXCAN</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2123861#M50283</link>
      <description>&lt;P&gt;I am porting the CAN diagnostic communication protocol stack for mpc56xx to the S32K3 platform. I am currently modifying the CAN driver layer. I am not using the official CAN driver, but modifying the original driver.&lt;/P&gt;&lt;P&gt;I initialized can2 and can3. Shorted them to form a CAN network. CAN2 sends 0x262 and receives 0x263, CAN3 sends 0x263 and receives 0x262. The terminal resistors are also configured correctly. The problem is that after CAN2 and CAN3 successfully sent a message, both triggered a noncorrectable error and entered freeze mode.&lt;/P&gt;&lt;P&gt;The MCR[MAXMB]for can2 and can3 are 0x3f and 0x1f &lt;SPAN class=""&gt;respectively.&amp;nbsp;&lt;SPAN&gt;I did not initialize all MB of RAM space, but only MAXMB amount of RAM.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When the error happened:&lt;/P&gt;&lt;P&gt;for can2: RERRAR[ERRADDR]=0X0548;&amp;nbsp;RERRAR[SAID]=0X1;&amp;nbsp;RERRAR[NCE]=0X1;&amp;nbsp; ERRSR[FANCEIF] = 1&lt;/P&gt;&lt;P&gt;for can3: RERRAR[ERRADDR]=0X02C8;&amp;nbsp;RERRAR[SAID]=0X1;&amp;nbsp;RERRAR[NCE]=0X1;&amp;nbsp;&amp;nbsp;ERRSR[FANCEIF] = 1&lt;/P&gt;&lt;P&gt;Some other information：&lt;/P&gt;&lt;P&gt;a. if can2 and can3 are not short-circuited, messages can be sent and received normally.&lt;/P&gt;&lt;P&gt;b.&amp;nbsp;If not only &lt;SPAN class=""&gt;&lt;SPAN&gt;initialize&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;maxmb of RAM space, but all MB ram space, the noncorrectable error will not happen,&amp;nbsp;send and receive normally. (about this,&amp;nbsp;&lt;SPAN class=""&gt;I guess the flexcan accessed the uninitialized RAM space, but maxmb has limited the access location of flexcan. I don't know why this happened.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;If any additional information is needed please let me know, this problem has been bothering me for over a week now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 09:18:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2123861#M50283</guid>
      <dc:creator>CoinFish</dc:creator>
      <dc:date>2025-06-26T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Noncorrectable Error of FLEXCAN</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2124018#M50295</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;S32K3&amp;nbsp;FlexCAN supports detection and correction of errors in memory read accesses. This ECC mechanism is enabled by default. In such case you should initialize necessary memory spaces before module is put in Normal mode.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1750943002303.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344871i09E4D55DC6D4211E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_0-1750943002303.png" alt="PetrS_0-1750943002303.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So besides MB area you also need to&amp;nbsp;initialize some other registers , including RXFIR, RXxxMASK, Tx_SMB, Rx_SMB, as shown in below offsets&lt;/P&gt;
&lt;P&gt;/* init the area 0x0A80~0xA9F; RXFIR_0~RXFIR_5 + Reserved space*/&lt;BR /&gt;/* init the area 0x0AA0~0xAAF: RXMGMASK, RXFGMASK, RX14MASK, RX15MASK, */&lt;BR /&gt;/* init the area 0x0AB0~0xADF: Tx_SMB, Rx_SMB0, Rx_SMB1, */&lt;/P&gt;
&lt;P&gt;Or disable ECC mechanism at all by setting MECR[ECCDIS] bit. See more in chapter&amp;nbsp;73.3.15 Detection and correction of memory errors.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 13:16:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2124018#M50295</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-06-26T13:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Noncorrectable Error of FLEXCAN</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2124124#M50302</link>
      <description>&lt;P&gt;Thanks Petr, I did notice the NOTE, but i still have 3 confusions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. I couldn't find the memory location of the Tx_SMB, Rx_SMB0, Rx_SMB1 you listed above. besides the RXMGMASK, RXFGMASK, RX14MASK, RX15MASK are not in 0X0AA0~0XAAF and &lt;SPAN&gt;RXFIR_0~RXFIR_5 are not in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0x0A80~0xA9F&amp;nbsp;&lt;/SPAN&gt;in my manual. and it seems that&amp;nbsp;&lt;SPAN&gt;RXFIR_0~RXFIR_5 don't even need to be initialized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoinFish_0-1750950492012.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344890iB8E2ED467EDB7D76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CoinFish_0-1750950492012.png" alt="CoinFish_0-1750950492012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;I know that certain memory and registers need to be initialized, but there seems to be no clear instructions for initialization in the manual. What i did is, set CTRL2[WRMFRZ] = 1; clear the memory and registers that need to be initialized to be 0 and then set&amp;nbsp;&amp;nbsp;CTRL2[WRMFRZ] = 0; am i right? and what is the principle behind it?&lt;/P&gt;&lt;P&gt;3. Why the FLEXCAN reads more memories than i set? I thought MAXMB limits the range of FLEXCAN reads.&lt;/P&gt;&lt;P&gt;Can you explain it more clearly and in detail? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 15:24:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2124124#M50302</guid>
      <dc:creator>CoinFish</dc:creator>
      <dc:date>2025-06-26T15:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Noncorrectable Error of FLEXCAN</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2124462#M50313</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1) those addresses are shown in ERRIAR register chapter (table 522)&lt;BR /&gt;2) yes, a&amp;nbsp;&lt;SPAN&gt;CTRL2[WRMFRZ] usage is right. A reason for initialization is to update parity bits in memory properly.&amp;nbsp;FlexCAN supports detection and correction of errors in memory read accesses. Each byte of FlexCAN memory is associated with five parity bits.&amp;nbsp;When a read access is performed, the parity bits are used to calculate a syndrome, which indicates the error in each byte.&lt;BR /&gt;3) yes, module should not use space outside area specified by MAXMB. But hard to say more without knowing full config and code used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 06:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Noncorrectable-Error-of-FLEXCAN/m-p/2124462#M50313</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-06-27T06:21:14Z</dc:date>
    </item>
  </channel>
</rss>

