Hallo,
I'm developing a custum project using LPC55s28 microcontroller and MCUXpresso IDE vs IDE v11.2.1 ,Build 4149, 2020-10-07.
I need insert the USB MSD driver and I took it from the lpcxpresso55s28_host_msd_fatfs_freertos example because I'm using the freertos OS.
I'm using the USB type A insted of the USB type C connector.
I'm using the USB0 peripheral and I configured the USB0_VBUS on the PIO1_11 pin. The USB peripheral clock source is the FRO (96MHz) and I set the USB clock divider to 2. The clock status register gives me the information that it's working correctly.
I configured the PIO1_11 as USB0_VBUS and connected it to 3,3V and I'm not using the USB0_IDVALUE pin.
When I plug USB stick in, the software recognizes the event, enters in the USB_HostEnumerationTransferCallback function and returns from it with the enumeration failed event. Than software enters in the KUSB_HostEventEnumerationFail case of the USB_HostEvent function.
Moreover I had to disable the USB_HostOhciDelay in the USB_HostOhciPortChange function, because when I plug the USB stick in, it's caused a software breakpoint event in the software.
I changed many USB stick, and I checked the software many times but I haven't found the problem source.
Could someone help me to solve the problem or give me a tip?
Many thanks in advance.
Kinds Regards,
Chobin
Hi @chobin
I hope you are doing well!
Regarding the hardware setup.
Are you able to post an USB schematic of your design with component values?
Is the USB host able to enumerate any other kind of device such as keyboard or mouse?
If it helps, in the MCUxpresso SDK release notes, you will find USB drives that have been tested with the USB stack.
Yours
Diego.