<?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 iMXRT: Model won't solve when activating USB in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1470134#M7391</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177536"&gt;@stefancinipeanu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to enact USB-HID on the iMXRT1010-EVB to test the MCU Boot Utility.&lt;/P&gt;&lt;P&gt;I can active USB-HID in .mex but the MBDT model won't solve.&lt;/P&gt;&lt;P&gt;I've attached the error log. The missing file "usb_device_composite" is generated, but in the "Source - generated" folder.&lt;/P&gt;&lt;P&gt;Also, how can I active HID (Flashing) and CDC (Freemaster) over the one USB-Port when using MBDT?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sam&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 17:42:51 GMT</pubDate>
    <dc:creator>Sam_ECU</dc:creator>
    <dc:date>2022-06-07T17:42:51Z</dc:date>
    <item>
      <title>iMXRT: Model won't solve when activating USB</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1470134#M7391</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177536"&gt;@stefancinipeanu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to enact USB-HID on the iMXRT1010-EVB to test the MCU Boot Utility.&lt;/P&gt;&lt;P&gt;I can active USB-HID in .mex but the MBDT model won't solve.&lt;/P&gt;&lt;P&gt;I've attached the error log. The missing file "usb_device_composite" is generated, but in the "Source - generated" folder.&lt;/P&gt;&lt;P&gt;Also, how can I active HID (Flashing) and CDC (Freemaster) over the one USB-Port when using MBDT?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 17:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1470134#M7391</guid>
      <dc:creator>Sam_ECU</dc:creator>
      <dc:date>2022-06-07T17:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT: Model won't solve when activating USB</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1470425#M7392</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189467"&gt;@Sam_ECU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The USB_OTG peripheral is not supported by the last version of the NXP MBDT IMXRT toolbox. Even if you enable the USB peripheral from the MCUXpresso ConfigTools, the compiler was not instruct to build the sources generated for this peripheral and Simulink Coder will through this kind of error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All peripherals that are supported by our toolbox are listed in the Release Notes.&lt;/P&gt;
&lt;P&gt;Also, regarding the MCU BootUtility, as far as I know, it uses the Flashloader behind, which generates a bootable image file from an executable axf file, then it will load the generated bootable image file into the QSPI NOR Flash memory. For this kind of deploying an executable file, we have support for IMXRT1010 and IMXRT1060. For testing the Flashloader, in your model you can click on&amp;nbsp;&lt;STRONG&gt;Hardware settings &lt;/STRONG&gt;button, then go on&lt;STRONG&gt;&amp;nbsp;Hardware Implementation -&amp;gt; Target Hardware resources-&amp;gt; Download &lt;/STRONG&gt;tab and you can choose from multiple download methods.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 07:13:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1470425#M7392</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2022-06-08T07:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT: Model won't solve when activating USB</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1470629#M7395</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177536"&gt;@stefancinipeanu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had read through the release notes but understood, that there were no supported blocks in MBDT (eg. "GPIO Input"). Not that functionality wouldn't be available at all. Lesson learned.&lt;/P&gt;&lt;P&gt;Is USB something that can be expected to be supported in the future?&lt;/P&gt;&lt;P&gt;Is there a way to import a compiled MBDT project into MCUXpresso to further the project and then recompile?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 11:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1470629#M7395</guid>
      <dc:creator>Sam_ECU</dc:creator>
      <dc:date>2022-06-08T11:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT: Model won't solve when activating USB</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1472302#M7401</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189467"&gt;@Sam_ECU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the delayed answer.&lt;/P&gt;
&lt;P&gt;Currently, we do not have any plans to add support for USB peripheral for IMXRT toolbox, but I have a kind of approach for your case. So in order to build your application to use USB, you have to do some preliminary steps:&lt;/P&gt;
&lt;P&gt;1. You have to go in MCUXpreeso IDE, to import an USB example for IMXRT1010, for example &lt;STRONG&gt;evkmimxrt1010_dev_hid_generic_bm&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;2. Copy the&lt;STRONG&gt; usb&lt;/STRONG&gt; folder and the &lt;STRONG&gt;osa&lt;/STRONG&gt; folder from MCUXpresso IDE into the generated &lt;STRONG&gt;evkmimxrt1010_gpio_interruptConfig&lt;/STRONG&gt; folder in MATLAB;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_0-1654869922331.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183005i70DF24EBE33DAEC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_0-1654869922331.png" alt="stefancinipeanu_0-1654869922331.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. In your Simulink model, go to &lt;STRONG&gt;Hardware&lt;/STRONG&gt; tab, &lt;STRONG&gt;Hardware Settings -&amp;gt; &lt;/STRONG&gt;expand&lt;STRONG&gt; Code Generation &lt;/STRONG&gt;drop-down&lt;STRONG&gt;-&amp;gt;Custom Code-&amp;gt;Additional build information&amp;nbsp;&lt;/STRONG&gt;and to &lt;STRONG&gt;Include directories &lt;/STRONG&gt;and&lt;STRONG&gt; Source files&lt;/STRONG&gt;&amp;nbsp;text areas add the following folders and source file as shown in the next pictures:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_1-1654870204456.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183007i435B8C190C237EF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_1-1654870204456.png" alt="stefancinipeanu_1-1654870204456.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="stefancinipeanu_2-1654870232035.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183008iFF7BC0849E284F98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_2-1654870232035.png" alt="stefancinipeanu_2-1654870232035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The model should now build with no errors. More information about adding external C code sources and custom code you will find on the following &lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-Battery-Management/ta-p/1119004" target="_self"&gt;link&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the functionality of importing the generated Simulink project into MCUXpresso is available. To do this, you have to go again to &lt;STRONG&gt;Hardware Settings-&amp;gt;Hardware Implementation-&amp;gt;Target hardware resources-&amp;gt;Tools Paths&lt;/STRONG&gt;. There you will find an option for &lt;STRONG&gt;Export generated projects&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_4-1654871434773.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183011i147F45A2661BABE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_4-1654871434773.png" alt="stefancinipeanu_4-1654871434773.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to click the&lt;STRONG&gt; Export&lt;/STRONG&gt; button, and it will pop-up an exporting option which will let you choose where to export the generated project: in the model folder or to a different path in the local file system. There will be 2 folders generated: one will end in '&lt;STRONG&gt;_ert_rtw&lt;/STRONG&gt;' and the other one will end in '&lt;STRONG&gt;Config&lt;/STRONG&gt;'.&lt;/P&gt;
&lt;P&gt;In the MCUXpresso IDE you have to go on &lt;STRONG&gt;Import project(s) from file system...&lt;/STRONG&gt;, then browse for the generated project ending in '&lt;STRONG&gt;Config&lt;/STRONG&gt;' (for example &lt;STRONG&gt;evkmimxrt1010_gpio_interruptConfig&lt;/STRONG&gt;) in the &lt;STRONG&gt;Root directory&lt;/STRONG&gt; option, then uncheck &lt;STRONG&gt;Copy projects into workspace &lt;/STRONG&gt;and click &lt;STRONG&gt;Finish&lt;/STRONG&gt;. You can now build the project into MCUXpresso IDE and flash your board.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_3-1654871323208.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183010i787AB94A58CA14AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_3-1654871323208.png" alt="stefancinipeanu_3-1654871323208.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Best regards!&lt;/P&gt;
&lt;P&gt;Stefan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 14:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1472302#M7401</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2022-06-10T14:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT: Model won't solve when activating USB</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1472451#M7402</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177536"&gt;@stefancinipeanu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a huge help, thanks a lot.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 05:50:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating-USB/m-p/1472451#M7402</guid>
      <dc:creator>Sam_ECU</dc:creator>
      <dc:date>2022-06-11T05:50:03Z</dc:date>
    </item>
  </channel>
</rss>

