最近在 ESP32 编译中遇到了以下问题:
esp_image: Image length 1057652 doesn't fit in partition length 1048576
boot: Factory app partition is not bootable
boot: No bootable app partitions in the partition table
这里应该是分区表分配给 APP 的空间不够。借此契机来了解一下 ESP32 的分区表 partitions.csv
吧。
1. ESP32 预定义分区表
make menuconfig
配置中可选择以下预定义分区表:
Single factory app, no OTA
Factory app, two OTA definitions
接下来可以分别查看其中的具体信息。
1.1 Single factory app, no OTA
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x1