Linking error after upgraded from pio espressif 2.1.0 to 3.0.0
See original GitHub issueHad a project that compiled fine with PIO and platform=espressif32 version 2.1.0. Upgraded to espressif32 version 3.0.0. Now I am getting a linking error. It appears to be due to my OTA ca_cert file (located in server_certs/ca_cert.pem)
`> Executing task: C:\Users\bheestand.platformio\penv\Scripts\pio.exe run <
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 (3.0.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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.40200.210118 (4.2.0)
- tool-cmake 3.16.4
- tool-esptoolpy 1.30000.201119 (3.0.0)
- tool-idf 1.0.1
- tool-mconf 1.4060000.20190628 (406.0.0)
- tool-ninja 1.9.0
- toolchain-esp32ulp 1.22851.191205 (2.28.51)
- toolchain-xtensa32 2.80400.210114 (8.4.0) Reading CMake configuration… LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 0 compatible libraries Scanning dependencies… No dependencies Building in release mode Linking .pio\build\esp32dev\firmware.elf c:/users/bheestand/.platformio/packages/toolchain-xtensa32/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\src\app_ota.o:(.literal.ota_task+0x18): undefined reference to `_binary_ca_cert_pem_start’ collect2.exe: error: ld returned 1 exit status *** [.pio\build\esp32dev\firmware.elf] Error 1 ============================================================================================== [FAILED] Took 37.84 seconds ============================================================================================== The terminal process “C:\Users\bheestand.platformio\penv\Scripts\pio.exe ‘run’” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.`
Any help would be appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
That line
target_add_binary_data(${COMPONENT_TARGET} "server_certs/ca_cert.pem" TEXT)
should be added tosrc/CMakeLists.txt
@meltdown03 https://docs.platformio.org/en/latest/frameworks/espidf.html#esp-idf-components