Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 failed build on Platform.io: object_pool.iop.S.o not found #496

Closed
flammel1007 opened this issue Oct 1, 2024 · 1 comment · Fixed by #526
Closed

ESP32 failed build on Platform.io: object_pool.iop.S.o not found #496

flammel1007 opened this issue Oct 1, 2024 · 1 comment · Fixed by #526
Labels
investigating Looking into this issue / need more info

Comments

@flammel1007
Copy link

Hello,

I'm currently trying to create the VT example on an ESP32. For this I followed the basic tutorial, which didn't cause any problems during the build. When I then added the ESP32 example with the object_pool, the following error occurred during the build:

Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf)
-----------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.7.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-espidf @ 3.50201.240515 (5.2.1)
  • tool-cmake @ 3.16.4
  • tool-esptoolpy @ 1.40501.0 (4.5.1)
  • tool-idf @ 1.0.1
  • tool-mconf @ 1.4060000.20190628 (406.0.0)
  • tool-ninja @ 1.9.0
  • tool-openocd-esp32 @ 2.1100.20220706 (11.0)
  • tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
  • tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
  • toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
  • toolchain-xtensa-esp-elf @ 13.2.0+20230928
    Reading CMake configuration...
    Warning! Flash memory size mismatch detected. Expected 4MB, found 2MB!
    Please select a proper value in your sdkconfig.defaults or via the menuconfig target!
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 1 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- AgIsoStack++ @ 1.0.0+sha.a757178
    Building in debug mode
    Compiling .pio\build\esp32dev\src\console_logger.cpp.o
    Compiling .pio\build\esp32dev\src\main.cpp.o
    *** [.pio\build\esp32dev.pio\build\esp32dev\object_pool.iop.S.o] Source .pio\build\esp32dev\object_pool.iop.S' not found, needed by target .pio\build\esp32dev.pio\build\esp32dev\object_pool.iop.S.o'.
    ====================================================== [FAILED] Took 30.22 seconds ======================================================

Environment:
platform = espressif32
board = esp32dev
framework = espidf

Can you please tell me why the object_pool.iop.S.o is not being created?

@flammel1007 flammel1007 added the investigating Looking into this issue / need more info label Oct 1, 2024
@GwnDaan
Copy link
Member

GwnDaan commented Jan 6, 2025

The error message indicates that you are missing the embedding of the object pool (.iop) file.

The following line in platform.ino is needed to embed the object pool into your ESP32 binary.

board_build.embed_txtfiles = src/object_pool/object_pool.iop

along side the following line in CMakeLists.txt

target_add_binary_data(${COMPONENT_TARGET} "object_pool/object_pool.iop" BINARY)

I'll open an PR to clarify this in the tutorial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Looking into this issue / need more info
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants