Unable to run platformio on Ubuntu 24.04 arm64/aarch64 (MAC VM and Raspberry Pi

Hardware Description: MAC M1 Sequoia 15.5 arm64 with Parallels VM Ubuntu 24.04. USB Connected Pico .

Installed Platformio Core, version 6.1.18, from Super-Quick

Run Step 2. Quick Start new Project: l Platform Core:

Running this throws an error

$ pio project init --board pico

The following files/directories have been created in /home/ubuntu/MyPIOProjects/Blink-pio
include - Put project header files here
lib - Put project specific (private) libraries here
src - Put project source files here
platformio.ini - Project Configuration File
Resolving pico dependencies…
Platform Manager: Installing raspberrypi
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: raspberrypi@1.17.0 has been installed!
Tool Manager: Installing platformio/toolchain-gccarmnoneeabi @ ~1.90201.0
UnknownPackageError: Could not find the package with ‘platformio/toolchain-gccarmnoneeabi @ ~1.90201.0’ requirements for your system ‘linux_aarch64’
ubuntu@macvm-ub24j-r2:~/MyPIOProjects/Blink-pio$ python get-platformio.py
/usr/bin/python3: can’t open file ‘/home/ubuntu/MyPIOProjects/Blink-pio/get-platformio.py’: [Errno 2] No such file or directory
ubuntu@macvm-ub24j-r2:~/MyPIOProjects/Blink-pio$ ^C

Seems there is an unmet dependency, platformio/toolchain-gccarmnoneeabi @ ~1.90201.0’ requirements for your system ‘linux_aarch64’ . Searching the error text indicates an issues going back to 2020 with this file on arm64 machines , such as this MAC M1 and Raspberry Pi 5. Interesting I was able to Install and successfully run/build scripts with Platformio installed on the MAC MI Native arm64 using “homebrew” that deploys the “Rosetta” x86-64 emulator.

Be nice to be able to develop Code on the Ubuntu 24 virtual machine, where I integrate the Pico with Ubuntu 24/ROS 2. Can the toolchain-gccarmnoneeabi @ ~1.90201.0 error issue be fixed?

Essentially duplicate of

Looking at the available versions and compatibilities, if the compiler toolchain version would be pushed from ~1.90201.0 to ~1.90301.0 (aka 9.2.1 to 9.3.1), then the PIO registry would have the AArch64 package for it. If you want to give it a try, you can edit the file in

nano ~/.platformio/platforms/raspberrypi/platform.json

from

to

    "toolchain-gccarmnoneeabi": {
      "type": "toolchain",
      "owner": "platformio",
      "version": "~1.90301.0"
    },

And see if that compiles anything usefull.

Otherwise, if you want to use the Arduino Pico core instead of the ArduinoCore-mbed, then you would need to use my platform fork anyway: And we have all the tools natively available for AArch64-Linux (and ARM64 Mac) thanks to Earle’s toolchain builds.

Ok, your suggested edit of the version: ~1.90301.0 worked and I can now run a $ pio project init --board pico. I initially was unable to configure a Serial Port on my pico, but uploading PR2040 Micropython uf2 successfully configured a ttyACM0 Serial Port on a Raspberry Pi 4. Thank you