Re: Uploading MicroPython to Wemos D1 leads to garbage
Posted: Sun Aug 05, 2018 11:48 am
Try this solution: viewtopic.php?f=16&t=4557&p=29166#p29166ris8_allo_zen0 wrote: ↑Sun Mar 11, 2018 5:23 pmHi all,
I've used the my WeMos D1 Mini clone for other projects before, but seems like MicroPython doesn't want to run correctly.
I used the following command to flash (from https://docs.micropython.org/en/latest/ ... e-firmware):
esptool.py --port /dev/tty.wchusbserial1420 --baud 115200 write_flash --flash_size=detect 0 ~/Downloads/esp8266-20171101-v1.9.3.bin
Here's the output:
esptool.py v2.3.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0040
Compressed 600888 bytes to 392073...
Wrote 600888 bytes (392073 compressed) at 0x00000000 in 34.9 seconds (effective 137.8 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
And after typing "screen /dev/tty.wchusbserial1420 115200", this is all I get:
sdl��|�l�|�l�c|����r�c�c��og�lnn���cx��drlslx�g�
Typing on the keyboard doesn't show any reaction.
What I've tried so far:
* change baudrate of screen: just garbage of different length.
* change baudrate of esptool to 460800: uploading fails in the step "Configuring flash size...".
* uploading another program with PlatformIO: works fine.
* using the same esptool executable and command line of the PlatformIO program above: same result.
* adding parameter "-fm dio": the garbage output continues in loop.
* uploading a previous version like 1.8.7: same result.
* uploading a 512k version of 1.9.3: same result.
Thanks for any help or suggestion!
Kind regards,
Enrico