参考来源:https://www.novelbits.io/nrf52-visual-studio-code/
请先下载安装工具链所需要用到的XCode,安装后确认XCode命令行工具正确安装,这方面的配置请参考:
https://www.embarcadero.com/starthere/berlin/mobdevsetup/ios/en/installing_the_xcode_command_line_tools_on_a_mac.html
下载Arm GNU并解压:
打开<NRF5 SDK>/components/toolchain/gcc/Makefile.posix文件,并且更改GNU_INSTALL_ROOT为GNU工具链所在位置:(注意bin和后面的斜杆不要漏了!)
GNU_INSTALL_ROOT ?= /usr/local/gcc-arm-none-eabi-9-2019-q4-major/bin/
GNU_VERSION ?= 7.3.1
GNU_PREFIX ?= arm-none-eabi