This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC1768 USB HOST LITE File Open problem

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?

  • And you then come to the conclusion that this world have one (1) "the" FAT file system?

    What about 12-bit FAT? 16-bit FAT? Or todays favourite FAT-32? VFAT for long file names? Fat with small or large sectors? Small or large clusters? With or without partition table?

    By the way - you didn't mention the size of that USB thumb drive.