[SOLVED] rshell after disconnection board cannot connect again

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
lazarvgd
Posts: 39
Joined: Sun May 20, 2018 8:57 am

[SOLVED] rshell after disconnection board cannot connect again

Post by lazarvgd » Wed Apr 14, 2021 2:15 pm

Hello, I am facing an issue with ESP32 board(node mcu esp-32s) and rshell. I am able to flash the board and upload the firmware, but once I create main.py with blink code (see the code below) and disconnect the board from the pc, I am not able to connect with rshell later when board is connected to pc again.

I am running following command to connect:

Code: Select all

rshell -p /dev/tty.usbserial-0001 -b 115200
Using buffer-size of 32
Connecting to /dev/tty.usbserial-0001 (buffer-size 32)...
Trying to connect to REPL .
code that is in main.py file:

Code: Select all

import machine
import time
pin = machine.Pin(2, machine.Pin.OUT)
while True:
    pin.on()
    time.sleep(0.5)
    pin.off()
    time.sleep(0.5)
Am I doing something wrong? What could cause this issue? Any ideas?

thanks :)
Last edited by lazarvgd on Thu Apr 15, 2021 4:34 am, edited 1 time in total.

lazarvgd
Posts: 39
Joined: Sun May 20, 2018 8:57 am

Re: rshell after disconnection board cannot connect again

Post by lazarvgd » Thu Apr 15, 2021 4:33 am

The problem is that with new mac os BigSure usb port becomes busy for some reason and that caused the problem.
Switching to linux pc I solved the problem, since I didn't know how to fix it on mac.

Post Reply