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
Uploading MicroPython to Wemos D1 leads to garbage
-
- Posts: 9
- Joined: Sun Mar 18, 2018 3:05 pm
Re: Uploading MicroPython to Wemos D1 leads to garbage
Re: Uploading MicroPython to Wemos D1 leads to garbage
If you can set the baud rate to 76800 at screen, then you can read the "Garbage", which may tell you more about what's going on.
Re: Uploading MicroPython to Wemos D1 leads to garbage
I always have to do a reset after it says hard resetting. If I don't I get garbage.
Re: Uploading MicroPython to Wemos D1 leads to garbage
After flash, an/or reset I get:
l▒▒ln▒p;l▒$▒▒|▒▒{▒#4 ets_task(40100164, 3, 3fff8398, 4)
could not open file 'main.py' for reading
MicroPython v1.8.6-7-gefd0927 on 2016-11-10; ESP module with ESP8266
Type "help()" for more information.
>>>
Using Putty in Win10 I get no response from keyboard. Does it echo? if so where does output go. obviously I'm sort of net.
l▒▒ln▒p;l▒$▒▒|▒▒{▒#4 ets_task(40100164, 3, 3fff8398, 4)
could not open file 'main.py' for reading
MicroPython v1.8.6-7-gefd0927 on 2016-11-10; ESP module with ESP8266
Type "help()" for more information.
>>>
Using Putty in Win10 I get no response from keyboard. Does it echo? if so where does output go. obviously I'm sort of net.
Re: Uploading MicroPython to Wemos D1 leads to garbage
In putty make sure that you have flow control disabled.
Re: Uploading MicroPython to Wemos D1 leads to garbage
Thanks Dave, That did it.