Failing to create project on arm64 with stm32 cube framework

the creation of a project using the stm32cube framework fails on an arm64 (rk3588 on rock 5b) cpu with archlinux (reborn os) and the error:

PIO Core Call Error: “The current working directory /home/hannes/Dokumente/PlatformIO/Projects/STM32 BLE test will be used for the project.\n\nThe next files/directories have been created in /home/hannes/Dokumente/PlatformIO/Projects/STM32 BLE 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\nResolving nucleo_l476rg dependencies…\nPlatform Manager: Installing ststm32\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\nUnpacking\nPlatform Manager: ststm32@15.4.1 has been installed!\nTool Manager: Installing platformio/toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0\n\n\nError: Could not find the package with ‘platformio/toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0’ requirements for your system ‘linux_aarch64’”

Per

is there any solution?

Did you try what @valeros suggested?

platform_packages =
  toolchain-gccarmnoneeabi@~1.90301.0

in the platformio.ini

no i cant even create the project
so i cant edit the platformio.ini

You can create the project as a working one (e.g. Arduino Uno + Arduino) then edit the platformio.ini fully afterwards.

ok and what else do i need to put in to it

From your output it seems you want a STM32 + Nucleo STM32L476RG + STM32Cube project so that would be

[env:nucleo_l476rg]
platform = ststm32
board = nucleo_l476rg
framework = stm32cube

Just like in the official example.

1 Like

thankyou it works with this trick