<?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 Re: frdmk64f usb device ramdisk example freertos write file from code in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/frdmk64f-usb-device-ramdisk-example-freertos-write-file-from/m-p/849588#M7913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree the problem I have is that in project usb_host_msd_fatfs\freertos the fatfs library is implemented with usb_host and not device stack. In file "diskio.c", low-level function implement function like USB_HostMsdInitializeDisk, USB_HostMsdReadDisk, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I want to create the file on a USB ramdisk like device. I see that some function are also implemented for that kind of application: ram_disk_read(pdrv, buff, sector, count), ram_disk_write(pdrv, buff, sector, count), ... but I don't find the reference to them in the project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2018 09:14:24 GMT</pubDate>
    <dc:creator>theophileleroy</dc:creator>
    <dc:date>2018-11-20T09:14:24Z</dc:date>
    <item>
      <title>frdmk64f usb device ramdisk example freertos write file from code</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/frdmk64f-usb-device-ramdisk-example-freertos-write-file-from/m-p/849586#M7911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run with success&amp;nbsp;frdmk64f_dev_msc_ramdisk_freertos example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76472i0009C5D5661E1897/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76518iB61A82B4B4A6FE57/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76594i19E8A2B3C4B9F588/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step, I want to write a text file into the ramdisk (from the code) to be read by the user on the host machine. How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Théophile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 13:22:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/frdmk64f-usb-device-ramdisk-example-freertos-write-file-from/m-p/849586#M7911</guid>
      <dc:creator>theophileleroy</dc:creator>
      <dc:date>2018-11-19T13:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: frdmk64f usb device ramdisk example freertos write file from code</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/frdmk64f-usb-device-ramdisk-example-freertos-write-file-from/m-p/849587#M7912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Theophile:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use f_write API to write a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to below link for f_write&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://elm-chan.org/fsw/ff/doc/write.html" title="http://elm-chan.org/fsw/ff/doc/write.html"&gt;FatFs - f_write&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example for how to use f_write.&lt;/P&gt;&lt;P&gt;SDK_2.4.1_FRDM-K64F\boards\frdmk64f\usb_examples\usb_host_msd_fatfs\freertos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 07:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/frdmk64f-usb-device-ramdisk-example-freertos-write-file-from/m-p/849587#M7912</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-11-20T07:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: frdmk64f usb device ramdisk example freertos write file from code</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/frdmk64f-usb-device-ramdisk-example-freertos-write-file-from/m-p/849588#M7913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree the problem I have is that in project usb_host_msd_fatfs\freertos the fatfs library is implemented with usb_host and not device stack. In file "diskio.c", low-level function implement function like USB_HostMsdInitializeDisk, USB_HostMsdReadDisk, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I want to create the file on a USB ramdisk like device. I see that some function are also implemented for that kind of application: ram_disk_read(pdrv, buff, sector, count), ram_disk_write(pdrv, buff, sector, count), ... but I don't find the reference to them in the project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 09:14:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/frdmk64f-usb-device-ramdisk-example-freertos-write-file-from/m-p/849588#M7913</guid>
      <dc:creator>theophileleroy</dc:creator>
      <dc:date>2018-11-20T09:14:24Z</dc:date>
    </item>
  </channel>
</rss>

