mbed CLI: make.py: error: Could not find executable for ARM

匿名 (未验证) 提交于 2019-12-03 01:25:01

问题:

I'm trying to compile a program with the mbed CLI using the following command:

mbed compile -m UBLOX_C027 -t ARM 

It results in the following error:

make.py: error: Could not find executable for ARM. Currently set search path: No path set 

How can I set the executable?

回答1:

Two ways, either:

  • Set ARM_PATH in mbed_settings.py in the root folder of your project.
  • Or make sure that ARMCC is in your path.

Note that ARM compiler target is for the commercial ARM compiler. If you're using GCC ARM use the GCC_ARM target.



回答2:

I know I am way too late but still if anyone is facing the same problem. I solved it in this way in MAC OS.

  1. Download GCC_ARM for MAC OS from here: https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
  2. Extract it in some location and set the path using mbed cli:

mbed config -G GCC_ARM_PATH "/Users/amod-mac/Desktop/gcc-arm-none-eabi-7-2017-q4-major/bin"



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!