I'm trying to set up my project for use with an sdkconfig.defaults file. One of the settings (flash size) doesn't seem to be read. Here's the file:
Code: Select all
# the device used on this project has 8MB of flash.
CONFIG_ESPTOOLPY_FLASHSIZE="8MB"
#
# we use a custom partition table on this project.
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
#
# the line below is necessary until Espressif fixes its expired certificat of 11/2021.
# CONFIG_MBEDTLS_CERTIFICATE_BUNDLE is not set
Code: Select all
FAILED: partition_table/partition-table.bin
cmd.exe /C "cd /D C:\Users\mzimmers\fluidra\cp_fluidra\fw\build\esp-idf\partition_table && C:\Users\mzimmers\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/mzimmers/esp-idf/components/partition_table/gen_esp32part.py -q --offset 0x8000 --flash-size 2MB C:/Users/mzimmers/fluidra/cp_fluidra/fw/partitions.csv C:/Users/mzimmers/fluidra/cp_fluidra/fw/build/partition_table/partition-table.bin && C:\Users\mzimmers\.espressif\tools\cmake\3.16.4\bin\cmake.exe -E echo "Partition table binary generated. Contents:" && C:\Users\mzimmers\.espressif\tools\cmake\3.16.4\bin\cmake.exe -E echo ******************************************************************************* && C:\Users\mzimmers\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/mzimmers/esp-idf/components/partition_table/gen_esp32part.py -q --offset 0x8000 --flash-size 2MB C:/Users/mzimmers/fluidra/cp_fluidra/fw/build/partition_table/partition-table.bin && C:\Users\mzimmers\.espressif\tools\cmake\3.16.4\bin\cmake.exe -E echo *******************************************************************************"
Partitions defined in 'C:/Users/mzimmers/fluidra/cp_fluidra/fw/partitions.csv' occupy 4.0MB of flash (4194304 bytes) which does not fit in configured flash size 2MB. Change the flash size in menuconfig under the 'Serial Flasher Config' menu.
Code: Select all
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
# CONFIG_ESPTOOLPY_FLASHSIZE_4MB is not set
# CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set
# CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE="2MB"
Thanks...