I have a ESP32D board which I've erased the flash and installed Micropython 1.19.1 from the regular downloads page(esp32-20220618-v1.19.1.bin). I'm using `rshell` to connect. Everything works fine for the first couple of minutes (or operations..), but every time, after copying a few files, or playing a little bit with the REPL, the board stucks and when I try to reconnect with rshell I get the following output:
Code: Select all
> rshell -p /dev/tty.usbserial-0001
Using buffer-size of 32
Connecting to /dev/tty.usbserial-0001 (buffer-size 32)...
Trying to connect to REPL .
When I interrupt the process I get the following traceback:
Code: Select all
Traceback (most recent call last):
File "/Users/zmoshe/.pyenv/versions/3.10.1/bin/rshell", line 8, in <module>
sys.exit(main())
File "/Users/zmoshe/.pyenv/versions/3.10.1/lib/python3.10/site-packages/rshell/command_line.py", line 4, in main
rshell.main.main()
File "/Users/zmoshe/.pyenv/versions/3.10.1/lib/python3.10/site-packages/rshell/main.py", line 3082, in main
real_main()
File "/Users/zmoshe/.pyenv/versions/3.10.1/lib/python3.10/site-packages/rshell/main.py", line 3044, in real_main
connect(args.port, baud=args.baud, wait=args.wait, user=args.user, password=args.password)
File "/Users/zmoshe/.pyenv/versions/3.10.1/lib/python3.10/site-packages/rshell/main.py", line 1387, in connect
connect_serial(port, baud=baud, wait=wait)
File "/Users/zmoshe/.pyenv/versions/3.10.1/lib/python3.10/site-packages/rshell/main.py", line 1411, in connect_serial
dev = DeviceSerial(port, baud, wait)
File "/Users/zmoshe/.pyenv/versions/3.10.1/lib/python3.10/site-packages/rshell/main.py", line 1729, in __init__
data = pyb.read_until(1, b'>>> ', timeout=0.1)
File "/Users/zmoshe/.pyenv/versions/3.10.1/lib/python3.10/site-packages/rshell/pyboard.py", line 164, in read_until
data = self.serial.read(min_num_bytes)
File "/Users/zmoshe/.pyenv/versions/3.10.1/lib/python3.10/site-packages/serial/serialposix.py", line 565, in read
ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
KeyboardInterrupt
I can only solve this by erasing flash again and reinstalling Micropython but this only helps for a few minutes until it starts again..
Any idea what is happening here? Any other steps I can take to solve or further debug this?
I'm not even sure what direction to look at in order to solve this...
Many thanks!
Zach