Ampy, rshell on ESP32?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
100times
Posts: 2
Joined: Thu May 25, 2017 1:23 pm

Ampy, rshell on ESP32?

Post by 100times » Thu May 25, 2017 1:27 pm

Hello,

I've been unable to get Ampy, Rshell or mpfshell to work with Micropython on the ESP32 - has anyone had any luck with any of these tools?

The REPL is working fine. Ampy works a little bit, or at least will list the flash folder, but that's about it.

Thanks!

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Ampy, rshell on ESP32?

Post by dhylands » Thu May 25, 2017 5:12 pm

rshell relies on pyboard.py, so generally if you can get stuff working with pyboard.py then rshell should work.

The default buffer size used in rshell is tuned for direct USB connections, like found on the pyboard. Devices which use a USB-serial converter typically need to also use --buffer-size=30

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Ampy, rshell on ESP32?

Post by Roberthh » Thu May 25, 2017 7:36 pm

rshell works with the esp32 port. I just used it on an esp32 thing. Since there is no /flash directory by default on the esp32 device (atz least on mine), the devices files are only visible under /pyboard, which may be a little bit confusing. Command line for calling:

Code: Select all

rshell --buffer-size=30 -p /dev/ttyUSB0 

100times
Posts: 2
Joined: Thu May 25, 2017 1:23 pm

Re: Ampy, rshell on ESP32?

Post by 100times » Sat May 27, 2017 6:23 pm

Thank you so much for this! I have managed to get rshell working perfectly on Windows using the buffer-size option.

Post Reply