<?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>S32KのトピックRe: S32K144 CAN  Send  Problem</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841874#M33894</link>
    <description>&lt;P&gt;Hi@&lt;SPAN&gt;chumcu&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;ERRINT：&lt;/P&gt;
&lt;P&gt;This bit indicates that at least one of the error bits (BIT1ERR, BIT0ERR, ACKERR, CRCERR, FRMERR,&lt;BR /&gt;or STFERR) is set. If the corresponding mask bit CTRL1[ERRMSK] is set, an interrupt is generated to the&lt;BR /&gt;CPU. T&lt;STRONG&gt;his bit is cleared by writing it to 1&lt;/STRONG&gt;. Writing 0 has no effect.&lt;/P&gt;
&lt;P&gt;默认你如果调用错误中断处理程序的时候，会帮你清ERRINT寄存器。&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;默认bus-off是自动恢复的。&lt;/P&gt;
&lt;P&gt;1.你的第一个需求会存在总线不会进入bus-off状态&lt;/P&gt;
&lt;P&gt;“如果在系统启动期间只有一个节点正在运行，则由于确认错误（由错误和状态寄存器中的 ACKERR 位指示），其 TXERRCNT 在尝试发送的每条消息中都会增加。 转换到错误被动状态后，TXERRCNT 不再因确认错误而递增。因此，器件永远不会进入总线关闭状态”&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.第二个工况理论上会进入bus-off,但是默认bus-off是自动恢复的，所以你不需要操作。&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;针对于第一种工况需要恢复的话，你需要在错误中断处理中判断出该工况，然后重新初始化FlexCAN模块。&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 02:05:15 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2024-04-08T02:05:15Z</dc:date>
    <item>
      <title>S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841685#M33881</link>
      <description>&lt;P&gt;&amp;nbsp; 我用官方S32K144-100EVB 开发板，&lt;STRONG&gt;可以发出CAN报文，&lt;/STRONG&gt;编译器S32DS for arm 2.2。&lt;/P&gt;&lt;P&gt;&amp;nbsp; 问题：但是，&lt;STRONG&gt;拔掉CAN线&lt;/STRONG&gt;，CAN报文&lt;STRONG&gt;消失&lt;/STRONG&gt;，即使CAN线&lt;STRONG&gt;恢复&lt;/STRONG&gt;，CAN报文&lt;STRONG&gt;不恢复&lt;/STRONG&gt;，发现有&lt;STRONG&gt;7个错误&lt;/STRONG&gt;，&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;求帮助&lt;/STRONG&gt;，（1）如何拔掉CAN线，CAN报文不消失，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; （2）CAN线恢复后，CAN报文如何恢复正常，谢谢！&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="错误.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/272307i8C1BED7AA6CFCEAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="错误.JPG" alt="错误.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; I&amp;nbsp; use S32K144-100EVB board can send CAN message , with S32DS for arm 2.2. But&amp;nbsp; when the CAN line is removed, the CAN message disappears, even if the CAN line is recovered, the CAN message is not recovered . When the CAN line is removed,&amp;nbsp; has&amp;nbsp; seven errors&amp;nbsp; in picture above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; How to solve the problem,&amp;nbsp; when CAN line is removed , but CAN message&amp;nbsp; is send normally, Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 05:43:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841685#M33881</guid>
      <dc:creator>chumcu</dc:creator>
      <dc:date>2024-04-07T05:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841705#M33883</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@chumcu" target="_blank"&gt;Hi@chumcu&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;“If during system startup only &lt;STRONG&gt;one node is operating&lt;/STRONG&gt;, then its TXERRCNT increases in&lt;BR /&gt;each message it is trying to transmit, as a result of acknowledge errors (indicated by&lt;BR /&gt;the ACKERR bit in the Error and Status Register). After the transition to Error&lt;BR /&gt;Passive state, TXERRCNT does not increment anymore by acknowledge errors.&lt;BR /&gt;Therefore the device never goes to the Bus Off state.”&lt;/P&gt;
&lt;P&gt;你这种工况就是上面数据手册所描述的，其实FlexCAN此时并没有进入bus-off状态，所有就算你恢复通讯，也不能自动恢复。&lt;/P&gt;
&lt;P&gt;解决的方法，开始通讯的时候保证总线上存在一个以上的正常工作的节点，然后你再断开连接。&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 06:48:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841705#M33883</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-04-07T06:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841749#M33885</link>
      <description>&lt;P&gt;首先感谢你，但实际只有S32K144一个结点，往外发送CAN报文，断开CAN线再恢复CAN线，实际也需要CAN报文恢复，请问这样如何做，如何对哪些寄存器进行啥样的设置，或者你有这样的CAN例子分享吗，谢谢！&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 08:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841749#M33885</guid>
      <dc:creator>chumcu</dc:creator>
      <dc:date>2024-04-07T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841754#M33886</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@chumcu" target="_blank"&gt;Hi@chumcu&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;还是看ESR1（FLTCONF）寄存器来判断错误类型，如果是bus-off，默认可以自动恢复。&lt;/P&gt;
&lt;P&gt;如果你想关闭自动bus-off，可以设置CRTL1-&amp;gt;BOFFREC.&lt;/P&gt;
&lt;P&gt;参考测试代码&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-TX-RX-Error-ISR-test-S32DS2-2/ta-p/1278224" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-TX-RX-Error-ISR-test-S32DS2-2/ta-p/1278224&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 09:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841754#M33886</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-04-07T09:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841792#M33889</link>
      <description>&lt;P&gt;谢谢，参考代码可以发出CAN报文，但是拔掉、再恢复CAN线后，CAN报文不恢复。请问有&lt;STRONG&gt;拔掉CAN线，&lt;/STRONG&gt;再&lt;STRONG&gt;恢复CAN线&lt;/STRONG&gt;，&lt;STRONG&gt;CAN报文&lt;/STRONG&gt;可以正常&lt;STRONG&gt;发送&lt;/STRONG&gt;的&lt;STRONG&gt;例子&lt;/STRONG&gt;分享吗？（这个研究了半天，没搞定）&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 13:40:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841792#M33889</guid>
      <dc:creator>chumcu</dc:creator>
      <dc:date>2024-04-07T13:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841860#M33892</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ERRINT老报错，在哪里关掉" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/272355iFCA48BC77E9C2F28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CAN故障_.jpg" alt="ERRINT老报错，在哪里关掉" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ERRINT老报错，在哪里关掉&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;又试了半天，发现故障现象：ESR1的&lt;STRONG&gt;ERRINT&lt;/STRONG&gt;（Error Interrupt）&lt;STRONG&gt;老报错误，显示“1”&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;（使用环境：（自己的CAN_PAL或官网CAN例子） +S32DS for arm 2.2 +S32K144-100EVB）&lt;/P&gt;&lt;P&gt;实际需求1：S32K144先发送报文，在接CAN线，&lt;STRONG&gt;希望检测到报文&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;实际需求2：&lt;STRONG&gt;只有S32K144&lt;/STRONG&gt;发CAN报文，拔掉CAN线，在恢复CAN线，&lt;STRONG&gt;希望CAN报文正常发送&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;ERRINT&lt;/STRONG&gt;：BIT1ERR, BIT0ERR, ACKERR, CRCERR, FRMERR,or STFERR)，&lt;/P&gt;&lt;P&gt;请问，在哪些函数把ESR1的&lt;STRONG&gt;ERRINT&lt;/STRONG&gt;给关了，或者有满足需求的CAN参考例子，谢谢&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 01:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841860#M33892</guid>
      <dc:creator>chumcu</dc:creator>
      <dc:date>2024-04-08T01:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841874#M33894</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;chumcu&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;ERRINT：&lt;/P&gt;
&lt;P&gt;This bit indicates that at least one of the error bits (BIT1ERR, BIT0ERR, ACKERR, CRCERR, FRMERR,&lt;BR /&gt;or STFERR) is set. If the corresponding mask bit CTRL1[ERRMSK] is set, an interrupt is generated to the&lt;BR /&gt;CPU. T&lt;STRONG&gt;his bit is cleared by writing it to 1&lt;/STRONG&gt;. Writing 0 has no effect.&lt;/P&gt;
&lt;P&gt;默认你如果调用错误中断处理程序的时候，会帮你清ERRINT寄存器。&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;默认bus-off是自动恢复的。&lt;/P&gt;
&lt;P&gt;1.你的第一个需求会存在总线不会进入bus-off状态&lt;/P&gt;
&lt;P&gt;“如果在系统启动期间只有一个节点正在运行，则由于确认错误（由错误和状态寄存器中的 ACKERR 位指示），其 TXERRCNT 在尝试发送的每条消息中都会增加。 转换到错误被动状态后，TXERRCNT 不再因确认错误而递增。因此，器件永远不会进入总线关闭状态”&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.第二个工况理论上会进入bus-off,但是默认bus-off是自动恢复的，所以你不需要操作。&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;针对于第一种工况需要恢复的话，你需要在错误中断处理中判断出该工况，然后重新初始化FlexCAN模块。&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 02:05:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1841874#M33894</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-04-08T02:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1842108#M33906</link>
      <description>&lt;P&gt;感谢回答，请问在哪些错误中断函数，可以屏蔽、关掉ESR1报的故障，谢谢&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 07:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1842108#M33906</guid>
      <dc:creator>chumcu</dc:creator>
      <dc:date>2024-04-08T07:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1842285#M33920</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;chumcu&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;ESR1是错误状态寄存器，你可以不启动FlexCAN错误中断但是你又不能屏蔽ESR1寄存器的更新。&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 08:57:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1842285#M33920</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-04-08T08:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1842884#M33953</link>
      <description>&lt;P&gt;谢谢，但是还是不知道如何下手解决我说的问题，要不我试试RTM4.0的CAN，&lt;/P&gt;&lt;P&gt;听说RTM3.0的CAN有bug，但是RTM4.0不支持S32DS for&amp;nbsp; arm 2.2，&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;请问&lt;/STRONG&gt;如何在 S32DS for&amp;nbsp; arm 2.2环境下，&lt;STRONG&gt;借用RTM4.0里&lt;/STRONG&gt;的can、其他外设等例程、驱动，谢谢。&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 05:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1842884#M33953</guid>
      <dc:creator>chumcu</dc:creator>
      <dc:date>2024-04-09T05:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1842896#M33954</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;chumcu&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RTM 4.0.0及以上的版本需要安装S32 DS V3.4&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;下面是我在网上看到测试bus-off相关的文档，写的好可以，你自己好好研究清楚，该说的点我已经和你说的很仔细了。我再和重复强调一点，总线上只存在一个节点的时候，你发送报文错误，此时会进入被动错误，但是无法进入bus-off，这种工况是不能自动恢复的，需要你重新初始化CAN模块。&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.csdn.net/bjxdbz/article/details/114044821" target="_blank"&gt;https://blog.csdn.net/bjxdbz/article/details/114044821&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 06:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1842896#M33954</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-04-09T06:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN  Send  Problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1843002#M33958</link>
      <description>&lt;P&gt;感谢你多次的回复，我再好好研究下，争取早日，把问题给解决了！&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 07:53:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-Send-Problem/m-p/1843002#M33958</guid>
      <dc:creator>chumcu</dc:creator>
      <dc:date>2024-04-09T07:53:41Z</dc:date>
    </item>
  </channel>
</rss>

