ESP-01, where are boot.py and main.py?
Posted: Fri Apr 19, 2019 3:31 pm
Hello forum,
I am new to the ESP8266. I have little experience with micropython, some years ago I made some tests with a Nucleo board.
I have a ESP-01 with 512 kByte flash. There is a version of micropython for ESP's with only 512 kBytes of flash memory, I downloaded and installed it via esptool. I also used the REPL with picocom and i made a small function.
I know, the version for 512 kByte ESP's does not support WebREPL and the uos library does not support functions like listdir(). But I am very interested, where I can find boot.py and main.py. I'd like to write a little function that is executed by the beginning, so I had to edit the main.py file. Or is there another solution?
I also found ampy from adafruit, but loading a file to the ESP was not successful till yet:
https://learn.adafruit.com/micropython- ... ot-scripts
I also have a ESP-12, there I would not have this problem. But I'm very interested how the ESP-01 works. Can anybody help me? Thanks in advance.
Best regards, Guenther
I am new to the ESP8266. I have little experience with micropython, some years ago I made some tests with a Nucleo board.
I have a ESP-01 with 512 kByte flash. There is a version of micropython for ESP's with only 512 kBytes of flash memory, I downloaded and installed it via esptool. I also used the REPL with picocom and i made a small function.
I know, the version for 512 kByte ESP's does not support WebREPL and the uos library does not support functions like listdir(). But I am very interested, where I can find boot.py and main.py. I'd like to write a little function that is executed by the beginning, so I had to edit the main.py file. Or is there another solution?
I also found ampy from adafruit, but loading a file to the ESP was not successful till yet:
https://learn.adafruit.com/micropython- ... ot-scripts
I also have a ESP-12, there I would not have this problem. But I'm very interested how the ESP-01 works. Can anybody help me? Thanks in advance.
Best regards, Guenther