I’m downloaded and added 3.0 RC 1 into
.platformio\packages\framework-espidf-3
(set “version”: “3.0.0” into package.json)
Added into platform.json
“espidf-3”: {
“package”: “framework-espidf-3”,
“script”: “builder/frameworks/espidf-3.py”
},
Updated esp32dev.json
“frameworks”: [
“arduino”,
“espidf”,
“espidf-3”
],
Made copy of espidf.py into espidf-3.py with changes like
platform.get_package_dir(“framework-espidf-3”)
(maybe, did something else, i can’t remember now)
And, PIO “seen” it as new framework for my board. But
When i try to build project with
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = espidf-3
build failed with
*** Two environments with different actions were specified for the same target: D:\Arduino\ESP32BLENativeAPITest.pioenvs\esp32dev\app_trace\app_trace.c.o
(action 1: xtensa-esp32-elf-gcc -o app_trace.c.o -c -Wno-old-style-declaration -std=gnu99 -Wall -Werror=all -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-error=unused-function -Og -g3 -nostdlib -Wpointer-arith -Wno-error=unused-but-set-variable -Wno-error=unused-variable -mlongcalls -ffunction-sections -fdata-sections -fstrict-volatile-bitfields $(subst --coverage,$(CFLAGS)) -DWITH_POSIX -DIDF_VER="3.0.0" -DESP32 -DESP_PLATFORM -DF_CPU=240000000L -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DPLATFORMIO=30502 -DARDUINO_ESP32_DEV @“D:\Arduino\ESP32BLENativeAPITest.pioenvs\esp32dev\longcmd-83229cb6b7249602e15e63a977016e59” app_trace.c)
(action 2: xtensa-esp32-elf-gcc -o app_trace.c.o -c -Wno-old-style-declaration -std=gnu99 -Wall -Werror=all -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-error=unused-function -Og -g3 -nostdlib -Wpointer-arith -Wno-error=unused-but-set-variable -Wno-error=unused-variable -mlongcalls -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -DWITH_POSIX -DIDF_VER="3.0.0" -DESP32 -DESP_PLATFORM -DF_CPU=240000000L -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DPLATFORMIO=30502 -DARDUINO_ESP32_DEV @“D:\Arduino\ESP32BLENativeAPITest.pioenvs\esp32dev\longcmd-83229cb6b7249602e15e63a977016e59” app_trace.c)
What i did wrong. And how to fix? I really need ESP-IDF 3.0…