Trying to integrate fatfs with microchip inbuilt driver for usb

Status
Not open for further replies.

sachinkp21587

Member level 2
Joined
Mar 15, 2010
Messages
51
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
india (U.P.)
Visit site
Activity points
1,703
Hello all!! i am trying to port fatfs to microchip project USB HOST-MASS STORAGE-SIMPLE DEMO for PIC32MX795F512L using MPLABX XC32

right now i am just including fatfs file in the already made project.

I am having a problem that different header files are being attached to main.c and diskio.c
1. i have included the diskio.h file in main by writing #include "diskio.h"
2. have included the diskio.h file in diskio.c file by writing #include "diskio.h"
3. have also added diskio.c and diskio.h file in project window

now when i am opening diskio.c file and click on ctoheader button it opens a different diskio.h which is different from diskio.h that opens by clicking alt and left click on the #include "diskio.h" in MPLABX

all fatfs header files and c files are lying in my outside my mplab.x

i am attaching my project. i am new to this forum posting and mplab x too. sorry for any rule breaking or else.
any help is deeply appretiated
 

Attachments

  • Firmware.7z
    240.7 KB · Views: 79

The previous problem i have resolved.
the problem was that the header file included was from some other address and the .c file was included from some other address.
now i have the problem that the code is compiling but the text file is not being created. can anybody help?
i am attaching my code here.
 

Attachments

  • Firmware.rar
    599.7 KB · Views: 76

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…