Hi........ I m using LPC1768 controller. I used USB HOSTLite code supplied by NXP. The code fine for some pen drive(FAT 16) but the same code will not work for other pen drive(which is also FAT 16). After initialization it goes to open MSREAD file in read mode, but if fails to open the file("Could not open file %s\n", FILENAME_R).
while checking entry type in function called FAT_ChkEntType it always switch to LAST_ENTRY and fail to open the file.
so please anyone tell me the problem.............
I bought new pen drive which is USB(2.0). Initially i formatted pen drive by selecting FORMAT FAT and formatted. I created MSREAD.txt file in pen drive, and i tested the code but in this case, when program jumps to FAT_Init() function there ERR_FAT_NOT_SUPPORTED problem comes and not jumps to the Main_Copy() function.
so please can anyone tell me the problem.............
Debugging is a key skill for any programmer.
What debugging have you done yourself to determine the cause of the problem?
View all questions in Keil forum