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.
tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

New to MicroPython, putty showing garbage chars

Post by tonynsx » Fri Jun 11, 2021 5:14 pm

I'm trying to setup ESP8266 with Micropython, but when I open from Putty, I'm getting this.

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 31108, room 16
tail 4
chksum 0x28
load 0x3ffe8000, len 1100, room 4
tail 8
chksum 0x4e
load 0x3ffe8450, len 3268, room 0
tail 4
chksum 0x09
csum 0x09
#0 ets_task(4020a9c0, 31, 3ffe9170, 4)
#1 ets_task(4021e890, 32, 3ffeabe0, 34)
#2 ets_task(4021d8c4, 20, 3ffea940, 3)
rf cal sector: 1019
freq trace enable 0
rf[112] : 00
rf[113] : 00
rf[114] : 01

SDK ver: 2.2.0-dev(9422289) compiled @ Nov 3 2017 19:40:08
phy ver: 1136_0, pp ver: 10.2

mode : softAP(62:01:94:70:ef:2e)
add if1
#3 ets_task(4020f4ac, ▒)▒*▒▒+Z▒▒▒Q▒▒▒▒▒UU▒U)B▒*▒*Z▒Z
UR▒V▒UBR5J+▒▒T▒▒▒E▒K▒▒▒▒k▒▒U▒ZT▒TT▒▒▒Q▒*U▒▒
▒UB▒▒ZUP▒▒▒RbUUQ▒▒▒▒UT▒U▒▒-U▒▒U▒▒▒▒▒V▒▒tס

Thanks,

Tony

User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: New to MicroPython, putty showing garbage chars

Post by aivarannamaa » Fri Jun 11, 2021 8:21 pm

I've heard that a phase of ESP start-up outputs data with a baud rate different from the usual 115200. I think the best you can do is simply ignore this part of the output.
Aivar Annamaa
https://thonny.org

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

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Sat Jun 12, 2021 12:28 am

I don't mind the characters, but I can't even do anything else. If I press enter, or CTRL + C, nothing happens. It looks like it freezes

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: New to MicroPython, putty showing garbage chars

Post by mattyt » Sat Jun 12, 2021 1:55 am

As @aivarannamaa mentioned, the ESP32 briefly outputs data at 9600 baud at boot (before MicroPython starts). Since you can see these characters, it seems likely that you have Putty incorrectly configured with the wrong baud rate; change it to 115200 (Category->Connection->Serial) and try again.

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

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Sat Jun 12, 2021 12:41 pm

I'm using baud rate 115200. And this is all I get. When I type AT it shows random characters, tס▒▒


ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 30712, room 16
tail 8
chksum 0x16
load 0x3ffe8000, len 996, room 0
tail 4
chksum 0x70
load 0x3ffe83f0, len 1064, room 4
tail 4
chksum 0xa3
csum 0xa3
rf cal sector: 1019
rf[112] : 00
rf[113] : 00
rf[114] : 01

SDK ver: 2.0.0(5a875ba) compiled @ Aug 9 2016 15:12:27
phy ver: 1055, pp ver: 10.2

mode : softAP(62:01:94:70:բT▒▒V▒ZuV▒j▒
▒▒U▒QU▒▒▒UB▒▒ZUP▒▒▒R▒UUT▒▒▒UT▒U▒▒-U▒▒U▒V▒▒▒V▒▒tס▒T▒▒▒▒Z▒+▒j▒
▒▒U▒QU▒▒▒UB▒▒ZUP▒▒▒RbUU▒▒▒▒UT▒U▒uZU▒▒U▒V▒▒▒▒▒▒tס▒▒

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

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Sat Jun 12, 2021 12:51 pm

I'm powering the esp8266 via my laptop's usb port. Not sure if that matters because I read somewhere that esp8266 may need its own power (not from a laptop usb)

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: New to MicroPython, putty showing garbage chars

Post by scruss » Sat Jun 12, 2021 2:48 pm

Is this a fresh MicroPython image? The SDK 2.x.x messages and 2016/2017 dates make me suspect it isn't. Try one of the ones from the ESP8266 download page.

Depending on the module, powering from the USB port is usually fine - but may not be if you've got power-hungry devices like a string of RGB LEDs hanging off the board

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

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Sat Jun 12, 2021 3:00 pm

That's where I downloaded it from. I'm using the latest image esp8266-20210418-v1.15.bin. I'll try an older image.

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

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Sat Jun 12, 2021 3:07 pm

I wrote to flash with both of these commands, and basically same thing. The second command gave me the console output below.

esptool.py --port COM5 --baud 460800 write_flash --flash_size=detect 0 esp8266-20210202-v1.14.bin

esptool.py --port COM5 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20210202-v1.14.bin

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 30712, room 16
tail 8
chksum 0xd5
load 0x3ffe8000, len 996, room 0
tail 4
chksum 0x2e
load 0x3ffe83f0, len 1064, room 4
tail 4
chksum 0xfd
csum 0xfd
rf cal sector: 1019
rf[112] : 00
rf[113] : 00
rf[114] : 01

SDK ver: 2.0.0(5a875ba) compiled @ Aug  9 2016 15:12:27
phy ver: 1055, pp ver: 10.2

mode : softAP(62:01:94:70:բT▒▒▒▒Z▒+▒j▒▒▒▒U▒QUQը▒▒U+UT
                                                     m*▒PT▒▒UUE▒X
                                                                 ▒UT▒U▒▒-U▒▒U▒▒▒▒▒▒▒▒tס


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

Re: New to MicroPython, putty showing garbage chars

Post by tonynsx » Sat Jun 12, 2021 3:12 pm

I don't have anything connected to ESP8266. I'm trying to get the flash right.

Post Reply