New controller firmware completes the CPU benchmark, but a full-speed USB device fails to enumerate. On the STM32F407, the CPU and USB can use different outputs of the same main PLL. A working CPU clock only qualifies that branch. Check the PLLQ branch separately for the USB 48 MHz, especially if performance or low-power modes changed the PLL settings.
Write out the two divider paths side by side
Suppose the board has an 8 MHz crystal selected as HSE, with PLLM set to 8 and PLLN to 336. The internal oscillator frequency is 336 MHz. Setting PLLP to 2 gives a 168 MHz system output, and setting PLLQ to 7 gives a 48 MHz USB clock. Changing Q alone to 8 can leave the core at 168 MHz while changing the other output to 42 MHz. This illustrates the clock-tree relationships. A real design must also meet the device’s frequency and supply limits at each stage.
Check that the fitted crystal matches the configured input frequency. Read back the clock source, PLL-ready status, and divider registers. Save a snapshot before the USB peripheral starts, since later system frequency changes may overwrite the evidence. Compare with known-good firmware and the same cable to see whether enumeration diverges before the host loads the device-specific driver.
If the peripheral clock calculation is correct, continue with the USB pin wiring, supply, reset, and firmware descriptors. Failed enumeration alone does not diagnose a faulty crystal. Add a column to the change record for each PLL consumer and required frequency. This makes USB part of any later CPU-speed review. Check that the parameters remain valid across the board’s supply modes as well.ST RM0090 reference manual
