Skip to content

Commit

Permalink
Merge pull request #4 from cocodmdr/fix_ConnectionRefusedError_and_pr…
Browse files Browse the repository at this point in the history
…int_not_visible

Fix connection refused error and print not visible
  • Loading branch information
maxgerhardt authored Oct 18, 2023
2 parents f94a936 + ed3edb5 commit e51afb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions add_swo_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Import("env")

def swo_viewer_task(*args, **kwargs):
os.environ['PYTHONUNBUFFERED'] = '1'
print("Entrypoint")
board = env.BoardConfig()
platform = env.PioPlatform()
Expand Down
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 e51afb3

Please sign in to comment.