<?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: Code generation issue with simple CAN communication test.</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729426#M1602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mcgillformulaelectric"&gt;mcgillformulaelectric&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason&amp;nbsp;your model did not generate the &amp;lt;model_name&amp;gt;_private.h file is the selection of "File packaging format" to something other than "Modular". So for a quickfix, go to Code generation -&amp;gt; Code placement and set File packaging format to "Modular".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15279iFDFEB6E53E355C84/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This option specifies whether code generation modularizes the code components into many files or compacts them into a few, in the following manner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The Modular selection outputs &amp;lt;model&amp;gt;_data.c, &amp;lt;model&amp;gt;_private.h and &amp;lt;model_types.h&amp;gt;, in addition to generating &amp;lt;model&amp;gt;.c and &amp;lt;model&amp;gt;.h.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Compact (with separate data file) selection outputs (conditionally) &amp;lt;model&amp;gt;_data.c in addition to &amp;lt;model.c&amp;gt; and &amp;lt;model&amp;gt;.h.&lt;/LI&gt;&lt;LI&gt;Compact selection outputs &amp;lt;model&amp;gt;.c, including the contents of &amp;lt;model&amp;gt;_data.c, &amp;lt;model&amp;gt;_private.h and &amp;lt;model&amp;gt;_types.h.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will update our toolbox to take into consideration the file packaging format - in this regard&amp;nbsp;I opened (internally) a &lt;A href="https://jira.sw.nxp.com/browse/AST-907"&gt;bug&amp;nbsp;&lt;/A&gt;and will post a hotfix on the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2018 15:03:01 GMT</pubDate>
    <dc:creator>constantinrazva</dc:creator>
    <dc:date>2018-01-17T15:03:01Z</dc:date>
    <item>
      <title>Code generation issue with simple CAN communication test.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729424#M1600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our team is quite new with the Motor Control Toolbox. More recently, we have been doing several tests to learn how to work with this new tool. We are using an MPC5643L and we are currently doing the tests with the development board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We&amp;nbsp;did a simple push button to LED model to test the digital inputs/outputs. We also did a simple logic with the dev board rotary potentiometer to control LEDs on the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are now running into some problem taking an ADC input and sending it over CAN. In fact, when trying to generate code, one header file named DASH_TESTING_private.h is included in&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: normal;"&gt;adc1_config.h but has not been created. This leads to an error since it cannot be found by Simulink. See picture attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: normal;"&gt;Is this a common issue? Perhaps we are missing something when configuring the ADC or the CAN. I have also attached the simple model (R2017b) in case you want to run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: normal;"&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: normal;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: normal;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: normal;"&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/12066i2114C2082B6777E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave" style="background: white; font-weight: normal; font-size: 12px; margin: 0px 0px 2px;"&gt;&lt;DIV class="" data-dojo-attach-point="hideNode"&gt;&lt;DIV class="" data-dojo-attach-point="wipeNode" style="color: inherit; border: 0px; font-weight: inherit; font-size: inherit;"&gt;&lt;DIV class="" data-dojo-attach-point="containerNode" style="padding: 0px 3px 0px 15px;"&gt;&lt;DIV class="" style="padding: 1px 0px;"&gt;&lt;DIV class="" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave" data-dojo-attach-point="aMainNode" style="margin: 1px 0px;"&gt;&lt;DIV class="" data-dojo-attach-point="aMessageDiv" style="margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;SPAN class="" data-dojo-attach-point="aMessageNode" style="margin-right: 2px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-weight: normal; font-size: 12px; padding: 1px 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="font-weight: normal; font-size: 12px; padding: 1px 0px;"&gt;&lt;DIV class="" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave" style="color: #000000; background: white; font-weight: normal; margin: 0px 0px 2px; padding: 0px;"&gt;&lt;DIV class="" data-dojo-attach-point="hideNode" style="padding: 0px;"&gt;&lt;DIV class="" data-dojo-attach-point="wipeNode" style="color: inherit; border: 0px; font-weight: inherit; font-size: inherit; padding: 0px;"&gt;&lt;DIV class="" data-dojo-attach-point="containerNode" style="padding: 0px 3px 0px 15px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave" data-dojo-attach-point="aMainNode" style="margin: 1px 0px; padding: 0px;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff; font-weight: normal;"&gt;&lt;DIV class="" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave" data-dojo-attach-point="aMainNode" style="margin: 1px 0px; padding: 0px;"&gt;&lt;DIV class="" data-dojo-attach-point="aSeverityBarNode"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 03:26:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729424#M1600</guid>
      <dc:creator>mcgillformulael</dc:creator>
      <dc:date>2018-01-17T03:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Code generation issue with simple CAN communication test.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729425#M1601</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/mcgillformulaelectric"&gt;mcgillformulaelectric&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;model_name&amp;gt;_private.h is a file that Simulink generates; it is a file that's used for some #includes, user data, etc. It seems the file was not generated - by default it should be, so there is&amp;nbsp;an option enabled in Simulink so it does not generate that file. I will look into it and come back as soon as I have caught the option that is causing this. In the meanwhile, if you open an example from the Examples folder and have the same options selected from the "Code Generation" tab, the build will succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will write back shortly after finding out what option influences the generation of &amp;lt;model_name&amp;gt;_private.h .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:08:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729425#M1601</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2018-01-17T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Code generation issue with simple CAN communication test.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729426#M1602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mcgillformulaelectric"&gt;mcgillformulaelectric&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason&amp;nbsp;your model did not generate the &amp;lt;model_name&amp;gt;_private.h file is the selection of "File packaging format" to something other than "Modular". So for a quickfix, go to Code generation -&amp;gt; Code placement and set File packaging format to "Modular".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15279iFDFEB6E53E355C84/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This option specifies whether code generation modularizes the code components into many files or compacts them into a few, in the following manner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The Modular selection outputs &amp;lt;model&amp;gt;_data.c, &amp;lt;model&amp;gt;_private.h and &amp;lt;model_types.h&amp;gt;, in addition to generating &amp;lt;model&amp;gt;.c and &amp;lt;model&amp;gt;.h.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Compact (with separate data file) selection outputs (conditionally) &amp;lt;model&amp;gt;_data.c in addition to &amp;lt;model.c&amp;gt; and &amp;lt;model&amp;gt;.h.&lt;/LI&gt;&lt;LI&gt;Compact selection outputs &amp;lt;model&amp;gt;.c, including the contents of &amp;lt;model&amp;gt;_data.c, &amp;lt;model&amp;gt;_private.h and &amp;lt;model&amp;gt;_types.h.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will update our toolbox to take into consideration the file packaging format - in this regard&amp;nbsp;I opened (internally) a &lt;A href="https://jira.sw.nxp.com/browse/AST-907"&gt;bug&amp;nbsp;&lt;/A&gt;and will post a hotfix on the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 15:03:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729426#M1602</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2018-01-17T15:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Code generation issue with simple CAN communication test.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729427#M1603</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/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick support. We tried it and it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;McGill Formula Electric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 16:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Code-generation-issue-with-simple-CAN-communication-test/m-p/729427#M1603</guid>
      <dc:creator>mcgillformulael</dc:creator>
      <dc:date>2018-01-17T16:37:18Z</dc:date>
    </item>
  </channel>
</rss>

