MPC5748g USB Read.

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

MPC5748g USB Read.

1,403件の閲覧回数
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,379件の閲覧回数
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,368件の閲覧回数
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 件の賞賛
返信