MSYS2 安装Arm GNU Toolchain Downloads
pacman -S mingw-w64-x86_64-arm-none-eabi-gcc
https://stackoverflow.com/a/73873719/18158055
但似乎这个包不包含 arm-none-eabi-gdb
(?或者说兼容不是很好) ,建议前往官网安装:
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
最后一步勾选 add to path 即可