AnsweredAssumed Answered

USB device with MFS ramdisk

Question asked by Travis Klassen on Feb 20, 2013
Latest reply on Feb 25, 2013 by Travis Klassen

Hi,

I'm trying to integrate the USB MSD demo with the MFS Ramdisk demo.   I thought I had everything working smoothly since I can write a file onto the Ramdisk and see it when I connect the USB to my pc,  however when I try to write a file from the USB side of things, I can't seem to find it on the ramdisk.

 

when setting up the ramdisk, I called     

mqx_status = _io_mem_install("mfs_writedisk:", (uchar_ptr) g_disk.storage_disk, (_file_size) sizeof(g_disk.storage_disk));   
using the DISK_STRUCT from the usb device demo, and after setting up the mfs I called
ioctl(a_fd_ptr, IO_IOCTL_DEFAULT_FORMAT, NULL);
before setting up the usb device so I wouldn't require the pc to format my device.

Outcomes