MK22 CDC_MSC add

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MK22 CDC_MSC add

1,087 次查看
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.

标记 (1)
0 项奖励
回复
2 回复数

878 次查看
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 项奖励
回复

878 次查看
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 项奖励
回复