Code: Select all
sduObjectInit(&SDU1);
sduStart(&SDU1, &serusbcfg);
usbStart(serusbcfg.usbp, &usbcfg);
This works fine on the F413 but doesn't work on the F407.
I verified my USB clock is running correctly at 48MHz.
I ultimately found a work-around for this so USB enumerates OK on the 407:
In stm32_registry.h, I had to change
Code: Select all
#define STM32_OTG_STEPPING 1
to
Code: Select all
#define STM32_OTG_STEPPING 2
I'm not exactly sure what that macro does, if that's a bug or if this is just masking a configuration issue on my side.
Thanks