Hi,
I tested example SDK2.2: usb_device_composite_cdc_msc_sdcard = ok
Comport Virtual and msc = ok
ARM: MK22
IDE: MCUExpresso.
now my question it: how to add function for: f_open, f_write, f_opendir,...file in card.
Do this function in the same project.
thanks,
Carlos.
Hi Carlos:
Please refer to the usb_host_msd_fatfs demo, this application executes some FatFS APIs to test the attached device.
usb_examples\usb_host_msd_fatfs\freertos
Hope it helps.
Regards
Daniel
Hi Daniel,
first excuse may take a long time to answer.
about (usb_examples \ usb_host_msd_fatfs \ frets) I saw but did not understand.
so I understand (CDC + MSC) that Host_PC has the driver (fsFAT) soon then I will need to put fsFAT + driver a solution type: MSC_ BUSY = TRUE.
and then initialise the disc + (read / write) close disc, MSC_BUSY = FALSE.
control returns to host_pc.
I'll test add (SDK_2.2_MK22 \ boards \ twrk21f120m \ driver_examples \ sdcard_fatfs).
thank you,
Carlos.