<?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 S32G3 FlexCAN loop-back mode issue in S32G</title>
    <link>https://community.nxp.com/t5/S32G/S32G3-FlexCAN-loop-back-mode-issue/m-p/1733414#M4925</link>
    <description>&lt;P&gt;We are not using Linux, but our own RTOS. We created a FlexCan driver test and it's been fine on boards like S32R45, S32G2. But I recently found S32G3 unhappy with it. The pseudo code is like below:&lt;/P&gt;&lt;PRE&gt;// loop-back off. MCR is 0x5921203f when this is executed (freeze mode)&lt;BR /&gt;CTRL1 = 0x9392004;&lt;BR /&gt;// get out of freeze mode&lt;BR /&gt;MCR = 0x0021_203f;&lt;BR /&gt;//&amp;nbsp;CAN bus 0 is used (0x401B4000h)&lt;BR /&gt;send_msg(can0);&lt;BR /&gt;// on board like S32R45, S32G-VNP-RDB2, this&amp;nbsp;rcv_msg fails to recv anything as expected. But on S32G-VNP-RDB3, this recvs msg.&lt;BR /&gt;if (rcv_msg(can0) == OK) ERROR();   // &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Problematic :(&lt;BR /&gt;// go to freeze mode (looped till FRZACK at BIT24 to be on)&lt;BR /&gt;MCR = 0x5921_203f;&lt;BR /&gt;// loop-back on&lt;BR /&gt;CTRL1 = 0x9393004;&lt;BR /&gt;// get out of freeze mode&lt;BR /&gt;MCR = 0x0021_203f;&lt;BR /&gt;//&amp;nbsp;CAN bus 0 is used (0x401B4000h)&lt;BR /&gt;send_msg(can0);&lt;BR /&gt;// now we expect to recv what we send&lt;BR /&gt;if (rcv_msg(can0) != OK) ERROR();&lt;/PRE&gt;&lt;P&gt;If running on can1 (0x401BE000h) on S32G3, this test is also OK.&lt;/P&gt;&lt;P&gt;Could any one throw some light? What should I try differently? Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 00:03:35 GMT</pubDate>
    <dc:creator>ghs_khuang</dc:creator>
    <dc:date>2023-10-04T00:03:35Z</dc:date>
    <item>
      <title>S32G3 FlexCAN loop-back mode issue</title>
      <link>https://community.nxp.com/t5/S32G/S32G3-FlexCAN-loop-back-mode-issue/m-p/1733414#M4925</link>
      <description>&lt;P&gt;We are not using Linux, but our own RTOS. We created a FlexCan driver test and it's been fine on boards like S32R45, S32G2. But I recently found S32G3 unhappy with it. The pseudo code is like below:&lt;/P&gt;&lt;PRE&gt;// loop-back off. MCR is 0x5921203f when this is executed (freeze mode)&lt;BR /&gt;CTRL1 = 0x9392004;&lt;BR /&gt;// get out of freeze mode&lt;BR /&gt;MCR = 0x0021_203f;&lt;BR /&gt;//&amp;nbsp;CAN bus 0 is used (0x401B4000h)&lt;BR /&gt;send_msg(can0);&lt;BR /&gt;// on board like S32R45, S32G-VNP-RDB2, this&amp;nbsp;rcv_msg fails to recv anything as expected. But on S32G-VNP-RDB3, this recvs msg.&lt;BR /&gt;if (rcv_msg(can0) == OK) ERROR();   // &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Problematic :(&lt;BR /&gt;// go to freeze mode (looped till FRZACK at BIT24 to be on)&lt;BR /&gt;MCR = 0x5921_203f;&lt;BR /&gt;// loop-back on&lt;BR /&gt;CTRL1 = 0x9393004;&lt;BR /&gt;// get out of freeze mode&lt;BR /&gt;MCR = 0x0021_203f;&lt;BR /&gt;//&amp;nbsp;CAN bus 0 is used (0x401B4000h)&lt;BR /&gt;send_msg(can0);&lt;BR /&gt;// now we expect to recv what we send&lt;BR /&gt;if (rcv_msg(can0) != OK) ERROR();&lt;/PRE&gt;&lt;P&gt;If running on can1 (0x401BE000h) on S32G3, this test is also OK.&lt;/P&gt;&lt;P&gt;Could any one throw some light? What should I try differently? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 00:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G3-FlexCAN-loop-back-mode-issue/m-p/1733414#M4925</guid>
      <dc:creator>ghs_khuang</dc:creator>
      <dc:date>2023-10-04T00:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32G3 FlexCAN loop-back mode issue</title>
      <link>https://community.nxp.com/t5/S32G/S32G3-FlexCAN-loop-back-mode-issue/m-p/1733894#M4936</link>
      <description>&lt;P&gt;this can be closed. It's caused by something connected to the can bus 0:( I work remotely so I didn't know that was connected....&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 18:23:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G3-FlexCAN-loop-back-mode-issue/m-p/1733894#M4936</guid>
      <dc:creator>ghs_khuang</dc:creator>
      <dc:date>2023-10-04T18:23:07Z</dc:date>
    </item>
  </channel>
</rss>

