ESP-IDF:ESP32 fatory分区不够用,重新分区的方法

错误log:

[1/9] Performing build step for ‘bootloader’
[1/1] cmd.exe /C “cd /D D:\Espressif\esp-idf-5.0\MyCode\simple\build\bootloader\esp-idf\esptool_py && d:\vscode-espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe D:/Espressif/esp-idf-5.0/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 D:/Espressif/esp-idf-5.0/MyCode/simple/build/bootloader/bootloader.bin”
Bootloader binary size 0x63e0 bytes. 0xc20 bytes (11%) free.
[6/7] Generating binary image from built executable
esptool.py v3.2-dev
Merged 25 ELF sections
Generated D:/Espressif/esp-idf-5.0/MyCode/simple/build/simple.bin
[7/7] cmd.exe /C "cd /D D:\Espressif\esp-idf-5.0\MyCode\sim…in D:/Espressif/esp-idf-5.0/MyCode/simple/build/simple.bin"FAILED: esp-idf/esptool_py/CMakeFiles/app_check_size
cmd.exe /C “cd /D D:\Espressif\esp-idf-5.0\MyCode\simple\build\esp-idf\esptool_py && d:\vscode-espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe D:/Espressif/esp-idf-5.0/components/partition_table/check_sizes.py --offset 0x8000 partition --type app D:/Espressif/esp-idf-5.0/MyCode/simple/build/partition_table/partition-table.bin D:/Espressif/esp-idf-5.0/MyCode/simple/build/simple.bin”
Error: app partition is too small for binary simple.bin size 0x2848d0:

  • Part ‘factory’ 0/0 @ 0x10000 size 0x177000 (overflow 0x10d8d0)
    ninja: build stopped: subcommand failed.
  • The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja " terminated with exit code: 1.

修改menuconfig:

在这里插入图片描述

在这里插入图片描述

工程目录下添加分区表

在这里插入图片描述

从新分区

在这里插入图片描述
Espressif ESP32 Partition Table # Name, Type, SubType, Offset, Size
factory, app, factory, 0x010000, 3840K
nvs, data, nvs, 0x3D0000, 16K

OK log:

在这里插入图片描述

GitHub 加速计划 / es / esp-idf
7
0
下载
Espressif IoT Development Framework. Official development framework for Espressif SoCs.
最近提交(Master分支:3 个月前 )
b5ac4fbd fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range Closes IDFGH-13421 See merge request espressif/esp-idf!35682 26 天前
757d74ab fix(tools): fixed failing Win CI (tests read_only, cli) Closes IDF-11782 See merge request espressif/esp-idf!35549 26 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐