mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-10-08 09:01:23 +02:00
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:
1 parent
54852d1241
commit
c9bdc6efc5
2 files changed
+18
-7
No files matched your search
Binary file not shown.
Reference in new issue
Block a user