New to MicroPython, putty showing garbage chars

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
bitninja
Posts: 165
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Re: New to MicroPython, putty showing garbage chars

Post by bitninja » Sun Jun 13, 2021 2:20 am

That is correct. You should not have to press anything. Only, if the terminal is unresponsive do I try the RESET button. If that doesn't work I unplug/plug.

tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Sun Jun 13, 2021 2:30 am

ok i pressed reset button but it just shows the same thing

snake77
Posts: 31
Joined: Thu Jun 24, 2021 11:26 pm

Re: New to MicroPython, putty showing garbage chars

Post by snake77 » Fri Jun 25, 2021 12:13 am

I'm having a similar issue.

Does the default MicroPython-xxxxx WiFi AP show up for you? Or is it just the REPL over serial that doesn't work?

snake77
Posts: 31
Joined: Thu Jun 24, 2021 11:26 pm

Re: New to MicroPython, putty showing garbage chars

Post by snake77 » Sat Jun 26, 2021 8:13 pm

My issue just resolved itself by using

Code: Select all

-fm dout
option during flashing. Maybe this is the solution for you, too.

tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Thu Jul 01, 2021 4:59 pm

I'll try that, can you give me the full command just in case? Are you using an ESP8266?

Are you using this for flashing?

Code: Select all

esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dout 0 esp8266-20170108-v1.8.7.bin

snake77
Posts: 31
Joined: Thu Jun 24, 2021 11:26 pm

Re: New to MicroPython, putty showing garbage chars

Post by snake77 » Thu Jul 01, 2021 10:09 pm

Yes, I'm using a ESP8266 on a ESP-01S board. This is the thread I opened: viewtopic.php?f=16&t=10741 You can find some example commands there. For me, -fm dout made all the difference. Anything with worked as long as I used that option.

Did you check if your MicroPython-xxxxxx WiFi AP shows up and it's only the serial console that doesn't work?

Also, I think I'm using a different firmware: I have 1.16.

tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Fri Jul 02, 2021 12:41 pm

I tried the -dout and I'm still getting the same thing as before. I'm not able to access REPL using rshell

It installs the MicroPython fine, but it says 'No Micropython boards connected'

tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Fri Jul 02, 2021 12:42 pm

How are you connecting to ESP8266 after flashing? Are you using rshell?

snake77
Posts: 31
Joined: Thu Jun 24, 2021 11:26 pm

Re: New to MicroPython, putty showing garbage chars

Post by snake77 » Fri Jul 02, 2021 2:29 pm

tonynsx wrote:
Fri Jul 02, 2021 12:41 pm
I tried the -dout and I'm still getting the same thing as before
I'm sorry that this didn't fix it for you.
tonynsx wrote:
Fri Jul 02, 2021 12:42 pm
How are you connecting to ESP8266 after flashing? Are you using rshell?
I'm on Linux and I'm currently using screen. When connecting the USB adapter, I'm using dmesg to find out the device port.

Code: Select all

dmesg -wH
screen /dev/ttyUSB0 115200
If you're not on Linux, then I don't know how to help you with this part. :(

I also found out that my USB power isn't super stable. Did you try every USB port? Did you try with an external power source?

Also, after successfully flashing MicroPython, by default the AP_IF (access point network interface) is enabled and you should see a "MicroPython-xxxxxx" WiFi SSID! Just use your phone or something to check all the available WiFi networks. Doesn't have to do anything with the serial connection. But this way you can find out if MicroPython runs and it's only the serial connection that's faulty.

tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Fri Jul 02, 2021 4:00 pm

I'm on Linux (Raspberry Pi). I installed screen, and I'm connected to USB0, and when I run the command

Code: Select all

screen /dev/ttyUSB0 115200
, I get a black screen , and when I press the reset button on the ESP8266, I don't get REPL, it says Mode : SoftAP

I'm not seeing the ESP8266XXX Wi-Fi either

Post Reply