<?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 fsl_usb_framework host file system in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418617#M3393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that USB Host is not officially supported by PEx / KSDK yet but here are some notes I have made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the fsl_usb_framework and configured it as a host. I have also added three class driver settings for USB_SUBCLASS_MASS_UFI, USB_SUBCLASS_MASS_SCSI and USB_SUBCLASS_HUB_NONE. I have then added files to my project from the fatfs\fsl_usb_disk folder, modified the usb_host_config.h and got the fatfs file system working but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Every time I generate the PEx code it removes the USBCFG_HOST_MSC define (should that be USBCFG_HOST_MSD in the usb_core files or should the PEx one be USBCFG_HOST_MSC?) and resets the USBCFG_HOST_HUB back to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The default Application callback name given to USBCFG_HOST_HUB is the same as used in the usb_host_hub_sm file so the compiler generates an error. Easily fixed by renaming it to usb_host_hub_event in PEx and calling usb_host_hub_device_event from the generated function in Event.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The USBCFG_HOST_MAX_POWER define seems to be fixed at 250 regardless of the PEx setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. When MQX Standard is added via PEx it appears the pre-emptive multitasking is switched off during initialisation but the msd_disk functions in msd_diskio.c lock up without it. To work around this I have added #else OSA_TaskYield(); to all the loops that watch g_bCallBack so the task that calls command_callback gets some processing time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adrian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 07:49:01 GMT</pubDate>
    <dc:creator>adyr</dc:creator>
    <dc:date>2015-04-17T07:49:01Z</dc:date>
    <item>
      <title>fsl_usb_framework host file system</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418617#M3393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that USB Host is not officially supported by PEx / KSDK yet but here are some notes I have made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the fsl_usb_framework and configured it as a host. I have also added three class driver settings for USB_SUBCLASS_MASS_UFI, USB_SUBCLASS_MASS_SCSI and USB_SUBCLASS_HUB_NONE. I have then added files to my project from the fatfs\fsl_usb_disk folder, modified the usb_host_config.h and got the fatfs file system working but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Every time I generate the PEx code it removes the USBCFG_HOST_MSC define (should that be USBCFG_HOST_MSD in the usb_core files or should the PEx one be USBCFG_HOST_MSC?) and resets the USBCFG_HOST_HUB back to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The default Application callback name given to USBCFG_HOST_HUB is the same as used in the usb_host_hub_sm file so the compiler generates an error. Easily fixed by renaming it to usb_host_hub_event in PEx and calling usb_host_hub_device_event from the generated function in Event.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The USBCFG_HOST_MAX_POWER define seems to be fixed at 250 regardless of the PEx setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. When MQX Standard is added via PEx it appears the pre-emptive multitasking is switched off during initialisation but the msd_disk functions in msd_diskio.c lock up without it. To work around this I have added #else OSA_TaskYield(); to all the loops that watch g_bCallBack so the task that calls command_callback gets some processing time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adrian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 07:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418617#M3393</guid>
      <dc:creator>adyr</dc:creator>
      <dc:date>2015-04-17T07:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: fsl_usb_framework host file system</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418618#M3394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find my comments below:&lt;/P&gt;&lt;P&gt;ad 1.&amp;nbsp; In Processor Expert KSDK1.2.0 version have been added USBCFG_HOST_xxxx (+ USBCFG_DEVICE_xxxx) properties to 'fsl_usb_framework' component, which allow USB HOST stack configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ad 3. I can not reproduced this issue. Value of&amp;nbsp; USBCFG_HOST_MAX_POWER symbol is specified by "Max. power support in mA" property (USBCFG_HOST_MAX_POWER = "Max. power support in mA" property value /&amp;nbsp; 2). &lt;/P&gt;&lt;P&gt;Value of the USBCFG_HOST_MAX_POWER symbol is compared with "bMaxPower" (Max.power from bus 2mA units, value in configuration descriptor returned by USB device).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jiri Rezler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 15:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418618#M3394</guid>
      <dc:creator>jiri_rezler</dc:creator>
      <dc:date>2015-04-21T15:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: fsl_usb_framework host file system</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418619#M3395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Jiri.&lt;/P&gt;&lt;P&gt;ad 1. Do you know if support for adding a file systems to the USB has been added to then next version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ad 3. I hadn't realised there was a divide by 2 and when I changed it in PEx I must have forgotten to re-generate the code as it is working as you state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ad 4. Do you know if there is there going to be an option to add a time slice period to the OS_Task components and an option for setting the MQX_HAS_TIME_SLICE to 1?&lt;/P&gt;&lt;P&gt;I tried adding the #define MQX_HAS_TIME_SLICE 1 to the User Settings - Definitions section of the MQX_KSDK component but the contents get written to the mqx_sdl_config.h after the #include "small_ram_config.h" line so it just generates compiler errors due to being redefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to 1.2 coming out as it sounds like it will address a few issues I'm having.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Adrian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418619#M3395</guid>
      <dc:creator>adyr</dc:creator>
      <dc:date>2015-04-22T11:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: fsl_usb_framework host file system</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418620#M3396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KDS 3.0 + KSDK 1.2 has made it easier to add the FatFS and no longer fights against the required settings which fixes my original question 1 so thank you for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can see, Time Slice is still not enabled but the new implementation does somehow allow the loops in msd_diskio.c to yield to the KHCI Task (which sets the flag that terminates the loops) so that is all good now and fixes my original question 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to Jiri and the freescale team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adrian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 07:39:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/fsl-usb-framework-host-file-system/m-p/418620#M3396</guid>
      <dc:creator>adyr</dc:creator>
      <dc:date>2015-05-26T07:39:52Z</dc:date>
    </item>
  </channel>
</rss>

