I am playing with raw repl, and this is a so good tool.
But if I run two time this file :
Code: Select all
import sys from rshell import main from rshell import pyboard pyb = pyboard.Pyboard('COM4') pyb.enter_raw_repl() sys.stdout.write(pyb.exec("print(1+1)")) pyb.exit_raw_repl()
PyboardError: failed to access COM4
if I run twice the script.
I need to reset the Pyboard to have the script running right again.
Any information about this ?