Skip to the content.

E10 — SD 48 MHz high-speed at every CH32 clock

   
ID E10
Date 2026-12-02
Status done
Decisions D86 (DECISIONS.md)
Board #1 (rev A, 12 MHz crystals)
Firmware + results fw/tests/2026-12-02-8-sd-hs-fix (sources, binaries, results.txt)
Scripts sdtune.py, sdhs_verify.py

Summary: Rising-edge sampling after CMD6 + RST_LGC before every read: 48 MHz SD works at HCLK 48/96/120 MHz.

What

Timing sweep (sample edge × clock phase × input delay) after CMD6, then the root cause of a read-length glitch.

Results

Update (E13, D91): the “leftover data” was most likely a stray 512-byte transfer armed by sd_cmd6 (a non-zero BKNUM write starts a transfer). Fixed; RST_LGC kept as a guard. See E13.

Lesson

Don’t judge PASS with a substring; when every setting fails the same way, suspect the test sequence.

Chip facts and numbers: fw/LEARNINGS.md. All experiments: index.