Closed rohansingh closed 3 years ago
Digging a bit deeper, it loos like the framework-espidf
package dir is empty for some reason:
[~/.platformio/packages/framework-espidf]$ ls
README.md cjson-utils-tests.json package.json spec_tests.json tests.json version.txt
So maybe this is an issue with PlatformIO core. The weird thing is, I know my ESP-IDF fork is definitely getting pulled down:
Tool Manager: Installing git+https://github.com/tidbyt/esp-idf.git
git version 2.28.0
Cloning into '/Users/rohan/.platformio/.cache/tmp/pkg-installing-6sm41e3x'...
remote: Enumerating objects: 6102, done.
Unclear where it's ending up though.
Hi @rohansingh ! The latest espressif32
platform uses ESP-IDF v4.1 and if I'm not mistaken, Arduino framework only supports ESP-IDF v4.0. As a workaround you can always use the previous version of the espressif32
platform:
[env:esp32dev]
platform = espressif32 @ 1.12.4
framework = ...
board = ...
Hey @valeros, thanks for the hint but I don't think that's the underlying issue. I tried espressif32 @ 1.12.4
and it didn't work.
It looks like the latest espressif32
actually detects the arduino, esp-idf
case and uses the older ESP-IDF in that case. But really it shouldn't matter, because I'm specifying my own ESP-IDF in platform_packages
.
But for some reason, my ~/.platformio/packages/framework-espidf
directory ends up containing some random files from something called json-patch-test-suite
(?) instead of my actual ESP-IDF fork. And then the build breaks since there is no actual ESP-IDF on my system anymore.
Really weird, though I guess technically this is not an issue with platform-espressif32
. I can close this issue and open one in platformio/platformio-core if you'd like.
Ah yup, looks like this is platformio/platformio-core#3624. Sorry.
I'm just getting around to upgrade to PIO core v5, and the latest platform-espressif32. I've been using a ESP-IDF fork that has patches for a couple components. Here's how it's setup:
This worked fine prior to upgrading, but it now fails very early in the build. Full build output is below, but the important error is:
Removing the
framework-espidf
override fromplatform_packages
fixes this error. But that breaks my firmware which relies on some of the patches in that ESP-IDF fork.The error seems to be stemming from this bog-standard line in my
CMakeLists.txt
:This could be some kind of configuration error on my part but figured I'd open an issue in case anybody else has seen this.
Here's the build output: