<?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>Model-Based Design Toolbox (MBDT)のトピックRe: Reset CAN | Bus Silence</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1410965#M6978</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes.&lt;/P&gt;&lt;P&gt;The solution was to only send the next Message when the previous is recieved.&lt;/P&gt;&lt;P&gt;So I put my CAN Sender block into an enabled subsystem. This only is enabled when the transfer status is not busy. Like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="felix_boeckmann_0-1644406496887.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/170017i9CE4C46ECCE3394C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="felix_boeckmann_0-1644406496887.png" alt="felix_boeckmann_0-1644406496887.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trigger I use for the time frame in which the message should be sended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Felix&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 11:36:01 GMT</pubDate>
    <dc:creator>felix_boeckmann</dc:creator>
    <dc:date>2022-02-09T11:36:01Z</dc:date>
    <item>
      <title>Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1190321#M5426</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have build a project which has a CAN Communication.&lt;/P&gt;&lt;P&gt;I control this with CANoe and it works fine. But when I stop the CANoe simulation and restart it, the Evalboard don't send or recieve messages anymore. I have to reset it by shut off the supply voltage.&lt;/P&gt;&lt;P&gt;Maybe there is an Error or something because there is no BUS client anymore?! How can I reset it or deactivate it?&lt;/P&gt;&lt;P&gt;Thanks and Greetings,&lt;/P&gt;&lt;P&gt;Felix&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:27:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1190321#M5426</guid>
      <dc:creator>felix_boeckmann</dc:creator>
      <dc:date>2020-11-27T14:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1190506#M5428</link>
      <description>&lt;P&gt;Hi Felix.&lt;/P&gt;&lt;P&gt;I have the same problem reported days ago.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/CAN-recovery-MPC5744P/m-p/1187572#M5387" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/CAN-recovery-MPC5744P/m-p/1187572#M5387&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let's see if NXP give us a solution.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Miguel.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 09:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1190506#M5428</guid>
      <dc:creator>miguelallende</dc:creator>
      <dc:date>2020-11-28T09:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1191668#M5447</link>
      <description>&lt;P&gt;Gentlemen,&lt;/P&gt;
&lt;P&gt;I am not an expert in CAN, so I will ask one of my colleagues to respond to your question.&lt;/P&gt;
&lt;P&gt;However, the C code is generated on top of the S32K SDK for Arm. Currently, I don't see any API function that resets the CAN module.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A starting point will be to use the&amp;nbsp;FLEXCAN_DRV_GetErrorStatus driver function, which returns the ESR1 register value. By having a look at this register, you can know in your code, when the Bus becomes IDLE. We don't have a block for that, but you can declare a Data Store Memory of uint32 and insert a custom code, to periodically call this function.&lt;/P&gt;
&lt;P&gt;The only idea I have right now is to try to deinit and reinit the CAN module when the bus becomes IDE. I don't know if this is the right way, and I think there should be a more elegant way of solving this scenario. I will ask other engineers and we will reply here.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1606831590514.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131464i642CE6BDDEFF95E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1606831590514.png" alt="mariuslucianand_0-1606831590514.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 14:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1191668#M5447</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-12-01T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1192365#M5450</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/163104"&gt;@felix_boeckmann&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/31263"&gt;@miguelallende&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Let's try a workaround to see if on your side this fixes the problem and you can continue the CAN communication after the CAN bus is reconnected.&lt;/P&gt;
&lt;P&gt;So, we will insert a custom code that will return the ESR1 status register. If there is an TX Error we will abort the current transfer.&lt;/P&gt;
&lt;PRE&gt;&lt;EM&gt;CAN_Status = FLEXCAN_DRV_GetErrorStatus(CAN_INSTANCE) ; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if (CAN_Status &amp;amp; (1 &amp;lt;&amp;lt; 9)) &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{ &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FLEXCAN_DRV_AbortTransfer(CAN_INSTANCE, MSG_BUFFER); &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/PRE&gt;
&lt;P&gt;In the custom code you have to Change the CAN_INSTANCE with the instance that you are using (simply 0 or 1) and the MSG_BUFFER with the buffer that you are using (e.g. 15).&lt;/P&gt;
&lt;P&gt;I have attached an example. Is for S32K116 but the same C code should work for your S32K144.&lt;/P&gt;
&lt;P&gt;Let's give this a try.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 13:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1192365#M5450</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-12-02T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1346234#M6533</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;&amp;nbsp;I tried running the&amp;nbsp;&lt;SPAN class="lia-link-navigation lia-attachment-link-disabled lia-link-disabled"&gt;flexcan_master_xfer_status_s32k11x.zip code it works perfectly fine when I run this code, but when I import the same&amp;nbsp;data store memory block and system output block with the custom code given here in some other CAN program it doesn't work. Am I missing something here or are there any additional Simulink settings that needs to done?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Sep 2021 07:01:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1346234#M6533</guid>
      <dc:creator>Mayuresh10</dc:creator>
      <dc:date>2021-09-26T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1349550#M6541</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am also encountering this issue. Don't know why its happening!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The rules for increasing and decreasing the error counters are somewhat complex, but the principle is simple: transmit errors give 8 error points, and receive errors give 1 error point. Correctly transmitted and/or received messages causes the counter(s) to decrease.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Example (slightly simplified): Let’s assume that node A on a bus has a bad day. Whenever A tries to transmit a message, it fails (for whatever reason). Each time this happens, it increases its Transmit Error Counter by 8 and transmits an Active Error Flag. Then it will attempt to retransmit the message and the same thing happens.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 11:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1349550#M6541</guid>
      <dc:creator>Anderson64</dc:creator>
      <dc:date>2021-10-01T11:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1410954#M6977</link>
      <description>&lt;P&gt;Has anyone found a solution to this problem? I faced the same problem.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 11:27:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1410954#M6977</guid>
      <dc:creator>Baris</dc:creator>
      <dc:date>2022-02-09T11:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1410965#M6978</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes.&lt;/P&gt;&lt;P&gt;The solution was to only send the next Message when the previous is recieved.&lt;/P&gt;&lt;P&gt;So I put my CAN Sender block into an enabled subsystem. This only is enabled when the transfer status is not busy. Like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="felix_boeckmann_0-1644406496887.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/170017i9CE4C46ECCE3394C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="felix_boeckmann_0-1644406496887.png" alt="felix_boeckmann_0-1644406496887.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trigger I use for the time frame in which the message should be sended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Felix&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 11:36:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1410965#M6978</guid>
      <dc:creator>felix_boeckmann</dc:creator>
      <dc:date>2022-02-09T11:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reset CAN | Bus Silence</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1419778#M7051</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have the same problem with MCAN blocks and I tried the structure you suggested, but I couldn't get any results.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 11:55:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1419778#M7051</guid>
      <dc:creator>Baris</dc:creator>
      <dc:date>2022-02-25T11:55:27Z</dc:date>
    </item>
  </channel>
</rss>

