igrr / arduino-nano-esp32

Arduino Nano ESP32 Board Support Package for ESP-IDF
Apache License 2.0
2 stars 1 forks source link

Partition size too large #1

Open howroyd opened 6 months ago

howroyd commented 6 months ago

After following the readme I get this error when I build:

simon@simon-HP-EliteBook:~/Documents/code/arduino-nano-esp32/blink$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/simon/Documents/code/arduino-nano-esp32/blink/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/simon/.espressif_5v1/python_env/idf5.1_py3.10_env/bin/python -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/simon/Documents/code/arduino-nano-esp32/blink"...
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/simon/.espressif_5v1/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/simon/.espressif_5v1/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/simon/.espressif_5v1/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
Dependencies lock doesn't exist, solving dependencies.
..Updating lock file at /home/simon/Documents/code/arduino-nano-esp32/blink/dependencies.lock
Processing 2 dependencies:
[1/2] idf (5.1.2)
[2/2] igrr/arduino-nano-esp32 (0.0.1)
-- Project sdkconfig file /home/simon/Documents/code/arduino-nano-esp32/blink/sdkconfig
Loading defaults file /home/simon/Documents/code/arduino-nano-esp32/blink/sdkconfig.defaults...
Compiler supported targets: xtensa-esp32-elf

-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: /home/simon/.espressif_5v1/python_env/idf5.1_py3.10_env/bin/python (found version "3.10.12") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "blink" version: v1.2.0
-- Adding linker script /home/simon/Documents/code/arduino-nano-esp32/blink/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/simon/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/simon/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_update bootloader bootloader_support cxx driver efuse esp_app_format esp_common esp_hw_support esp_mm esp_partition esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esptool_py freertos hal heap igrr__arduino-nano-esp32 log main mbedtls newlib partition_table pthread soc spi_flash xtensa
-- Component paths: /home/simon/esp/esp-idf/components/app_update /home/simon/esp/esp-idf/components/bootloader /home/simon/esp/esp-idf/components/bootloader_support /home/simon/esp/esp-idf/components/cxx /home/simon/esp/esp-idf/components/driver /home/simon/esp/esp-idf/components/efuse /home/simon/esp/esp-idf/components/esp_app_format /home/simon/esp/esp-idf/components/esp_common /home/simon/esp/esp-idf/components/esp_hw_support /home/simon/esp/esp-idf/components/esp_mm /home/simon/esp/esp-idf/components/esp_partition /home/simon/esp/esp-idf/components/esp_pm /home/simon/esp/esp-idf/components/esp_psram /home/simon/esp/esp-idf/components/esp_ringbuf /home/simon/esp/esp-idf/components/esp_rom /home/simon/esp/esp-idf/components/esp_system /home/simon/esp/esp-idf/components/esp_timer /home/simon/esp/esp-idf/components/esptool_py /home/simon/esp/esp-idf/components/freertos /home/simon/esp/esp-idf/components/hal /home/simon/esp/esp-idf/components/heap /home/simon/Documents/code/arduino-nano-esp32/blink/managed_components/igrr__arduino-nano-esp32 /home/simon/esp/esp-idf/components/log /home/simon/Documents/code/arduino-nano-esp32/blink/main /home/simon/esp/esp-idf/components/mbedtls /home/simon/esp/esp-idf/components/newlib /home/simon/esp/esp-idf/components/partition_table /home/simon/esp/esp-idf/components/pthread /home/simon/esp/esp-idf/components/soc /home/simon/esp/esp-idf/components/spi_flash /home/simon/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/simon/Documents/code/arduino-nano-esp32/blink/build
Running ninja in directory /home/simon/Documents/code/arduino-nano-esp32/blink/build
Executing "ninja all"...
[12/493] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[373/493] Performing configure step for 'bootloader'-- Found Git: /usr/bin/git (found version "2.34.1") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/simon/.espressif_5v1/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/simon/.espressif_5v1/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/simon/.espressif_5v1/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/simon/Documents/code/arduino-nano-esp32/blink/sdkconfig
Compiler supported targets: xtensa-esp32-elf

-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Adding linker script /home/simon/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- App "bootloader" version: v5.1.2-dirty
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/simon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/simon/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /home/simon/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/simon/esp/esp-idf/components/bootloader /home/simon/esp/esp-idf/components/bootloader_support /home/simon/esp/esp-idf/components/efuse /home/simon/esp/esp-idf/components/esp_app_format /home/simon/esp/esp-idf/components/esp_common /home/simon/esp/esp-idf/components/esp_hw_support /home/simon/esp/esp-idf/components/esp_rom /home/simon/esp/esp-idf/components/esp_system /home/simon/esp/esp-idf/components/esptool_py /home/simon/esp/esp-idf/components/freertos /home/simon/esp/esp-idf/components/hal /home/simon/esp/esp-idf/components/log /home/simon/esp/esp-idf/components/bootloader/subproject/main /home/simon/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /home/simon/esp/esp-idf/components/newlib /home/simon/esp/esp-idf/components/partition_table /home/simon/esp/esp-idf/components/soc /home/simon/esp/esp-idf/components/spi_flash /home/simon/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader
[408/493] Performing build step for 'bootloader'FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-build bootloader/bootloader.elf bootloader/bootloader.bin bootloader/bootloader.map /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader-prefix/src/bootloader-stamp/bootloader-build /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/bootloader.elf /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/bootloader.bin /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/bootloader.map 
cd /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader && /usr/bin/cmake --build .
[103/104] Generating binary image from built executableesptool.py v4.7.0
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Generated /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/bootloader.bin
[104/104] cd /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/esp-...00 /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/bootloader.binFAILED: esp-idf/esptool_py/CMakeFiles/bootloader_check_size /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 
cd /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/esp-idf/esptool_py && /home/simon/.espressif_5v1/python_env/idf5.1_py3.10_env/bin/python /home/simon/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /home/simon/Documents/code/arduino-nano-esp32/blink/build/bootloader/bootloader.bin
Error: Bootloader binary size 0x70f0 bytes is too large for partition table offset 0x8000. Bootloader binary can be maximum 0x7000 (28672) bytes unless the partition table offset is increased in the Partition Table section of the project configuration menu.
ninja: build stopped: subcommand failed.
[417/493] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/gpio/gpio.c.objninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /home/simon/Documents/code/arduino-nano-esp32/blink/build/log/idf_py_stderr_output_45825 and /home/simon/Documents/code/arduino-nano-esp32/blink/build/log/idf_py_stdout_output_45825
igrr commented 1 month ago

@howroyd Looks like you are compiling for the esp32 target, please make sure you run idf.py set-target esp32s3 first.