Page 1 of 1

Upload to ESP32 board

Posted: Sat Aug 25, 2018 5:11 pm
by james_km69
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

Re: Upload to ESP32 board

Posted: Sat Aug 25, 2018 7:40 pm
by Roberthh
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?

Re: Upload to ESP32 board

Posted: Sat Aug 25, 2018 9:41 pm
by james_km69
Thanks Roberthh. I will give it a shot and update the firmware

Re: Upload to ESP32 board

Posted: Sun Aug 26, 2018 5:50 am
by pythoncoder
The rshell option -a is also advisable if you transfer binary files (e.g. precompiled .mpy files).

Re: Upload to ESP32 board

Posted: Mon Aug 27, 2018 1:07 pm
by james_km69
Thanks pythoncoder. I never worked with rshell but I heard many people do. I shall try that soon