<?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>Kinetis Software Development KitのトピックRe: Demo for USB High speed on K26 (FRDM K66)</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660033#M7201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PO220&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, we couldn't say a exact value for transfers. In theory, a ideal bus with 512-bytes bulk transfers in High speed can transfer up to 53.248 MB/s, so this is the maximum limit for a HS bus, but real-world performance varies by other factors. This performance can vary with the bandwidth, host controllers, host architecture, latencies included when access to system memory, etc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you are not changing USB transfer speed, you are changing Buffer size for access to memory, since you have more data available to transfer, transfer speed will "increase". If you run at HSRUN mode with 180MHz clock, SDHC clock could be 45MHz to get more performance. But from my test, there is barely such a performance gain when buffer size is small. So the main bottleneck is how much RAM buffer you can allocate for store read or write data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 23:39:46 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2017-01-17T23:39:46Z</dc:date>
    <item>
      <title>Demo for USB High speed on K26 (FRDM K66)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660029#M7197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for an application with SD card and High speed USB on MK26&lt;/P&gt;&lt;P&gt;I plan to test with the FRDM-K66 demo board.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;I need to simultaneously have a COM port and a mass storage disk : &lt;SPAN class=""&gt;For this I found the example&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; usb_device_composite_cdc_msc_sdcard&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;But I can not find an example with high speed (Required for mass storage with the SD card)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&amp;gt; Is there an example in high speed ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&amp;gt; Is this a simple parameter in the example&amp;nbsp;usb_device_composite_cdc_msc_sdcard ? Or another totally different way ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;thank you in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 23:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660029#M7197</guid>
      <dc:creator>PO220</dc:creator>
      <dc:date>2017-01-04T23:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Demo for USB High speed on K26 (FRDM K66)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660030#M7198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I bought the FRDM-K66F&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I'm testing demo project for High speed module benchmark..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;usb_device_msc_sdcard or usb_device_composite_cdc_msc_sdcard it's the same :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;220ko/s max to transfer a large file (20 or 180Mo) (a bad full speed...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I modified disk_sdcard.c&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;g_msc.speed = USB_SPEED_FULL;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;with&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class=""&gt;g_msc.speed = USB_SPEED_HIGH ; //USB_SPEED_FULL;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;bm or freertos it's the same&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;USB_SPEED_FULL; or USB_SPEED_HIGH ; it's the same&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;With USB_DEVICE_MSC_READ_BUFF_SIZE and USB_DEVICE_MSC_WRITE_BUFF_SIZE to 5120U (instead 512)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;The flow rate increases to 577ko/s&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; What is the max (good) value for &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;USB_DEVICE_MSC_READ_BUFF_SIZE and USB_DEVICE_MSC_WRITE_BUFF_SIZE&lt;/SPAN&gt;&lt;/SPAN&gt; ?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Are there other parameters to optimize ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 18:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660030#M7198</guid>
      <dc:creator>PO220</dc:creator>
      <dc:date>2017-01-09T18:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Demo for USB High speed on K26 (FRDM K66)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660031#M7199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PO220&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to change between high speed and full speed drivers in our USB Stack you could find a usb_device_config.h file, this has the macros that need to change, EHCI = High speed drivers and KHCI =&amp;nbsp; Full Speed drivers, hence, if you want to load your example as High speed you should have something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/*! @brief KHCI instance count */&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define USB_DEVICE_CONFIG_KHCI (0U)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;/*! @brief EHCI instance count */&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define USB_DEVICE_CONFIG_EHCI (1U)&lt;/SPAN&gt;
‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This definition would change all your project as High speed&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 23:32:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660031#M7199</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-01-09T23:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Demo for USB High speed on K26 (FRDM K66)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660032#M7200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my demo project EHCI is already ON.&lt;/P&gt;&lt;P&gt;I do not know what stupidity I made Monday... now High speed works well with the same "usb_device_msc_sdcard/freertos" demo project !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The speed is directly related to the size of&amp;nbsp; USB_DEVICE_MSC_READ_BUFF_SIZE and USB_DEVICE_MSC_WRITE_BUFF_SIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whith&lt;/P&gt;&lt;P&gt;#define USB_DEVICE_MSC_READ_BUFF_SIZE (&lt;STRONG&gt;512&lt;/STRONG&gt;U) &lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I get a speed of 650 &lt;STRONG&gt;k&lt;/STRONG&gt;B/s for a large file reading (500MB)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Whith&lt;/P&gt;&lt;P&gt;#define USB_DEVICE_MSC_READ_BUFF_SIZE (&lt;STRONG&gt;54784&lt;/STRONG&gt;U) //107*512&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I get a speed of 6 - 6.5&lt;STRONG&gt;M&lt;/STRONG&gt;B/s for a large file reading &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Whith &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;#define USB_DEVICE_MSC_READ_BUFF_SIZE (&lt;STRONG&gt;145920&lt;/STRONG&gt;U) //285*512&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;(Need to declare the buffer on SRAM_U) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I get a speed of 7MB/s for a large file reading&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The size of the buffer has no influence beetween 54784 and 145920. &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Is 7MB/s the maximum limit for Hs module ?&lt;/STRONG&gt; &lt;STRONG&gt;Or are there other parameters to optimize?&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2017 00:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660032#M7200</guid>
      <dc:creator>PO220</dc:creator>
      <dc:date>2017-01-15T00:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Demo for USB High speed on K26 (FRDM K66)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660033#M7201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PO220&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, we couldn't say a exact value for transfers. In theory, a ideal bus with 512-bytes bulk transfers in High speed can transfer up to 53.248 MB/s, so this is the maximum limit for a HS bus, but real-world performance varies by other factors. This performance can vary with the bandwidth, host controllers, host architecture, latencies included when access to system memory, etc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you are not changing USB transfer speed, you are changing Buffer size for access to memory, since you have more data available to transfer, transfer speed will "increase". If you run at HSRUN mode with 180MHz clock, SDHC clock could be 45MHz to get more performance. But from my test, there is barely such a performance gain when buffer size is small. So the main bottleneck is how much RAM buffer you can allocate for store read or write data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 23:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660033#M7201</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-01-17T23:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Demo for USB High speed on K26 (FRDM K66)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660034#M7202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Sorry for my late reply.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to run with HSRUN&lt;/P&gt;&lt;P&gt;I replace&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;//&amp;nbsp; BOARD_BootClockRUN();&lt;/BLOCKQUOTE&gt;&lt;P&gt;by&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;BOARD_BootClockHSRUN();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I had to change this in void BOARD_BootClockHSRUN(void)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;//&amp;nbsp;&amp;nbsp; CLOCK_SetInternalRefClkConfig(kMCG_IrclkEnableInStop, kMCG_IrcSlow, 0U);&lt;/P&gt;&lt;P&gt;by&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SetInternalRefClkConfig(kMCG_IrclkEnable, kMCG_IrcSlow, 0U);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I win about 0.5MB/s.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I look for the SD speed now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2017 17:29:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Demo-for-USB-High-speed-on-K26-FRDM-K66/m-p/660034#M7202</guid>
      <dc:creator>PO220</dc:creator>
      <dc:date>2017-01-29T17:29:05Z</dc:date>
    </item>
  </channel>
</rss>

