<?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>i.MX RT Crossover MCUs中的主题 Re: Bare metal USB MSD FATFS example</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1651766#M25069</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 06:54:36 GMT</pubDate>
    <dc:creator>burhanhagi</dc:creator>
    <dc:date>2023-05-17T06:54:36Z</dc:date>
    <item>
      <title>Bare metal USB MSD FATFS example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1649471#M25026</link>
      <description>&lt;P&gt;I am trying to mount USB flash disk to my custom IMXRT1176 board. I aim to list all .mp3 binary files in USB stick and later then try to play those files randomly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found only one example in SDK named "evkmimxrt1170_host_msd_fatfs_bm_cm7" related with FATFS MSC. However, in above example there is a simple OS used for it, named OSA. But I do not want to use operating system. I need the same example but using only with bare metal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to share with me one example .zip file?&lt;/P&gt;&lt;P&gt;Below is the screenshot of USB folder in MCUXpresso IDE for IMXRT1166;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="burhanh_0-1683902821673.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/222978i339B1A7833D591E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="burhanh_0-1683902821673.png" alt="burhanh_0-1683902821673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below is the screenshot of USB folder in SW4STM32 IDE for STM32F769;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="burhanh_2-1683903025164.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/222980iF1E79DE159E196E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="burhanh_2-1683903025164.png" alt="burhanh_2-1683903025164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As per my understanding, usb folder in MCUXPresso IDE is based on running over Operating System. But as you see, in STM32F769, USB folder is based on bare metal, no OS.&lt;/P&gt;&lt;P&gt;I tried to download USB and FATFS stack from online SDK Builder. But every time I download it, it is with OAS coded. I could not find bare metal FATFS USB MSC Class folder in Middleware Section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1649471#M25026</guid>
      <dc:creator>burhanhagi</dc:creator>
      <dc:date>2023-05-12T14:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bare metal USB MSD FATFS example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1649999#M25029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201543"&gt;@burhanhagi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;OSA is not a operation system. It is a middle level between OS and baremetal software. With this level, the baremetal example can port to OS easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 06:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1649999#M25029</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-05-15T06:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bare metal USB MSD FATFS example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1650047#M25030</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;, There is 2 functions in the main function. USB_HostMsdTask(g_MsdFatfsInstance) function is the one what I want to add. However, the first function USBHostTaskFn(g_HostHandle) is related with OSA. See the below please;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="burhanh_0-1684134510153.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223099iA6149981E93EF84B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="burhanh_0-1684134510153.png" alt="burhanh_0-1684134510153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;USBHostTaskFn(g_HostHandle) inside;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="burhanh_1-1684134713943.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223100i3BAE098237A7C44B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="burhanh_1-1684134713943.png" alt="burhanh_1-1684134713943.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="burhanh_3-1684134803193.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223102i1B2939819F173EC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="burhanh_3-1684134803193.png" alt="burhanh_3-1684134803193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you see above, that function calls OSA_EventWait(...).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I comment out the&amp;nbsp;USBHostTaskFn(g_HostHandle) function in the main while loop, the code does nothing.I need the program to execute with only&amp;nbsp;USB_HostMsdTask(g_MsdFatfsInstance). However, without&amp;nbsp;USBHostTaskFn(g_HostHandle) function, I could not achieve it. What could I do? How could I weed out the unwanted OSA lines? Because all usb-&amp;gt;host-&amp;gt;class-&amp;gt;.. files was constructed based on this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="burhanh_4-1684134901421.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223103iD1B954D06BB628A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="burhanh_4-1684134901421.png" alt="burhanh_4-1684134901421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 07:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1650047#M25030</guid>
      <dc:creator>burhanhagi</dc:creator>
      <dc:date>2023-05-15T07:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bare metal USB MSD FATFS example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1651035#M25050</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201543"&gt;@burhanhagi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;USBHostTaskFn is used to receive interrupt message. When interrupt comes, it register a message to OSA.&amp;nbsp;USBHostTaskFn check this message and parse the incoming command. If you don't like this mechanism you just make your own massage channel.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 09:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1651035#M25050</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-05-16T09:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bare metal USB MSD FATFS example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1651766#M25069</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 06:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Bare-metal-USB-MSD-FATFS-example/m-p/1651766#M25069</guid>
      <dc:creator>burhanhagi</dc:creator>
      <dc:date>2023-05-17T06:54:36Z</dc:date>
    </item>
  </channel>
</rss>

