Skip to the content.

E33 — CH32 power-on, reset and reflash: timing and soak

   
ID E33
Date 2026-12-04
Status done: +3V3_CH reaches 3.0 V 14.4 ms after PWR_EN; CH32 firmware banner 65.48 ms ± 7 µs after PWR_EN, 14.90 ms ± 2 µs after NRST release; 200/200 power cycles, 100/100 resets, 7/7 reflashes OK
Decisions D112 (DECISIONS.md)
Board #1 (rev A), CH32 ×32 main firmware
Firmware + results fw/tests/2026-12-04-1-links, raw: power.txt, rail_on.csv, rail_off.csv
Scripts links_power.py; RP pwrt on\|off, rstt [ms], pwrdump (fw/rp/src/board.c ch_power_timing)

Summary: The RP switches the CH32 rail (PWR_EN), samples +3V3_CH with its ADC (~2 µs per sample) and timestamps the first byte and the boot banner on the CH32 UART. The rail rise is set by the load switch soft start (t10 1.87 ms, t90 13.8 ms). The CH32 then spends about 49 ms in its bootloader window before the firmware prints: a power cycle costs 65 ms, a reset only 15 ms.

rail

Results

  min median max sd
rail 10 % (µs after PWR_EN) 1863 1870 1877 3
rail 90 % 13774 13835 13897 22
rail 3.0 V 14329 14391 14457 24
first UART byte 16413* 63401 63420 —
firmware banner 65468 65484 65502 7
after NRST release: first byte 12808 12814 12822 2
banner 14891 14897 14904 2

*One cycle saw a stray byte at 16.4 ms (the UART RX line while the rail rises); otherwise the first byte is the firmware’s leading newline, 2.1 ms before the banner.

Lesson

A results parser bug looked like 200 failures in the first run (the key/value parser was shifted by two words). Check one raw line against the parsed values before believing a failure count.

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