MK22 CDC_MSC add

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MK22 CDC_MSC add

592 Views
CCandido
Contributor V

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.

Tags (1)
0 Kudos
2 Replies

383 Views
danielchen
NXP TechSupport
NXP TechSupport

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

0 Kudos

383 Views
CCandido
Contributor V

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.

0 Kudos