Anybody else who also got this issue? It occurred when installing latest vscode and pio. There was an old post about this bug which was solved almost two years ago.
PIO Core Call Error: "The current working directory C:\Users\59146\Documents\PlatformIO\Projects\test will be used for the project.
The next files/directories have been created in C:\Users\59146\Documents\PlatformIO\Projects\test
include - Put project header files here
lib - Put here project specific (private) libraries
src - Put project source files here
platformio.ini - Project Configuration File
\n\nError: Could not install ‘toolchain-xtensa32’ with version requirements ‘~2.50200.0’ for your system ‘windows_amd64’.
An old installation on my laptop which worked fine is also having a similar issue, when setting up a project.
PIO Core Call Error: “The current working directory D:\PlatformIO\Projects\pioCLI_esp32_test will be used for the project.\n\r\nThe next files/directories have been created in D:\PlatformIO\Projects\pioCLI_esp32_test\ninclude - Put project header files here\nlib - Put here project specific (private) libraries\nsrc - Put project source files here\nplatformio.ini - Project Configuration File\n\n\nError: Could not install ‘framework-arduinoespressif32’ with version requirements ‘~2.10004.191002’ for your system ‘windows_amd64’.\n\nPlease try this solution → Redirecting...”
I just ran the update process on my machine, and it says I’ve got that version of that particular package… which is the arduino board support / framework files for the ESP32… I then deleted the folder, and tried to compile an Arduino ESP32 project, and it was re-downloaded… so it seems to be working… this was on Windows, on a x64 machine, so it should be trying to download the windows_amd64 variant of any of those files also.
E:\Projects\PlatformIO\ESP32\CameraWebServer>pio platform install espressif32
PlatformManager: Installing espressif32
espressif32 @ 1.11.0 is already installed
PackageManager: Installing toolchain-xtensa32 @ ~2.50200.0
toolchain-xtensa32 @ 2.50200.80 is already installed
PackageManager: Installing tool-esptoolpy @ ~1.20600.0
tool-esptoolpy @ 1.20600.0 is already installed
The platform 'espressif32' has been successfully installed!
The rest of packages will be installed automatically depending on your build environment.
Just to confirm that the problem was indeed my internet connection. After changing internet connection, pio update went through without any issues and projects were set up successfully from pio home.
I am trying to get the toolchain to work on ARM (Raspberry Pi), for that I am trying to get the package from here Service End for Bintray, JCenter, GoCenter, and ChartCenter | JFrog (from this conversation)
I have downloaded and unzipped the file in the ~/.platformio/packages/toolchain-xtensa32
But when I run pio platform install espressif32 from the terminal, it keeps trying to download and install the package from the internet, rather than using the package I’ve put in the folder myself!
How to tell the linker to use the custom package instead?