MK22 CDC_MSC add

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MK22 CDC_MSC add

1,077件の閲覧回数
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 返答(返信)

868件の閲覧回数
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 件の賞賛
返信

868件の閲覧回数
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 件の賞賛
返信