<?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>FreeMASTERのトピックFreeMASTER driver component does not contain all required files</title>
    <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-driver-component-does-not-contain-all-required-files/m-p/1235029#M585</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have downloaded the latest SDK 2.9.1 for i.MX-RT1060 and used it to create a new application in MCUXpresso IDE. When added the FreeMASTER middleware component into the project, I’m getting a build error.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vilemzavodny-b5_1-1614088698930.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137819i70B62C19978A5CA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vilemzavodny-b5_1-1614088698930.png" alt="vilemzavodny-b5_1-1614088698930.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The build errors are:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vilemzavodny-b5_2-1614088724183.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137820i2ABCF0718ACD217C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vilemzavodny-b5_2-1614088724183.png" alt="vilemzavodny-b5_2-1614088724183.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What is the correct way to create a brand new project with a FreeMASTER support? The FreeMASTER example applications work fine.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 13:59:29 GMT</pubDate>
    <dc:creator>VilemZ</dc:creator>
    <dc:date>2021-02-23T13:59:29Z</dc:date>
    <item>
      <title>FreeMASTER driver component does not contain all required files</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-driver-component-does-not-contain-all-required-files/m-p/1235029#M585</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have downloaded the latest SDK 2.9.1 for i.MX-RT1060 and used it to create a new application in MCUXpresso IDE. When added the FreeMASTER middleware component into the project, I’m getting a build error.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vilemzavodny-b5_1-1614088698930.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137819i70B62C19978A5CA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vilemzavodny-b5_1-1614088698930.png" alt="vilemzavodny-b5_1-1614088698930.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The build errors are:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vilemzavodny-b5_2-1614088724183.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137820i2ABCF0718ACD217C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vilemzavodny-b5_2-1614088724183.png" alt="vilemzavodny-b5_2-1614088724183.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What is the correct way to create a brand new project with a FreeMASTER support? The FreeMASTER example applications work fine.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 13:59:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-driver-component-does-not-contain-all-required-files/m-p/1235029#M585</guid>
      <dc:creator>VilemZ</dc:creator>
      <dc:date>2021-02-23T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER driver component does not contain all required files</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-driver-component-does-not-contain-all-required-files/m-p/1235038#M586</link>
      <description>&lt;P&gt;Hi Vilem,&lt;/P&gt;
&lt;P&gt;I confirm the problem. The set of files included in the &lt;STRONG&gt;FreeMASTER Middleware&lt;/STRONG&gt; component v3.0.2 in MCUXpresso IDE only contains the core driver files, not the platform and low-level driver files. All 2.9.0 and 2.9.1 SDK packages seem to be affected by this issue.&lt;/P&gt;
&lt;P&gt;We will fix this issue in the next SDK version for each microcontroller platform. For now, please copy the missing files manually to project directory:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Extract the SDK package ZIP file (e.g. SDK_2.9.1_EVK-MIMXRT1060.zip)&lt;/LI&gt;
&lt;LI&gt;Copy the &lt;STRONG&gt;freemaster_gen32le.h&lt;/STRONG&gt; file from &lt;STRONG&gt;middleware\freemaster\src\platforms\gen32le&lt;/STRONG&gt; to your &lt;STRONG&gt;project\freemaster&lt;/STRONG&gt; directory.&lt;/LI&gt;
&lt;LI&gt;Also copy all needed low-level driver files (&lt;STRONG&gt;freemaster_serial_lpuart.*&lt;/STRONG&gt; and similar) from &lt;STRONG&gt;middleware\freemaster\src\drivers\mcuxsdk\serial&lt;/STRONG&gt; and &lt;STRONG&gt;..\can&lt;/STRONG&gt; directories to your &lt;STRONG&gt;project\freemaster&lt;/STRONG&gt; directory. You can copy all driver files, even if they are not used. Do not create any sub-directories, otherwise you would need to add new include search paths to your project options.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The steps 1..3 are actually a workaround of the middleware component issue. However, it is not all to make the FreeMASTER application running. If working with a clean new application project, you also need to finish the FreeMASTER driver configuration, add communication interface initialization and also add few API calls to your main task in order to enable FreeMASTER communication.&lt;/P&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;The best way to learn how to configure the FreeMASTER driver is to see the &lt;STRONG&gt;freemaster_cfg.h&lt;/STRONG&gt; file in &lt;STRONG&gt;fmstr_uart&lt;/STRONG&gt;, &lt;STRONG&gt;fmstr_can&lt;/STRONG&gt; and other FreeMASTER examples.&lt;/LI&gt;
&lt;LI&gt;A nice way is also to use the MCUXpresso ConfigTools embedded in the MCUXpresso IDE to generate the FreeMASTER configuration for you - along with pins, clocks and other configuration. See&amp;nbsp;&lt;STRONG&gt;fmstr_any&lt;/STRONG&gt; application as an example which is generated by ConfigTools.&lt;/LI&gt;
&lt;LI&gt;In order to use ConfigTools in the MCUXpresso IDE, select menu &lt;EM&gt;ConfigTools/Peripherals&lt;/EM&gt; and add the FreeMASTER configuration page like in the picture below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichalH_0-1614089062571.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137821iAA1E2F7D0F71B227/image-size/large?v=v2&amp;amp;px=999" role="button" title="MichalH_0-1614089062571.png" alt="MichalH_0-1614089062571.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Finish the configuration. Also go to Pins, Clocks and other tools to complete the hardware setup. Again, refer to &lt;STRONG&gt;fmstr_any&lt;/STRONG&gt;&amp;nbsp;demo for a complete working example.&lt;/LI&gt;
&lt;LI&gt;Press the &lt;STRONG&gt;Update Code&lt;/STRONG&gt; button to generate an updated code.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichalH_1-1614089205924.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137822i919FC16EE42A1785/image-size/large?v=v2&amp;amp;px=999" role="button" title="MichalH_1-1614089205924.png" alt="MichalH_1-1614089205924.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The project should now pass compilation without any warnings about incomplete &lt;STRONG&gt;freemaster_cfg.h&lt;/STRONG&gt; file.&lt;/LI&gt;
&lt;LI&gt;Make sure your application main function calls the &lt;EM&gt;BOARD_&lt;/EM&gt; functions to initialize MPU, Pins, Clocks and Peripherals. Remove the DebugConsole as it would clash with the FreeMASTER UART communication unless two different ports are used.&lt;/LI&gt;
&lt;LI&gt;Note that the FMSTR_Init() - FreeMASTER driver initialization is already done in the generated&amp;nbsp;&lt;STRONG&gt;BOARD_InitBootPeripherals &lt;/STRONG&gt;code&amp;nbsp;along with communication peripheral module initialization.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichalH_2-1614089287867.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137823i8B21E4E27BFC98B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichalH_2-1614089287867.png" alt="MichalH_2-1614089287867.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add the FMSTR_Poll() call into your main loop or application task, to make sure the FreeMASTER will work fine in Polled and Short-interrupt mode. The polling call does not need to be added in the Long-interrupt mode.&lt;/LI&gt;
&lt;LI&gt;Run and test if the application communicates with FreeMASTER 3.1.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Michal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 14:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-driver-component-does-not-contain-all-required-files/m-p/1235038#M586</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2021-02-23T14:16:00Z</dc:date>
    </item>
  </channel>
</rss>

