<?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: USB MSC Data Rate on FRDM-K64F</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-MSC-Data-Rate-on-FRDM-K64F/m-p/490334#M4413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #606060; font-family: arial,helvetica,sans-serif;"&gt;I´m attaching you exact explanation from our Application Team regarding your request:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 1. Debug version is slower than release version,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 2. When test the performance, please plug out all the debugger, such as j-link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 3. SDHC clock source is BOARD_SDHC_CLKSRC, actually, it is kCLOCK_CoreSysClk, this will impact the sdhc write speed, on sdk2.0 frdmk64 default setting is 120MHz. it is best.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 4. USB_DEVICE_CONFIG_USE_TASK this macro will impact the write speed, you may see more detail about this in readme.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 5. the USB_DEVICE_MSC_WRITE_BUFF_SIZE is not necessary to be same with USB_DEVICE_MSC_READ_BUFF_SIZE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;If you need write more data then read, you may increase the USB_DEVICE_MSC_WRITE_BUFF_SIZE and decrease the USB_DEVICE_MSC_READ_BUFF_SIZE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #606060; font-family: arial,helvetica,sans-serif;"&gt; 6. K64 is full speed controller, the best theory value is 1.25MB(12Mb/8), considering the protocol overhead, the value should be lower.&lt;STRONG&gt; &lt;/STRONG&gt;I have tested sdcard performance on k65 KHCI (full speed controller), the sdcard is a sandisk ultra 1, and&amp;nbsp; the write buffer size is 64*512,&amp;nbsp; use the release version example and plug out the jlink after download the example, the performance is ~1MB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; The following is the sdcard I use, you could use a better sdcard with higher performance. Then the performance will be higher.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 7. if&amp;nbsp; ~1M performance can’t meet your need, I think one board with high speed usb may meet your need.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="sandisk.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26412iD7FA58D66CAF4F3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sandisk.png" alt="sandisk.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;I hope this clarifies you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;In case of any questions, please let us know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;Iva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2016 19:41:04 GMT</pubDate>
    <dc:creator>ivadorazinova</dc:creator>
    <dc:date>2016-03-30T19:41:04Z</dc:date>
    <item>
      <title>USB MSC Data Rate on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-MSC-Data-Rate-on-FRDM-K64F/m-p/490333#M4412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a FRDM-K64F platform on which I'm experimenting with USB mass storage class. I've taken the 'usb_device_msc_sdcard' example program from KSDK 2.0 and downloaded it to the board. Initially it was very slow but after increasing the USB_DEVICE_MSC_WRITE_BUFF_SIZE and USB_DEVICE_MSC_READ_BUFF_SIZE macros the data rate increased significantly. I've set these two macros to 31232U as this appears to be the maximum value. Any higher and the project will not build. I'm using Kinetis Design Studio. Using this I'm achieving transfer rates of around 700-800 kB/s.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if I can further increase the data rate without making any real software changes/optimisations, - i.e. any quick changes I could make like increasing the above buffer sizes.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect I may need to move to a hardware platform that supports USB High Speed to really hit good transfer rates, but if I can improve the speed on the platform I have at the moment that would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 22:19:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-MSC-Data-Rate-on-FRDM-K64F/m-p/490333#M4412</guid>
      <dc:creator>digibin</dc:creator>
      <dc:date>2016-03-20T22:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: USB MSC Data Rate on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-MSC-Data-Rate-on-FRDM-K64F/m-p/490334#M4413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #606060; font-family: arial,helvetica,sans-serif;"&gt;I´m attaching you exact explanation from our Application Team regarding your request:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 1. Debug version is slower than release version,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 2. When test the performance, please plug out all the debugger, such as j-link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 3. SDHC clock source is BOARD_SDHC_CLKSRC, actually, it is kCLOCK_CoreSysClk, this will impact the sdhc write speed, on sdk2.0 frdmk64 default setting is 120MHz. it is best.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 4. USB_DEVICE_CONFIG_USE_TASK this macro will impact the write speed, you may see more detail about this in readme.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 5. the USB_DEVICE_MSC_WRITE_BUFF_SIZE is not necessary to be same with USB_DEVICE_MSC_READ_BUFF_SIZE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;If you need write more data then read, you may increase the USB_DEVICE_MSC_WRITE_BUFF_SIZE and decrease the USB_DEVICE_MSC_READ_BUFF_SIZE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #606060; font-family: arial,helvetica,sans-serif;"&gt; 6. K64 is full speed controller, the best theory value is 1.25MB(12Mb/8), considering the protocol overhead, the value should be lower.&lt;STRONG&gt; &lt;/STRONG&gt;I have tested sdcard performance on k65 KHCI (full speed controller), the sdcard is a sandisk ultra 1, and&amp;nbsp; the write buffer size is 64*512,&amp;nbsp; use the release version example and plug out the jlink after download the example, the performance is ~1MB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; The following is the sdcard I use, you could use a better sdcard with higher performance. Then the performance will be higher.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt; 7. if&amp;nbsp; ~1M performance can’t meet your need, I think one board with high speed usb may meet your need.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="sandisk.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26412iD7FA58D66CAF4F3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sandisk.png" alt="sandisk.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;I hope this clarifies you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;In case of any questions, please let us know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #606060; font-size: 10pt;"&gt;Iva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 19:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-MSC-Data-Rate-on-FRDM-K64F/m-p/490334#M4413</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2016-03-30T19:41:04Z</dc:date>
    </item>
  </channel>
</rss>

