Files
Embedded-Hacking/WEEK04/WEEK04-BN.pdf
T
Kevin Thomas c9bdc6efc5 Week 4-BN: flash from the BN console without blocking it (Popen, not run)
subprocess.run blocks the console until OpenOCD exits (and can hang it if the
probe is contended). Use subprocess.Popen with output to flash.log and
start_new_session, then poll p.poll() or read the log. Verified: Popen returns in
~1 ms, flash completes ~2 s later with 'Verified OK'. Applied to Steps 21 and 29.
2026-10-03 16:59:06 -04:00

1.4 MiB