mbed CLI:make.py:错误:无法找到ARM的可执行文件
我正在尝试使用mbed CLI使用以下命令编译程序:
mbed compile -m UBLOX_C027 -t ARM
它会导致以下错误:
make.py: error: Could not find executable for ARM. Currently set search path: No path set
我该如何设置可执行文件?
两种方式,或者:
- 在项目的根文件夹中的mbed_settings.py中设置
ARM_PATH
。 - 或者确保ARMCC在您的路径中。
请注意, ARM
编译器目标适用于商业ARM编译器 。 如果您正在使用GCC ARM,请使用GCC_ARM
目标。
我知道我已经太晚了,但如果有人面临同样的问题仍然存在。 我在MAC OS中以这种方式解决了它。
- 从这里下载适用于MAC OS的GCC_ARM: https : //developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
- 在某个位置提取它并使用mbed cli设置路径:
mbed config -G GCC_ARM_PATH "/Users/amod-mac/Desktop/gcc-arm-none-eabi-7-2017-q4-major/bin"