<?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>S32GのトピックRe: How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
    <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2142189#M14335</link>
    <description>Hi Joey,&lt;BR /&gt;Yes, that is correct. Could you provide some advice on this? Thank you.&lt;BR /&gt;BR,&lt;BR /&gt;Ventury</description>
    <pubDate>Tue, 29 Jul 2025 03:21:00 GMT</pubDate>
    <dc:creator>ventury</dc:creator>
    <dc:date>2025-07-29T03:21:00Z</dc:date>
    <item>
      <title>How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
      <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2139224#M14245</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;I'm using&amp;nbsp;FlexCAN&amp;nbsp;on the&amp;nbsp;S32G platform. Currently, when FlexCAN receives an&amp;nbsp;error frame interrupt, it creates a CAN frame and fills the&amp;nbsp;CAN ID&amp;nbsp;and&amp;nbsp;payload&amp;nbsp;with values from the&amp;nbsp;error register. However, I'm unable to determine&amp;nbsp;which specific CAN frame caused the bus error.&lt;/P&gt;&lt;P class=""&gt;In&amp;nbsp;CANoe, we can see the&amp;nbsp;error frame&amp;nbsp;with the correct&amp;nbsp;CAN ID&amp;nbsp;and&amp;nbsp;payload&amp;nbsp;in the trace window.&amp;nbsp;Is there a way to retrieve the error frame's CAN ID and payload programmatically, similar to CANoe?&lt;/P&gt;&lt;P class=""&gt;I’d appreciate any guidance on this. Thanks in advance!&lt;/P&gt;&lt;P class=""&gt;&lt;LI-PRODUCT title="S32G2" id="S32G2"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 09:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2139224#M14245</guid>
      <dc:creator>ventury</dc:creator>
      <dc:date>2025-07-23T09:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
      <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2139814#M14257</link>
      <description>&lt;P&gt;hi,&lt;SPAN&gt;ventury&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for contacting us.&lt;/P&gt;
&lt;P&gt;are you using M or A core for FlexCAN? Which version of RTD are you using？&lt;/P&gt;
&lt;P&gt;Do you have an ID filter for CAN frame?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 04:03:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2139814#M14257</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2025-07-24T04:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
      <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2140462#M14280</link>
      <description>Hi Joey,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response. Here are the details you requested:&lt;BR /&gt;&lt;BR /&gt;Core Type: Using A-core with Linux, kernel version 5.15.119-rt65+&lt;BR /&gt;RTD Version: I'm not sure how to check the RTD version in this setup&lt;BR /&gt;ID Filter: No ID filter configuration is currently applied&lt;BR /&gt;&lt;BR /&gt;Additional information:&lt;BR /&gt;I'm using the Linux SocketCAN framework (can-raw)&lt;BR /&gt;Error frame capture is enabled using:&lt;BR /&gt;uint32_t errMask = 0xffffffff;&lt;BR /&gt;setsockopt(can_fd, SOL_CAN_RAW, CAN_RAW_ERR_FILTER, &amp;amp;errMask, sizeof(errMask));&lt;BR /&gt;From examining the FlexCAN driver code (flexcan_irq_bus_err function), I can see that error frames are generated using values from the error registers, but I'm not getting the actual CAN ID and payload of the frame that caused the error.&lt;BR /&gt;&lt;BR /&gt;I'd appreciate any guidance on how to retrieve the original offending frame information.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;ventury</description>
      <pubDate>Fri, 25 Jul 2025 02:24:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2140462#M14280</guid>
      <dc:creator>ventury</dc:creator>
      <dc:date>2025-07-25T02:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
      <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2142176#M14333</link>
      <description>&lt;P&gt;hi,&lt;SPAN&gt;ventury&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;Do you mean that when you are using the Flexcan of S32G, you can detect CAN error frames, but you cannot know the ID and payload of this error frame?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 02:57:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2142176#M14333</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2025-07-29T02:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
      <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2142189#M14335</link>
      <description>Hi Joey,&lt;BR /&gt;Yes, that is correct. Could you provide some advice on this? Thank you.&lt;BR /&gt;BR,&lt;BR /&gt;Ventury</description>
      <pubDate>Tue, 29 Jul 2025 03:21:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2142189#M14335</guid>
      <dc:creator>ventury</dc:creator>
      <dc:date>2025-07-29T03:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
      <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2143130#M14367</link>
      <description>&lt;P&gt;hi,&lt;SPAN&gt;ventury&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;Why do you want to get the error frame? The error frame will be abandoned in&amp;nbsp;the normal usage scenarios.&lt;/P&gt;
&lt;P&gt;If the protocol level frame occurs error, the S32G can get the frame and operate it.&amp;nbsp; For flexcan, the relevant states register will be changed when S32G receive the error frame.&lt;/P&gt;
&lt;P&gt;I think you should consider the kind of error frame. such as, it is the error of CRC on one frame, you can try to check the memory for the frame ID and payload.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it can help you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 03:17:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2143130#M14367</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2025-07-30T03:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
      <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2303627#M15917</link>
      <description>Hello, Joey_z. I would like to follow up on the above question and ask whether the FlexCAN/llceCan controller of the S32G records the "original frame that triggers the error" through a dedicated register?</description>
      <pubDate>Fri, 30 Jan 2026 10:00:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2303627#M15917</guid>
      <dc:creator>FengDuoLi1</dc:creator>
      <dc:date>2026-01-30T10:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Error Frame CAN ID and Payload in FlexCAN (S32G)</title>
      <link>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2303634#M15918</link>
      <description>&lt;P&gt;hi,&lt;SPAN&gt;FengDuoLi1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can post your question through this link and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/24963"&gt;@Joey&lt;/a&gt;. I will continue to support you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.nxp.com" target="_blank"&gt;https://support.nxp.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 10:06:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-to-Retrieve-Error-Frame-CAN-ID-and-Payload-in-FlexCAN-S32G/m-p/2303634#M15918</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2026-01-30T10:06:01Z</dc:date>
    </item>
  </channel>
</rss>

