E6 — CH32 clock headroom (HCLK 48/96/120 MHz)
| ID | E6 |
| Date | 2026-12-02 |
| Status | done |
| Decisions | D83, D87 (DECISIONS.md) |
| Board | #1 (rev A, 12 MHz crystals) |
| Firmware + results | fw/tests/2026-12-02-6-sd-stream-clocks (sources, binaries, results.txt) |
| Scripts | clockspeed.py |
Summary: HCLK 48/96/120 MHz all pass selftest; ADC1 1.71/3.42/4.28 MS/s; ×32 became the default (D87).
What
Build option RP417_PLL_MUL (PLL = HSE × mul, HCLK = PLL/4) and the full test set at ×16/×32/×40.
Results
- selftest 11/11 and exact timebase at all three; flash latency HCLK/2 needed above 60 MHz.
- ADC1 1.71 / 3.42 / 4.28 MS/s; die +1 °C at 120 MHz.
- SD high-speed failed at ×32/×40 (fixed in E10); default clock moved to ×32 = HCLK 96 MHz (D87).
Lesson
When raising a core clock, re-test every peripheral that shares the PLL.
Chip facts and numbers: fw/LEARNINGS.md. All experiments: index.