<?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: CAN Re-connection on Bus-off/Disconnection in S32K</title>
    <link>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1751576#M28379</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please respond and assist me in resolving the problem, which is to assist in fulfilling the client's requirement .&lt;/P&gt;&lt;P&gt;Thanks in advance. Please provide your support.&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Abina&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 04:05:43 GMT</pubDate>
    <dc:creator>Abina</dc:creator>
    <dc:date>2023-11-03T04:05:43Z</dc:date>
    <item>
      <title>CAN Re-connection on Bus-off/Disconnection</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1749489#M28275</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;When I attempt to use the FlexCAN on the S32K146, I am having trouble recovering the CAN bus if the CAN bus is temporarily or physically disconnected and then reconnecting.&lt;/P&gt;&lt;P&gt;The issues are&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If the CAN is disconnected, the BOFFINT bit (3rdbit of ESR1 value) is not set.&lt;/LI&gt;&lt;LI&gt;After reconnecting, data is not transferring from CAN TX.&lt;BR /&gt;In code:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;During initialization, I enabled and set the priority for the CAN1_ORed_0_15_MB_IRQn interrupt and used the FLEXCAN_DRV_InstallErrorCallback function to check the bus off status. The error callback function collects the error status data (the ESR1 value by the FLEXCAN_DRV_GetErrorStatus (INST_CANCOM1) function), and using CAN_ESR1_BOFFINT_MASK, I collect the BOFFINT bit value. If the bit is set, the CAN bus is aborted using FLEXCAN_DRV_AbortTransfer (INST_CANCOM1, 0).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="can_init.png" style="width: 586px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/247717i0D5B22F1B628EFA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="can_init.png" alt="can_init.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error_cb.png" style="width: 560px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/247716i00570BC2FF5E83B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="error_cb.png" alt="error_cb.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I implemented the code as mentioned above after searching and gathering data from the NXP community, but the aforementioned issue is still there.&lt;/P&gt;&lt;P&gt;While debugging the error callback, tried to toggle the GPIO pin inside the error callback to validate the CAN error detection as continuous monitoring for reconnection. Found that the callback only called for some milliseconds for the error that occurred in the CAN bus; the callback function did not continuously call; it seems it stuck.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="can_pico.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/247718iCD2CBF423581C6C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="can_pico.png" alt="can_pico.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea why this is happening and how to solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197891"&gt;@ArunkumarV&lt;/a&gt;&amp;nbsp; FYR&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 10:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1749489#M28275</guid>
      <dc:creator>Abina</dc:creator>
      <dc:date>2023-10-31T10:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Re-connection on Bus-off/Disconnection</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1749569#M28283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1) Bus off is entered when module is transmitting message and detect error (other then ACK), in this case TXERROR counter is increasing and after it is &amp;gt;255 bus off is entered. If you just disconnect bus, but have transceiver terminated, you cannot enter to Bus off. You can try to short bus, or do CANH-GND or CANL-VDD connection while message is transmitted.&lt;/P&gt;
&lt;P&gt;2) not sure how do you transmit message, but your error callback aborts the TX MB for each error detected. Consider if this is need&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1749569#M28283</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-10-31T13:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Re-connection on Bus-off/Disconnection</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1749587#M28285</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for your quick response.&lt;/P&gt;&lt;P&gt;I am trying to solve an issue, so I am trying to understand the CAN operations with different methods.&lt;/P&gt;&lt;P&gt;The issue is, when a device connection disconnected physically and connect back to the CAN communication.&lt;/P&gt;&lt;P&gt;Is it possible to recover the CAN communication and transfer the data again? Do we need any Reinit of CAN?&lt;/P&gt;&lt;P&gt;How to achieve this in S32K1xx controller?&lt;/P&gt;&lt;P&gt;Kindly share some inputs or steps or sample code.&lt;/P&gt;&lt;P&gt;Thanks in advance. Please provide your support to solve this issue.&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Abina&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 14:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1749587#M28285</guid>
      <dc:creator>Abina</dc:creator>
      <dc:date>2023-10-31T14:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Re-connection on Bus-off/Disconnection</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1751576#M28379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please respond and assist me in resolving the problem, which is to assist in fulfilling the client's requirement .&lt;/P&gt;&lt;P&gt;Thanks in advance. Please provide your support.&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Abina&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 04:05:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1751576#M28379</guid>
      <dc:creator>Abina</dc:creator>
      <dc:date>2023-11-03T04:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Re-connection on Bus-off/Disconnection</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1751982#M28397</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;after reconnection, no module reinit is needed. Module should synchronize to the bus again. Maybe you can see some errors detected. You should be able to send messages again.&lt;BR /&gt;If have issue you can inspect FlexCAN registers to know status. Check MCR, ECR,ESR1 registers and content of TX MBs.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 12:21:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Re-connection-on-Bus-off-Disconnection/m-p/1751982#M28397</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-11-03T12:21:19Z</dc:date>
    </item>
  </channel>
</rss>

