[Solved] Garbage from REPL prompt

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
richarddavison
Posts: 3
Joined: Thu Aug 10, 2017 9:06 am

[Solved] Garbage from REPL prompt

Post by richarddavison » Thu Aug 10, 2017 9:33 am

Hi,

I recently ordered a couple of Weeks D1 mini lite chips.

I previously managed to successfully flash micropython on another chip but accidentally fried it (high voltage hehe).

But this time around I only get garbage from screen command. Erase and flash is successful, all chips produce the same result in screen.

I flashed with the correct slower baud rate.

I read something that you should connect D3 to ground to put the ESP8266 in "flash mode" but not sure if this applies to devices with built in USB such as the D1 mini lite.

Thanks for any help!
Last edited by richarddavison on Fri Sep 01, 2017 12:01 pm, edited 1 time in total.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Garbage from REPL prompt

Post by deshipu » Fri Aug 11, 2017 5:28 pm

The D1 Mini Lite boards use an ESP8282 chip, not ESP8266, and those have a built-in flash memory of different type that the most commonly used memory on the ESP8266 boards. You need to set the flash type to dout for those boards, see: viewtopic.php?f=16&t=3217&p=19111

richarddavison
Posts: 3
Joined: Thu Aug 10, 2017 9:06 am

Re: Garbage from REPL prompt

Post by richarddavison » Fri Sep 01, 2017 12:00 pm

Solved it using:

Code: Select all

python3 /usr/local/lib/python3.6/site-packages/esptool.py -p /dev/tty.wchusbserial1440 --baud 115200 write_flash --flash_mode=dout --flash_size=detect 0 build/firmware-combined.bin
:)

Post Reply