either define export RSHELL_PORT=/dev/ttyACM0
rshell--buffer-size=32 connect serial /dev/ttyACM0 57600
It just hangs. could not find a baud rate, so went back to
export RSHELL_PORT=/dev/ttyACM0 and using default
What causes /dev/ttyACM0 to change to /dev/ttyACM1 or /dev/ttyACM2?
A collaborator Nathan tried a blinky LED program and came across this behavior:
That need for reset might come from his replacement of main.py. A main interrupt service routine loop must becopy both with rshell commands:
rshell --buffer-size=32 -p /dev/ttyACM0 cp m2.py /flash
rshell --buffer-size=32 -p /dev/ttyACM0 cp boot.py /flash
press reset on the board and it will now start blinking, but it won't
respond to rshell anymore, to get that back I held the button next to
reset then also pressed reset, then released reset while still holding
the other button, then finally let the other button go.. and rshell
could again connect.
part of micropython to handle the REPL, so I imagine that is the right place to add your own extra interrupts and their service routines.
Nathan figured out how to user the user button and reset to get back to a bootable state as in:
Is there a good place to read about
the underlying main interrupt service routine loop in micropython?