MPC5748g USB Read.

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

MPC5748g USB Read.

1,406 次查看
Krishnaja
Contributor II

Hi,

I have modified "usb_msd_fatfs_mpc5748g" example program.

I want to read data from pen drive (attached to usb on the Dev-kit) and print the content of the file on to Termite. Please tell me how to do.

I have shared the screenshot of the uart terminal. I have also attached my project.

Krishnaja_1-1616577004991.png

 

Krishnaja.

0 项奖励
回复
2 回复数

1,382 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

if you take closer look at the sample code, you will find this function in the sample project: Generic_MsdFatfsTests

It should give a clue together with FatsFs documentation how to access the files.

Regards,

Lukas

 

 

0 项奖励
回复

1,371 次查看
Krishnaja
Contributor II

Hi,

I found it.

I got clue from "task_fatfs_f_open_f_read" ---->"f_read(&fd, g_dataRead, sizeof(g_dataRead), &bytesRead);".

 

Krishnaja.

0 项奖励
回复