ESP01 MicroPython install

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
User avatar
Roberthh
Posts: 1208
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: ESP01 MicroPython install

Post by Roberthh » Fri Jan 13, 2017 6:27 am

When I'm starting Putty connection, I get half a line of flashing characters,
The initial speed of the ESP is 74800 baud. On windows, you can set putty to that speed. Then you can see the boot messages. MicroPython changes the speed to 115200, when it comes up.

lajthabalazs
Posts: 6
Joined: Thu Jan 12, 2017 8:13 pm

Re: ESP01 MicroPython install

Post by lajthabalazs » Fri Jan 13, 2017 5:15 pm

Thanks, now I see some output, looks like it's looping in boot? At 74800 serial port displays in fast loop the following:

load 0x40100000, len 32028, room 16
tail 12
checksum 0x40
ho 0 tail 12 room 4
load 0x3ffe8000, len 1092, room 12
tail 8
checksum 0x17
load 0x3ffe8450, len 3000, room 0
tail 8
checksum 0x56
csum 0x56
#0 ets_task(40209c10, 31, 3ffe9020, 4)
rf_cal[0] !=0x05, is 0xFF

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


And that goes on and on and on. It holds while I press reset, but after, it continues. What am I doing wrong?

lajthabalazs
Posts: 6
Joined: Thu Jan 12, 2017 8:13 pm

Re: ESP01 MicroPython install

Post by lajthabalazs » Fri Jan 13, 2017 7:45 pm

Found a post about bits vs bytes when determining flash size. It appears that --flash_size=32m finally worked (which is 4MBytes). I still cannot figure out why, because my 16MBytes of flash are equal to 128Mbits, which is not an available option in esptool.

I don't know what will happen to the 12MBytes that were omitted, but for now I'm happy with finally getting a python prompt.

Thank you for all the help!

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

Re: ESP01 MicroPython install

Post by deshipu » Sat Jan 14, 2017 2:53 pm

MicroPython (and most of its toolchain) doesn't yet support 16MB flash chips on the ESP8266 -- they get detected as 4MB chips, which is why that option works for you. The rest is simply left unused. You can see the issue in the bug tracker here: https://github.com/micropython/micropython/issues/2335

User avatar
sebi
Posts: 2
Joined: Tue Mar 29, 2016 9:36 pm
Location: France

Re: ESP01 MicroPython install

Post by sebi » Fri Feb 08, 2019 5:41 pm

I had the same kind of issues with an ESP-01 (with 1MB Flash).
Then I found this post: https://www.esp8266.com/viewtopic.php?p=73529
Flashing my ESP-01 with with DOUT (Dual Output) instead of DIO or QIO solved it.

Post Reply