mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-10-04 15:06:57 +02:00
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.