Hello,
this is my first post here because usually everything work
I have a mac M1 (M1 Pro, darwin_arm64), I just install Platformio (I tried VSCode plugin and Platformio CLI), everything looks good then it’s time to build a basic project for my arduino (arduino nano), then it failled.
Platformio automatically download the required packages, but I think the package toolchain-atmelavr downloaded isn’t correct because it said Bad CPU type in executable
for the binary inside ~/.platformio/packages/toolchain-atmelavr/bin/*
(probably for darwin_x86_64). But it’s compatible for darwin_arm64 for this package : PlatformIO Registry
I know if I install Rosetta 2 everything will be ok, but I would like to use the M1 natively because everything looks compatible.
Do you know how I can force the download of the darwin_arm64 version ?
Platformio know i’m on a darwin_arm64 cpu
➜ ~ pio system info
-------------------------- -------------------------------------------
PlatformIO Core 5.2.5
Python 3.8.9-final.0
System Type darwin_arm64
Platform macOS-12.3
File System Encoding utf-8
Locale Encoding UTF-8