2017-07-20 3 views
3

Je viens juste de commencer à utiliser l'API mbed, et chaque fois que je suis en train de compiler mon projet cela seChemin vers GCC_ARM (mbed_settings.py)

post-scriptum Je suis sur ArchLinux

usage: make.py [-h] [-m MCU] [-t TOOLCHAIN] [--color] [--cflags CFLAGS] 
       [--asmflags ASMFLAGS] [--ldflags LDFLAGS] [-c] 
       [--profile PROFILE] [--app-config APP_CONFIG] [-p PROGRAM] 
       [-n PROGRAM] [-j JOBS] [-v] [--silent] [-D MACROS] 
       [-S [{matrix,toolchains,targets}]] [-f GENERAL_FILTER_REGEX] 
       [--automated] [--host HOST_TEST] [--extra EXTRA] 
       [--peripherals PERIPHERALS] [--dep DEPENDENCIES] 
       [--source SOURCE_DIR] [--duration DURATION] [--build BUILD_DIR] 
       [-N ARTIFACT_NAME] [-d DISK] [-s SERIAL] [-b BAUD] [-L] [--rpc] 
       [--usb] [--dsp] [--testlib] [--build-data BUILD_DATA] 
       [-l LINKER_SCRIPT] 
make.py: error: Could not find executable for GCC_ARM. 
Currently set search path: /usr/bin/arm-none-eabi-gcc 
[mbed] ERROR: "/usr/bin/python2" returned error code 2. 
[mbed] ERROR: Command "/usr/bin/python2 -u /home/mathieu_auclair/Desktop/git/IsolightProject/.temp/tools/make.py -t GCC_ARM -m K64F --source . --build ./BUILD/K64F/GCC_ARM" in "/home/mathieu_auclair/Desktop/git/IsolightProject" 
--- 

Je l'ai vu ce post: mbed CLI: make.py: error: Could not find executable for ARM mais je n'ai aucune idée de ce que le chemin est supposé être ... Ceci est mon fichier de configuration:

""" 
mbed SDK 
Copyright (c) 2016 ARM Limited 

Licensed under the Apache License, Version 2.0 (the "License"); 
you may not use this file except in compliance with the License. 
You may obtain a copy of the License at 

http://www.apache.org/licenses/LICENSE-2.0 

Unless required by applicable law or agreed to in writing, software 
distributed under the License is distributed on an "AS IS" BASIS, 
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
See the License for the specific language governing permissions and 
limitations under the License. 
""" 

from os.path import join, abspath, dirname 

#ROOT = abspath(join(dirname(__file__), ".")) 

############################################################################## 
# Build System Settings 
############################################################################## 
#BUILD_DIR = abspath(join(ROOT, "build")) 

# ARM 
#ARM_PATH = "C:/Program Files/ARM" 

# GCC ARM 
GCC_ARM_PATH = "/usr/bin/arm-none-eabi-gcc" 

# GCC CodeRed 
#GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin" 

# IAR 
#IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm" 

# Goanna static analyser. Please overload it in private_settings.py 
#GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin" 

#BUILD_OPTIONS = [] 

# mbed.org username 
#MBED_ORG_USER = "" 

Cette question pourrait être simple pour vous, mais je viens juste de commencer donc s'il vous plaît aidez-moi juste ...

[UPDATE]

Je tentais choses et j'ai essayé manuellement pour lancer le compilateur et cela est arrivé:

COMMANDE

/usr/bin/python2 -u /home/mathieu_auclair/Desktop/git/IsolightProject/.temp/tools/make.py -t GCC_ARM -m k64f --source . --build ./BUILD/K64F/GCC_ARM 

SORTIE

htProject/.temp/tools/make.py -t GCC_ARM -m k64f --source . --build ./BUILD/K64F/GCC_ARM 
Building project IsolightProject (K64F, GCC_ARM) 
Scan: . 
Scan: env 
Scan: mbed 
Compile [ 3.6%]: BLEInstanceBase.cpp 
[Fatal Error] [email protected],16: stdint.h: No such file or directory 
[ERROR] In file included from ./BLE_API/ble/BLEProtocol.h:21:0, 
       from ./BLE_API/ble/Gap.h:20, 
       from ./BLE_API/ble/BLE.h:21, 
       from ./BLE_API/source/BLEInstanceBase.cpp:17: 
/usr/lib/gcc/arm-none-eabi/7.1.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 
# include_next <stdint.h> 
       ^~~~~~~~~~ 
compilation terminated. 

Je vais essayer de comprendre ce qui est stdint.h, qui doit être le problème, je vais faire une mise à jour sur ce qui est arrivé avec ça!

+3

Votre 'GCC_ARM_PATH 'points variables au bras' gdb', pas 'gcc'. Probablement juste une faute de frappe. Avez-vous 'arm-none-eabi-gcc' dans/usr/bin? –

+0

Correction de cela, et cela ne fonctionnait pas non plus ... – MathieuAuclair

+0

Existe-t-il '/ usr/bin/bras-none-eabi-gcc'? Et cela se résout-il à un exécutable réel? Il semble que non. –

Répondre