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
Upload to ESP32 board
Re: Upload to ESP32 board
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?
-
- Posts: 9
- Joined: Wed Aug 15, 2018 8:31 pm
Re: Upload to ESP32 board
Thanks Roberthh. I will give it a shot and update the firmware
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Upload to ESP32 board
The rshell option -a is also advisable if you transfer binary files (e.g. precompiled .mpy files).
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
-
- Posts: 9
- Joined: Wed Aug 15, 2018 8:31 pm
Re: Upload to ESP32 board
Thanks pythoncoder. I never worked with rshell but I heard many people do. I shall try that soon