<?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: NXP MPC5744P CAN Tx Missing Messages in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1293007#M6173</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes; I'm using 3.2.0.&lt;/P&gt;&lt;P&gt;Thank you for this; the messages 0x101, 0x102, 0x103 &amp;amp; 0x104 are now transmitted on the CAN Bus at the correct intervals.&lt;/P&gt;&lt;P&gt;However, message 0x105 isn't being transmitted at all. Also, when I change the contents of message 0x003 (it's a Multiplex CAN Message), the resultant signal changes aren't registered in the messages being transmitted by the DEVKIT.&lt;/P&gt;&lt;P&gt;Model &amp;amp; DBC File attached for reference.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Crispin&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 06:41:42 GMT</pubDate>
    <dc:creator>C_Zuercher_APR</dc:creator>
    <dc:date>2021-06-16T06:41:42Z</dc:date>
    <item>
      <title>NXP MPC5744P CAN Tx Missing Messages</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1292453#M6165</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm deploying the attached model (I know it's hideously messy) onto an MPC5744P, but in PCAN it's only able to pick up a single transmission of message 0x101. No other activity is recorded.&lt;/P&gt;&lt;P&gt;Any solutions/ideas would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Crispin&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 08:51:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1292453#M6165</guid>
      <dc:creator>C_Zuercher_APR</dc:creator>
      <dc:date>2021-06-15T08:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: NXP MPC5744P CAN Tx Missing Messages</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1292680#M6170</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182314"&gt;@C_Zuercher_APR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;First of all, which version of our toolbox are you using? Is it MPC57xx 3.2.0?&lt;/P&gt;
&lt;P&gt;I will try to guide you through what I've seen in the generated code.&lt;/P&gt;
&lt;P&gt;First, there is an issue with how Simulink generates the code. As you see in the below image, for all 5 Message Tx Subsystems, Simulink generates a single function in which it will send only the 0x101 message-Id.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1623769318785.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147121i06477F3D479AD412/image-size/large?v=v2&amp;amp;px=999" role="button" title="mariuslucianand_0-1623769318785.png" alt="mariuslucianand_0-1623769318785.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To solve this, you have to right-click on every Message Tx subsystem, select &lt;EM&gt;Block Parameters (Subsystem),&amp;nbsp;&lt;/EM&gt;go to Code Generation, and for the Function packaging select &lt;EM&gt;Nonereusable function&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_1-1623769766361.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147122i0BACA7A00975E88A/image-size/large?v=v2&amp;amp;px=999" role="button" title="mariuslucianand_1-1623769766361.png" alt="mariuslucianand_1-1623769766361.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will generate a function for each send block with the right message Ids.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, the second thing I see here is related to the&amp;nbsp;FCAN_Receive block. This has to be called only once at the initialization and then retriggered every time in the interrupt to "rearm" the receiver. Now, basically you "arm" the receiver every 0.002s, in the step function. You can have a look inside the&amp;nbsp;&lt;EM&gt;flexcan_slave_mpc574x &lt;/EM&gt;example.&lt;/P&gt;
&lt;P&gt;Also, make sure that if everything works, you have enough time to send all the 5 messages in the 0.002s.&lt;/P&gt;
&lt;P&gt;Please give this a try and see if something has been changed.&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>Tue, 15 Jun 2021 15:24:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1292680#M6170</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2021-06-15T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: NXP MPC5744P CAN Tx Missing Messages</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1293007#M6173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes; I'm using 3.2.0.&lt;/P&gt;&lt;P&gt;Thank you for this; the messages 0x101, 0x102, 0x103 &amp;amp; 0x104 are now transmitted on the CAN Bus at the correct intervals.&lt;/P&gt;&lt;P&gt;However, message 0x105 isn't being transmitted at all. Also, when I change the contents of message 0x003 (it's a Multiplex CAN Message), the resultant signal changes aren't registered in the messages being transmitted by the DEVKIT.&lt;/P&gt;&lt;P&gt;Model &amp;amp; DBC File attached for reference.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Crispin&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 06:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1293007#M6173</guid>
      <dc:creator>C_Zuercher_APR</dc:creator>
      <dc:date>2021-06-16T06:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: NXP MPC5744P CAN Tx Missing Messages</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1293025#M6174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I've found the issue with message 0x105 not being transmitted; the Bus load peaked at 99% according to CANalyzer, so I changed the transmission time of message 0x003 from 2ms to 5ms and now message 0x105 is being transmitted.&lt;/P&gt;&lt;P&gt;The changes due to the Multiplex message aren't being picked up however, but I guess this'll be an issue to take up with The Mathworks?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Crispin&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 07:02:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/NXP-MPC5744P-CAN-Tx-Missing-Messages/m-p/1293025#M6174</guid>
      <dc:creator>C_Zuercher_APR</dc:creator>
      <dc:date>2021-06-16T07:02:17Z</dc:date>
    </item>
  </channel>
</rss>

