Upload to ESP32 board

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
james_km69
Posts: 9
Joined: Wed Aug 15, 2018 8:31 pm

Upload to ESP32 board

Post by james_km69 » Sat Aug 25, 2018 5:11 pm

I am having a hard time uploading file to my ESP32 via Com port.
It is more like hit or miss. for instance, I update my file (test.py) on PC and using shell command to connect to the port and upload: ampy --port COM4 --baud 115200 put test.py
Upon submitting the file I have to hold down Boot bottom to be able to copy the file to my board. But it works sometimes and sometimes it wont. very frustrating. I changed the time sleep to 4 second in pyboard.py but no luck.

Has anyone came a cross this issue and fixed it?
Thanks

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

Re: Upload to ESP32 board

Post by Roberthh » Sat Aug 25, 2018 7:40 pm

It seems that rshell is working fine, with the option --buffer-size 30. Also, if you run a more recent firmware, webrepl should work, which includes a file transfer option. b.t.w.: which type/make of board are you using?

james_km69
Posts: 9
Joined: Wed Aug 15, 2018 8:31 pm

Re: Upload to ESP32 board

Post by james_km69 » Sat Aug 25, 2018 9:41 pm

Thanks Roberthh. I will give it a shot and update the firmware

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Upload to ESP32 board

Post by pythoncoder » Sun Aug 26, 2018 5:50 am

The rshell option -a is also advisable if you transfer binary files (e.g. precompiled .mpy files).
Peter Hinch
Index to my micropython libraries.

james_km69
Posts: 9
Joined: Wed Aug 15, 2018 8:31 pm

Re: Upload to ESP32 board

Post by james_km69 » Mon Aug 27, 2018 1:07 pm

Thanks pythoncoder. I never worked with rshell but I heard many people do. I shall try that soon

Post Reply