Actually, screw all that.
The latest PlatformIO core introcued a setting with which you can make PlatformIO think that your system is just a regular “windows_amd64” one. Which should work if everything can be emulated on ARM64.
See https://github.com/platformio/platformio-core/releases/tag/v6.1.16.
To use:
- Use the CLI →
pio upgrade
andpio --version
to make sure your core version is 6.1.16 (or above, in the future). - Add a new environment variable to your account with the name
PLATFORMIO_SYSTEM_TYPE
and a value ofwindows_amd64
- Restart the computer for the environment variable to take effect
- Compile and upload Arduino code as normal.
This should be much, much easier.