Skip to content

Commit

Permalink
swo_parser.py: fix error: ConnectionRefusedError: [Errno 61] Connecti…
Browse files Browse the repository at this point in the history
…on refused; by adding a sleep time because script is starting up too fast.
  • Loading branch information
Corentin de Massol committed Oct 18, 2023
1 parent f94a936 commit 4b42aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swo_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def parse_itm_bytes(self, bstring):

#### Main program ####
def swo_parser_main():
time.sleep(3)
# Set up the socket to the OpenOCD Tcl server
HOST = 'localhost'
PORT = 6666
Expand Down Expand Up @@ -195,4 +196,4 @@ def swo_parser_main():
#tcl_socket.sendall(b'tcl_trace off\n\x1a')
#tcl_socket.sendall(b'shutdown\n\x1a')
if __name__ == "__main__":
swo_parser_main()
swo_parser_main()

0 comments on commit 4b42aac

Please sign in to comment.