Closed joerg65 closed 3 years ago
As no one seems to have time to look inside this, I as a noob in Python replaced this line 478 in semihost.py and the error is gone:
#target_str = six.ensure_str(bytes(bytearray('')), encoding="ascii", errors="ignore")
target_str = ""
Hi @joerg65, just getting to it. Sorry about the bug! Thanks for reporting it. Sadly, this would have been caught by the semihosting unit test, but that test was somehow causing Python to crash on Travis CI so it was disabled.
Hi @joerg65, just getting to it. Sorry about the bug! Thanks for reporting it. Sadly, this would have been caught by the semihosting unit test, but that test was somehow causing Python to crash on Travis CI so it was disabled.
Thank you, I tried your commit and it works for me.
Good to hear! Thanks for reporting back.
I try to get debug messages via semihosting from a nrf52840 device and each message I get TypeError:
BTW. I use a Pitaya-Link, and I don't know if this issue is related to pyOCD or Pitaya-Link firmware.