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.
This commit is contained in:
Kevin Thomas committed 2026-10-03 16:59:06 -04:00
1 parent 54852d1241
commit c9bdc6efc5
2 files changed
+18 -7

No files matched your search

Binary file not shown.