ESP-IDF:ESP32 fatory分区不够用,重新分区的方法
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:
更多推荐
所有评论(0)