MPC5748g USB Read.

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

MPC5748g USB Read.

676 Views
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 Kudos
Reply
2 Replies

652 Views
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 Kudos
Reply

641 Views
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 Kudos
Reply