ESP32C5-WROOM-N16R4的BootLoader分区尺寸问题

id9502
Posts: 2
Joined: Mon Jun 16, 2025 10:14 am

ESP32C5-WROOM-N16R4的BootLoader分区尺寸问题

Postby id9502 » Mon Jun 16, 2025 10:51 am

刚刚拿到一个ESP32C5模组,尝试编译hello_world程序做测试,使用的是当前最新的master分支(IDF6.0-dev-527)当选择启用Simulate eFuse operations in RAM下属的Log all virtual writes和Keep eFuses in flash两个选项后,会出现BootLoader分区溢出的情况,报错:

Code: Select all

Error: Bootloader binary size 0x6250 bytes is too large for partition table offset 0x8000. Bootloader binary can be maximum 0x6000 (24576) bytes unless the partition table offset is increased in the Partition Table section of the project configuration menu)
试了一下ESP32C6相同配置下启用模拟熔丝位和记录熔丝位到闪存,BootLoader分区下仍有21%剩余空间,由于这两个选项在diy开发过程中属于绝对刚需,并且在什么改动都不做直接编译ESP32C5程序时BootLoader分区就仅仅剩余11%空间了,若开启了LogV2和自定义Flash驱动等功能稍有不慎就超过了容量限制。

所以是否考虑在ESP32C5平台上适当压缩BootLoader程序尺寸,或扩充BootLoader分区的默认大小,或者提供其他裁剪Bootloader尺寸的选项?同时好奇为啥ESP32C5的BootLoader大了这么多,感觉和ESP32C6比并没有添加太多新功能啊 :?:

ESP_rrtandler
Posts: 52
Joined: Wed May 31, 2023 6:54 pm

Re: ESP32C5-WROOM-N16R4的BootLoader分区尺寸问题

Postby ESP_rrtandler » Mon Jun 30, 2025 7:20 am

Hi id9502,

Please take a look to the doc https://docs.espressif.com/projects/esp ... oader-size

If your bootloader has grown up not to fit the actual value of CONFIG_PARTITION_TABLE_OFFSET, you have to perfrom 1 or 2 steps.
1. run idf.py menuconfig and increase the PARTITION_TABLE_OFFSET parameter
2. If you are using partition table with fixed offests, adopt it. For example if CONFIG_PARTITION_TABLE_OFFSET changes from 0x8000 to 0x9000 (to make additional room for the bootloader), then the offset of the first partition which was 0x9000 (please note existing 0x1000 difference which has to be kept) has to be increased to 0xa000. Offsets of the other partition entries has to be increased if they were used. You can also omit the fixed offsets from the partition table at all. See the predefined partition table files in the /components/esp_partition/*.csv. The initial offset then adopts automatically.

Who is online

Users browsing this forum: No registered users and 3 guests