cancel
Showing results for 
Search instead for 
Did you mean: 

USB Host MCU Middleware on STM32U545

SamMiddleton
Associate II

Hi. I'm having trouble using the old USB Host Middleware to read a USB stick with a STM32U545.

I've tried to follow this article, doing my best to adapt it for the host middleware and also using the "FatFs_USBDisk" example project for the F767 Nucleo board and a usbh_conf.c/.h written by a coworker for another U545 project which supposedly worked at least once.

My code fails in Enumeration when the MCU tries to get the device descriptor - The MCU sends a SETUP packet and a DATA0 packet with 0 bytes (instead of the expected 8) and the stick sends an ACK. The MCU then sends an IN packet and the stick sends a NACK. The IN & NACK are then repeated for many frames until the stick sends a STALL instead.

Can anyone help me identify where the bug is and how to fix it?

Thanks.

0 REPLIES 0