Skip to the content.

B2 — microSD, card detect, feature tests

   
ID B2
Date 2026-12-02
Status done
Decisions D75, D76, D77 (DECISIONS.md)
Board #1 (rev A, 12 MHz crystals)
Firmware + results fw/tests/2026-12-02-2-sd-features (sources, binaries, results.txt)
Scripts chsd.py, features.py

Summary: SD read 7.4 MB/s and verified writes 8.1 MB/s; SD_CD polarity; Si5351 → capture path 1–100 MHz; counter → DVP pins bit-exact.

What

SDMMC bring-up (init, read, non-destructive write), card-detect polarity, and the board’s signal paths with on-board stimuli.

Results

Lesson

Wait for CMD high + 16 clocks between SD commands; never trust the first DMA transfer: prefill and compare two reads.

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