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: 3667
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: 1388
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

bluesky007
Posts: 3
Joined: Wed Apr 07, 2021 1:46 pm

Re: ESP01 MicroPython install

Post by bluesky007 » Sat May 08, 2021 10:11 am

hi kodefoo
Can you solve the problem that uploading .py files to ESP01 ? I need support ? :(
I have got 1 blue led version product. I am tries programming with micropython by PyCharm IDE. I think that I flashed it with esp8266-512k-20190125-v1.10.bin by uPyCraft . however, connection is not successful, so I couldn't send my files to it . upyCraft can't connect it .
I am using MAKERFABS CP2104 USB2UART Module. connection :
CP2104 ESP01
rx -> tx
tx -> rx
VIO -> 3v3
DTR -> Rst
EN -> 3v3
DO0 -> GND
GND -> GND
I flashed by upyCraft (Maybe I think so.) but i didn't send py files and i can't connection to ESP-01.
I tried PyCharm. I saw com port but i didn't send files.

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

Re: ESP01 MicroPython install

Post by Roberthh » Sat May 08, 2021 11:49 am

For normal opeartion D0 must be high (floating), and you can also let DTR floating, or ensure that the value of DTR is high.
The 512k version of the firmware has no file system. So you cannot store python code permanently.

bluesky007
Posts: 3
Joined: Wed Apr 07, 2021 1:46 pm

Re: ESP01 MicroPython install

Post by bluesky007 » Sat May 15, 2021 7:17 am

Hi Mr. Roberthh
I can flash to esp-01 upyCraft and esptool.py but I couldn't send program by Pycharm or uPyCraft after flash it.
Actually, I was suspicious of the device. I tried Arduino ide .So, I haven't any problem. I can send program and it is working. I will use Arduino IDE to program it if I solve this problem. I didn't understand. Sometime I tried decrease Bit per second for com : 9600 but could not work. I tried very much combination with IOs but i didn't do it. I can flash with com port but i didn't send py files upyCraft can't connect to it after I flashed it . I want to use micropython but I am losing long time to keep try.

Post Reply