Skip to content

Commit af35b49

Browse files
committed
Add delay after stopping RTT to allow JLink Remote Server to release connection
1 parent 492285d commit af35b49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bmlab_toolkit/rtt_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ def rtt_single_device(serial, ip_addr, mcu, programmer_type, reset, timeout, msg
235235
file_handle.close()
236236
prog.stop_rtt()
237237
prog.disconnect_target()
238+
# Give JLink Remote Server time to release connection
239+
time.sleep(0.5)
238240

239241
if not output_file:
240242
print("\nDone.")

0 commit comments

Comments
 (0)