Compile error https_server.crt.S not found
Closed this issue · 1 comments
sylque commented
First of all, thanks @Jason2866 for your amazing work on espressif32 forks to support PIO.
I'm trying to switch from Jason2866/platform-espressif32 to pioarduino/platform-espressif32, as I think this new repo is a more general purpose one. Am I right?
I have no problem with Jason2866/platform-espressif32, it compiles fine.
However, I get this error with pioarduino/platform-espressif32:
Processing debugNoBle (platform: https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip; board: lolin_d32; framework: arduino, espidf)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin_d32.html
PLATFORM: Espressif 32 (51.3.4) > WEMOS LOLIN D32
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-arduinoespressif32 @ 3.0.4
- framework-arduinoespressif32-libs @ 5.1.0+sha.b6b4727c58
- framework-espidf @ 3.50104.0 (5.1.4)
- tool-cmake @ 3.21.3
- tool-esptoolpy @ 4.7.5
- tool-mklittlefs @ 3.2.0
- tool-ninja @ 1.9.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-esp32 @ 12.2.0+20230208
Warning: the 'src_filter' option cannot be used with ESP-IDF. Select source files to build in the project CMakeLists.txt file.
Warning! Arduino framework as an ESP-IDF component doesn't handle the `variant` field! The default `esp32` variant will be used.
Reading CMake configuration...
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 48 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Core
|-- Imu
|-- Obelisk
Building in debug mode
*** [.pio\build\debugNoBle\.pio\build\debugNoBle\https_server.crt.S.o] Source `.pio\build\debugNoBle\https_server.crt.S' not found, needed by target `.pio\build\debugNoBle\.pio\build\debugNoBle\https_server.crt.S.o'.
===================================================================================== [FAILED] Took 8.14 seconds =====================================================================================
Environment Status Duration
------------- -------- ------------
debugNoBle FAILED 00:00:08.141
=============================================================================== 1 failed, 0 succeeded in 00:00:08.141 ===============================================================================
Jason2866 commented
It is as you noted 100% the same as the espressif Arduino 3.0.4. So it includes Rainmaker and the insights stuff.
You have to add in your env for arduino/espidf projects (see example):
board_build.embed_txtfiles =
managed_components/espressif__esp_insights/server_certs/https_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_mqtt_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_claim_service_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_ota_server.crt