Uploading MicroPython to Wemos D1 leads to garbage

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Henrique Miranda
Posts: 9
Joined: Sun Mar 18, 2018 3:05 pm

Re: Uploading MicroPython to Wemos D1 leads to garbage

Post by Henrique Miranda » Sun Aug 05, 2018 11:48 am

ris8_allo_zen0 wrote:
Sun Mar 11, 2018 5:23 pm
Hi 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
Try this solution: viewtopic.php?f=16&t=4557&p=29166#p29166

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

Re: Uploading MicroPython to Wemos D1 leads to garbage

Post by Roberthh » Sun Aug 05, 2018 12:18 pm

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.

rca
Posts: 3
Joined: Sat Jul 14, 2018 6:20 pm

Re: Uploading MicroPython to Wemos D1 leads to garbage

Post by rca » Wed Aug 08, 2018 5:01 am

I always have to do a reset after it says hard resetting. If I don't I get garbage.

terry24q
Posts: 3
Joined: Wed Mar 20, 2019 8:14 pm

Re: Uploading MicroPython to Wemos D1 leads to garbage

Post by terry24q » Wed Mar 20, 2019 8:30 pm

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.

User avatar
dhylands
Posts: 3592
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Uploading MicroPython to Wemos D1 leads to garbage

Post by dhylands » Wed Mar 20, 2019 8:38 pm

In putty make sure that you have flow control disabled.

terry24q
Posts: 3
Joined: Wed Mar 20, 2019 8:14 pm

Re: Uploading MicroPython to Wemos D1 leads to garbage

Post by terry24q » Wed Mar 20, 2019 9:56 pm

Thanks Dave, That did it.

Post Reply