Hardware environment:
Use the lpc2468u2 port as the USB Host
A 2 gb usb flash drive marked as modern, formatted as fat16
After USB hostlite is transplanted, run it to the fat_init () function. If the returned value is incorrect, follow up and check whether the read data is inconsistent with the expected data.
Previously, it was okay to verify another 2 gb usb flash drive. Formatting for multiple times is still fruitless. You can use winhex to view the differences between the two disks. However, the difference is not clear. After being crazy for half an hour, I finally thought of using diskgenius to check the difference:
This "can not use" U disk is actually using MBR partition, and another disk does not, then we know that the original modern disk, the boot mode is USB-HDD, while another boot mode is USB-FDD, the modern U disk into a USB-FDD, after formatting, connected to the system, run to fat_init (), everything is normal.
A friend previously said that the nxp usb host has a disk pick phenomenon and I don't know if it is the problem. The lite drivers do not have complete functions.