PlatformIO Community

"Could not initialize project"

I’m trying to make a fresh install of VScode and PlatformIO on a Raspberry pi 4, but I’m getting this error when trying to open a new project : (VScode and PlatformIO installation already done and went fluently)
Here is the error :

Could not initialize project
PIO Core Call Error: "Resolving lolin32 environment packages...\nTool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3\n\n\nError: Could not find the package with 'espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3' requirements for your system 'linux_aarch64'"

Depends on

Hi and thanks for giving help.

But what can I do to fix my issue ?
It seems the ““version”: “8.4.0+2021r2-patch3”,” exists, but what to do with it ?
The exchange is by far too specialised so I can understand what to do !
I’m a so humble beginner level user !

PlatformIO does not yet have the compiler packages needed for ESP32 projects for your CPU architecture (aarch64, / ARM64), per compatibility matrix. The PlatformIO or Espressif people (who make the toolchain) could solve this.

Very technically you could also solve this if you manage to compile GitHub - espressif/crosstool-NG: crosstool-NG with support for Xtensa for your system, but this is far beyond “simple” even for more advanced users.

A very simple “solution” for your Raspberry Pi 4 is to downgrade the operating system from the 64-bit one to the 32-bit one, so that it falls in the armv8l architecture, for which PlatformIO does have the needed package. So, if you have a spare SD card, download the “Raspberry Pi OS with desktop”, “System: 32-bit” version from Operating system images – Raspberry Pi and flash that and set everything up again with VSCode and PlatformIO.

If this downgrade is not acceptable, then someone (here on the forum, PlatformIO or Espressif people) gets into compiling the toolchain for aarch64, and the wait time on that is undefined.

Nah actually don’t do what I’ve written above, the Epsressif people are already uploading the package (Support cross-arch toolchain packages · Issue #753 · platformio/platform-espressif32 · GitHub), so it might be solved very soon. Developing story.

Thank you so much.
You’re amazing people indeed !


I’ve seen me-no-dev’s message
But I still have the error.
Does it take more time for the package to be available, or do I need to do something special on my side.

The PlatformIO staff has to review + accept the package in the registry before it’s visible, that will take a tiny bit. Once done, the green checkmark should appear for Linux ARM64 at PlatformIO Registry.