编译16M的ESP32S2 micropython固件

官网编译出来的都是8M的,有点小。于是自己编译
1)git clone IDF(略)
2)git clone https://github.com/micropython/micropython.git
3)source /esp-idf/export.sh

然后开始编译,但是死活编译出来的都是8MB大小。最后发现原来是
/ports/esp32/boards/sdkconfig.base
里PARTITION_TABLE_FILENAME指定的是"partitions-8MiB.csv"
修改成partitions-16MiB.csv
然后继续编译:
make -C ports/esp32 BOARD=GENERIC_S3_SPIRAM_OCT

哗哗哗编译完毕,这下是16M了
[ Memory - free: 8002.188 Kb   allocated: 2.203125 Kb ]
[ Cpu frequency: 160 Mhz ]
[ Disk Space: 14336.0 Kb total, 14324.0 Kb free, 12.0 Kb used, 0 files, 255 fileName bytes max ]

[ Memory - free: 8002.188 Kb   allocated: 2.203125 Kb ]
[ Cpu frequency: 160 Mhz ]
[ Disk Space: 14912.0 Kb total, 14900.0 Kb free, 12.0 Kb used, 0 files, 255 fileName bytes max ]

你可能感兴趣的:(git,github)