2025-11-26 10:43 PM
Hello everyone.
I am using an F411 and I cannot figure out how this is supposed to work.
I enabled USB_Device in middleware, enabled USB_OTG_FS, and set up line encodings based on the default STM32 example, but when I flash STM (or step through with the debugger) I run into an error during the initialization that says "The last USB device you connected to this computer malfunctioned, and Windows does not recognize it." Apparently this means I am not enumerating.
I went through other posts on this forum. I made sure interrupts were enabled, that the clock is exactly 48 Hz, and I allocated extra space on the heap and the stack.
Here is a picture of my clock.
Here is my USB schematic.
What does this mean? How can I even go about fixing this?
Thanks