Page 5 of 5

Re: ESP01 MicroPython install

Posted: Fri Jan 13, 2017 6:27 am
by Roberthh
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.

Re: ESP01 MicroPython install

Posted: Fri Jan 13, 2017 5:15 pm
by lajthabalazs
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?

Re: ESP01 MicroPython install

Posted: Fri Jan 13, 2017 7:45 pm
by lajthabalazs
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!

Re: ESP01 MicroPython install

Posted: Sat Jan 14, 2017 2:53 pm
by deshipu
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

Re: ESP01 MicroPython install

Posted: Sat May 08, 2021 10:11 am
by bluesky007
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.

Re: ESP01 MicroPython install

Posted: Sat May 08, 2021 11:49 am
by Roberthh
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.

Re: ESP01 MicroPython install

Posted: Sat May 15, 2021 7:17 am
by bluesky007
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.