Skip to content

CLK checks

The CLK checks of the check catalogue. Each check has a page of its own: what it catches, why it matters, an example, how better_erc finds it, the usual fix and where to read more, with the test schematics that show it firing.

References used throughout:

  • AN2867 · ST, Guidelines for oscillator design on STM8AF/AL/S and STM32 MCUs/MPUs, Rev 24 (2026). Load capacitance (§3.3), gain margin gm/gmcrit > 5 (§3.4), drive level and the external resistor (§3.5), pullability and C0G load capacitors (§3.7), low-speed oscillators (§4.1), crystal selection (§4.2), PCB guidelines (§7.1), LSE and PC13 (§7.4), MEMS oscillators and bypass mode (§10). st.com/an2867
  • AN5096 · ST, Getting started with STM32G0 MCUs hardware development, Rev 4 (2025). VBAT (§1.1.1), NRST modes and the reset pulse generator (§1.3.2), HSE and HSE bypass (§2.1), HSI16 accuracy (§2.2), HSI48 with CRS for USB (§2.3), reset in the reference design (§6.1.2). st.com/an5096
  • AN4899 · ST, Guidelines for GPIO hardware settings and low-power consumption on STM32 MCUs, Rev 4 (2026): NRST internal pull-up (§6.7), VBAT-domain GPIOs limited to 3 mA (§6.8). st.com/an4899
  • STM32G0B1 · ST datasheet DS13560 Rev 6 (2026): HSE 4-48 MHz (Table 42), LSE drive settings and Gmcritmax (Table 43), NRST input (§5.3.15). st.com/stm32g0b1re.pdf
  • RM0008 · ST, STM32F101xx ... STM32F107xx reference manual, Rev 21 (2021): HSI 1% (§7.2.2), PLL for the 48 MHz USB clock (§7.2.3). st.com/rm0008
  • RP2350 · Raspberry Pi, RP2350 Datasheet: XOSC 1-50 MHz, 5 MHz minimum for the PLL, external clock into XIN (§8.2.1). datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf
  • RP2350 HW · Raspberry Pi, Hardware design with RP2350: crystal, 15 pF load capacitors, 1 kΩ series resistor (§4, §4.1). datasheets.raspberrypi.com/rp2350/hardware-design-with-rp2350.pdf
  • USB 2.0 · USB-IF, Universal Serial Bus Specification, Revision 2.0 (2000), §7.1.11 Data Signaling Rate (high speed ±500 ppm, full speed ±0.25 %). usb.org/document-library/usb-20-specification
  • LAN8720A · Microchip, LAN8720A/LAN8720AI datasheet, DS00002165B: clock circuit, 25 MHz crystal with a ±50 ppm budget (§5.6, Table 5-13). ww1.microchip.com/…/00002165B.pdf
  • ESP32 checklist · Espressif, ESP Hardware Design Guidelines, Schematic Checklist (ESP32): Clock Source (40 MHz crystal within ±10 ppm, RTC crystal), Chip Power-up and Reset Timing. docs.espressif.com/…/schematic-checklist.html
  • ABM8 · Abracon, ABM8 ceramic SMD crystal datasheet (rev. 2020): outline drawing, pads 2 and 4 are GND. abracon.com/Resonators/ABM8.pdf
  • SiT8008 · SiTime, SiT8008B Low Power Programmable Oscillator datasheet: Table 2 (OE/ST/NC pin, pull-up note). sitime.com/datasheet/SiT8008
  • TPS3823 · TI, TPS382x Voltage Monitor With Watchdog Timer, SLVS165O (2025): push-pull and open-drain outputs (§7.3.3), watchdog input (§7.3.4). ti.com/lit/ds/symlink/tps3823.pdf
  • CDCLVC1102 · TI, CDCLVC11xx 3.3-V and 2.5-V LVCMOS High-Performance Clock Buffer Family, SCAS895B (2017): series resistor near the driver (§8.1, §9.2.1). ti.com/lit/ds/symlink/cdclvc1102.pdf
  • Wikipedia, Crystal oscillator, Pierce oscillator, Power-on reset, Watchdog timer, Real-time clock · readable overviews. en.wikipedia.org/wiki/Crystal_oscillator, en.wikipedia.org/wiki/Pierce_oscillator, en.wikipedia.org/wiki/Power-on_reset, en.wikipedia.org/wiki/Watchdog_timer, en.wikipedia.org/wiki/Real-time_clock
  • Johnson & Graham · High-Speed Digital Design: A Handbook of Black Magic (Prentice Hall, 1993), chapters 11 (clock distribution) and 12 (clock oscillators).

Checks

Check Severity Status
CLK-1 MCU with CAN or USB and no crystal error planned
CLK-2 HS crystal capacitors should be high frequency rated warning planned
CLK-3 Crystal NC pins may need to go to ground warning runs
CLK-4 Crystal pins used as IO: warn about low drive strength warning planned
CLK-5 No pull-up on a reset_n input warning runs
CLK-6 Suggest a cap on buttons to reset inputs; note hw debounce in the programmer report suggestion runs
CLK-7 No capacitor on a reset_n input: noise and brown-outs reach it ≈ CLK-6 warning runs
CLK-8 Crystal load capacitors vs the crystal's CL: C1 = C2 ≈ 2·CL − Cstray; far off means the frequency is off or it does not start warning planned
CLK-9 Crystal ESR and drive level vs the oscillator: gain margin (gm / gm_crit) under 5, or no series resistor where the drive level is exceeded (ST AN2867) warning planned
CLK-10 Crystal frequency outside the range the part's oscillator supports error planned
CLK-11 32.768 kHz crystal with a CL or ESR the low-power oscillator cannot drive warning planned
CLK-12 Active oscillator output into a crystal pin without bypass mode or the attenuation the datasheet asks for warning planned
CLK-13 Oscillator or clock buffer output-enable / standby pin floating error planned
CLK-14 Reset input driven by a push-pull output: fights the debugger, supervisor or button that also drives it; reset lines are open-drain warning runs
CLK-15 One reset net shared by the MCU and its peripherals: a debugger reset (or a watchdog) resets the whole board, and peripherals lose configuration on every firmware restart ≈ IO-13 warning runs
CLK-16 RTC in use with VBAT floating, no backup source, or no 32 kHz crystal warning planned
CLK-17 External watchdog with no way to disable it for debugging (jumper, DNM resistor) suggestion planned
CLK-18 Clock output fanned out to several loads without a buffer or series termination suggestion runs
CLK-19 Crystal tolerance vs the interface that uses it: USB HS ±500 ppm, Ethernet ±50 ppm, BLE ±50 ppm or tighter, CAN FD per bit rate warning planned