I'm new in Micropython and ESP8266 too. I could connect and flash official prebuilt ESP8266 bin (v1.18 (2022-01-17) .bin [.elf] [.map] [Release notes] (latest) from https://micropython.org/download/esp8266/) and it works well.
If I'm right my ESP-12F module has a 4MB flash built in. I installed 2MB+ bin file.
Where can I found how the flash is separated for parts? I'm interested in built in filesystems / available free space.
Now it is enough, but if I understand it well the current filessystem "/" size is only 3MB. There are any free space I could use/mount? or I have to connect external flash?
Code: Select all
>>> uos.statvfs("/")
(4096, 4096, 763, 740, 740, 0, 0, 0, 0, 255)
Code: Select all
Littlefs v2 filesystem
0008 magic littlefs
0014 version 0x20000
0018 block_size 4096
001c block_count 763
0020 name_max 255
0024 file_max 2147483647
0028 attr_max 1022
as I see it has only 32KB available by default. Can I use external SRAM e.g. SPI 23LC1024 to expand RAM size?
Code: Select all
>>> import gc
>>> gc.mem_free()
33392