CLK-1 MCU with CAN or USB and no crystal¶
| Severity | Status | Implementation |
|---|---|---|
| error | planned | mid, depends on NET-12 |
Looks at. Interfaces in use, the part's clock options.
What it catches. A controller that uses USB or CAN while it has no crystal, crystal oscillator or other accurate clock, and no internal clock that is good enough for that interface.
Why it matters. Full-speed USB needs ±0.25 % and high speed ±500 ppm (USB 2.0 §7.1.11); CAN needs a few tenths of a percent at higher bit rates. Internal RC oscillators are trimmed to about 1 % at 25 °C and drift with temperature (RM0008 §7.2.2, AN5096 §2.2): enumeration works on the bench and fails in the cold. Some parts have a USB-grade internal clock: the STM32G0B1's HSI48 trimmed by the clock recovery system from the USB SOF packets (AN5096 §2.3). That exception covers USB device mode only, never CAN.
Example. An STM32F103 USB device without a crystal: the USB clock comes from the PLL (RM0008 §7.2.3), and with the PLL on the 1 % HSI the board enumerates on some hosts and not others.
How to check. For each controller with USB or CAN pins in use (NET-12), require a crystal, oscillator or clock input on its HSE/XIN pins, unless part data marks a crystal-less mode for exactly that interface.
Fix. A crystal or oscillator; for USB device only on parts with CRS-style trimming, document the choice.
References. USB 2.0 §7.1.11; RM0008 §7.2.2-7.2.3; AN5096 §2.2-2.3; RP2350 HW §4 (USB needs the external crystal).