question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linking error after upgraded from pio espressif 2.1.0 to 3.0.0

See original GitHub issue

Had 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
valeroscommented, Feb 1, 2021

That line target_add_binary_data(${COMPONENT_TARGET} "server_certs/ca_cert.pem" TEXT) should be added to src/CMakeLists.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linker fails after PlatformIO update ESP32 - espressif32
I have been working on a project for the last 4 months and had no problem compiling and linking it using the PlatformIO...
Read more >
Module 3, 1_1_Hello_World will not compile – ESP32 - RNT Lab
I have followed the instructions in the course, as far as I can tell, but when I try to upload it, I get...
Read more >
Zephyr 2.7.0
These may be upgraded to errors using the edtlib Python APIs; Zephyr's CI now generates such errors. Devicetree bindings. Various bindings had ...
Read more >
PlatformIO - Bountysource
https://github.com/espressif/esp-mdf ... Everything builds and uploads fine, but I get the following error after restarting: E (15984) SPIFFS: mount failed, ...
Read more >
Zephyr 2.7.0 — Zephyr Project Documentation
Improved thread safety for Newlib and C++ on SMP-capable systems. IEEE 802.15.4 Software Address ... Linker Support for Tightly-Coupled Memory in RISC-V.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found