<?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: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692293#M1046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/edenli"&gt;edenli&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;I do not have the Vehicle Network Toolbox license - but from the Matlab Help, the CAN PACK is going to output a full CAN frame message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NXP CAN block expects only the DATA payload (B7 - B0) (&lt;A href="https://en.wikipedia.org/wiki/CAN_bus"&gt;source&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24993i97C959960AEAB014/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, you need to &lt;STRONG&gt;de-serialized&lt;/STRONG&gt; the message you get from the CAN PACK and extract DATA payload. Then since you need to transmit only 12bits you should keep only B0 and B1, pass it to the CAN Transmit and set up its length input to value 2 instead of 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should to the trick.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jul 2017 15:25:44 GMT</pubDate>
    <dc:creator>Daniel_Popa</dc:creator>
    <dc:date>2017-07-11T15:25:44Z</dc:date>
    <item>
      <title>The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692292#M1045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I have a doubt about the FlexCan simulink block from NXP,i wanna use the CAN PACK block with the FlexCAN block ,like as the Can block from TI,shown as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24992i34A7D344B384E7BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;becasue the CAN Pack can load the DBC file shown above, we can give the value to the signal,then the eCan Trans block will send the signals out.&lt;/P&gt;&lt;P&gt;but the FlexCan block from NXP seems not connect the CAN PACK block in the simulink,because the dimensional is inconformity.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24819i50A52B122CC8098D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i have another question how can i send a 12 bit signal using the can block from NXP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:03:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692292#M1045</guid>
      <dc:creator>edenli</dc:creator>
      <dc:date>2017-07-11T15:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692293#M1046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/edenli"&gt;edenli&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;I do not have the Vehicle Network Toolbox license - but from the Matlab Help, the CAN PACK is going to output a full CAN frame message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NXP CAN block expects only the DATA payload (B7 - B0) (&lt;A href="https://en.wikipedia.org/wiki/CAN_bus"&gt;source&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24993i97C959960AEAB014/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, you need to &lt;STRONG&gt;de-serialized&lt;/STRONG&gt; the message you get from the CAN PACK and extract DATA payload. Then since you need to transmit only 12bits you should keep only B0 and B1, pass it to the CAN Transmit and set up its length input to value 2 instead of 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should to the trick.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692293#M1046</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-07-11T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692294#M1047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thank you for your help, Now i have achieved it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;P&gt;Eden Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 15:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692294#M1047</guid>
      <dc:creator>edenli</dc:creator>
      <dc:date>2017-07-13T15:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692295#M1048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;de-serialized&lt;/STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the message? Simulink doesn't allow me to convert the "CAN message" type. So I can't go to next step and extract data payload from it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Rui&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 19:23:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692295#M1048</guid>
      <dc:creator>ruicui</dc:creator>
      <dc:date>2018-03-09T19:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692296#M1049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rui Cui,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have the Embedded Coder toolbox you could use the CAN Pack/Unpack blocks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18522i8CC7ACB9D97E3C7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example how to use it can be found here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/465130"&gt;https://community.nxp.com/thread/465130&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 10:15:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692296#M1049</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-03-12T10:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692297#M1050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently, I didn't explain my question well. My question is similar as Eden Li: I want to load certain dbc first and then use S32K library/blocks to send my CAN message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, see following screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18808i26A4F852C65049A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"FCAN_Send" need 8 bytes data. But by using "CAN Pack", the output data type is "CAN message", Matlab doesn't allow me to convert to any type. So I can't extract the data payload and convert to uint8.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rui Cui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 14:25:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692297#M1050</guid>
      <dc:creator>ruicui</dc:creator>
      <dc:date>2018-03-12T14:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692298#M1051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you fixed the problem ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 11:49:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692298#M1051</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-03-26T11:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692299#M1052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I haven't. &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I need to load the dbc first.&amp;nbsp;&lt;/SPAN&gt;The output of&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;"CAN Pack" is "CAN message" type. I am not sure how to convert/extract data payload to uint8 type.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its possible to import .c/.h which generated by Vector Geny tool, then call the signal function directly from Matlab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 13:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692299#M1052</guid>
      <dc:creator>ruicui</dc:creator>
      <dc:date>2018-03-26T13:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the connecting the FlexCan block from NXP with CAN Pack in simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692300#M1053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rui,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of PACK can be found here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/465130"&gt;How to Build and Configure a CAN with S32K to Emulate Automotive Body Control Infrastructure&lt;/A&gt;&amp;nbsp; in the slave.mld model. (unpack example can be found in master.mdl)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19171i2B15BA84775076DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I think its possible to import .c/.h which generated by Vector Geny tool, then call the signal function directly from Matlab.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, there are multiples ways. Please check:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment-900775"&gt;Tip #3: MBD Toolbox -&amp;nbsp;Add custom code to your Simulink model&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/449904#comment-901737"&gt;Tip #5: MBD Toolbox - Use S-Function to call your custom code anywhere in the model&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or use Simulink Custom Code blocks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19796i80B6D2DD839FFE9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 11:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/The-question-about-the-connecting-the-FlexCan-block-from-NXP/m-p/692300#M1053</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-03-28T11:32:46Z</dc:date>
    </item>
  </channel>
</rss>

