Команда mbed-cli [OS ERROR]
У меня возникают проблемы с работой примера программы mbed. Я установил набор инструментов ARM Compiler 5 и следовал всем инструкциям. Я настроил переменную пути тоже:
mbed config -G ARM_PATH "/home/test/ARM_Compiler_5.06u6
Когда я пытаюсь собрать пример программы, используя:
mbed compile -m nucleo_f411re -t ARM
Не удается построить со следующей ошибкой:
Building project Nucleo_blink_led (NUCLEO_F411RE, ARM)
Scan: .
Scan: mbed
Scan: env
[OS ERROR] Command: /home/test/ARM_Compiler_5.06u6/bin/armcc -c --gnu -Otime --split_sections --apcs=interwork --brief_diagnostics --restrict --multibyte_chars -O3 --cpu=Cortex-M4.fp --md --no_depend_system_headers --c99 -D__ASSERT_MSG --cpp --no_rtti --no_vla -D__MBED__=1 -DDEVICE_I2CSLAVE=1 -D__FPU_PRESENT=1 -DDEVICE_PORTOUT=1 -DUSBHOST_OTHER -DDEVICE_PORTINOUT=1 -DTARGET_RTOS_M4_M7 -DDEVICE_LOWPOWERTIMER=1 -DDEVICE_RTC=1 -DTOOLCHAIN_object -DDEVICE_SERIAL_ASYNCH=1 -DTARGET_STM32F4 -D__CMSIS_RTOS -D__CORTEX_M4 -DDEVICE_I2C_ASYNCH=1 -DTARGET_CORTEX_M -DTARGET_LIKE_CORTEX_M4 -DTARGET_M4 -DTARGET_UVISOR_UNSUPPORTED -DDEVICE_SPI_ASYNCH=1 -DTARGET_STM32F411xE -DDEVICE_SERIAL=1 -DDEVICE_INTERRUPTIN=1 -DMBED_BUILD_TIMESTAMP=1526481897.92 -DTARGET_CORTEX -DDEVICE_I2C=1 -DTRANSACTION_QUEUE_SIZE_SPI=2 -DTARGET_NUCLEO_F411RE -DDEVICE_STDIO_MESSAGES=1 -DTARGET_FF_MORPHO -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DDEVICE_PORTIN=1 -DTARGET_RELEASE -DTARGET_STM -DDEVICE_SERIAL_FC=1 -DTARGET_LIKE_MBED -D__MBED_CMSIS_RTOS_CM -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DUSB_STM_HAL -DTOOLCHAIN_ARM_STD -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_PWMOUT=1 -DDEVICE_ERROR_RED=1 -DTARGET_STM32F411RE -DTOOLCHAIN_ARM -DARM_MATH_CM4 --via ./BUILD/nucleo_f411re/ARM/.includes_24bb57a9ce96a717bf16cae99164bfe8.txt --preinclude=./BUILD/nucleo_f411re/ARM/mbed_config.h --depend ./BUILD/nucleo_f411re/ARM/./main.d -o ./BUILD/nucleo_f411re/ARM/./main.o ./main.cpp
[ERROR] [Errno 2] No such file or directory
[mbed] ERROR: "/usr/bin/python" returned error code 1.
[mbed] ERROR: Command "/usr/bin/python -u /tmp/Nucleo_blink_led/.temp/tools/make.py -t ARM -m nucleo_f411re --source . --build ./BUILD/nucleo_f411re/ARM" in "/tmp/Nucleo_blink_led"
РЕДАКТИРОВАТЬ
Решил эту проблему, нужно было добавить архитектуру i386.
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
Но возникла новая проблема с файлом лицензии. Я бегу, пытаясь запустить это на сервере.
Building project Nucleo_blink_led (NUCLEO_F411RE, ARM)
Scan: .
Scan: mbed
Scan: env
Compile [100.0%]: main.cpp
[ERROR] Error: C9555E: Failed to check out a license.
Information about this error is available at: http://ds.arm.com/support/lic56/m2
General licensing information is available at: http://ds.arm.com/support/licensing/
If you need further help, provide this complete error report to your supplier or license.support@arm.com.
- ARMLMD_LICENSE_FILE: 'unset'
- LM_LICENSE_FILE: unset
- ARM_TOOL_VARIANT: unset
- ARM_PRODUCT_PATH: unset
- Product location: /home/test/ARM_Compiler_5.06u6/sw/mappings
- Toolchain location: /home/test/ARM_Compiler_5.06u6/bin
- Selected tool variant: product
- Checkout feature: compiler5
- Feature version: 5.0201709
- Flex error code: -2
Product: ARM Compiler 5.06
Component: ARM Compiler 5.06 update 6 (build 750)
Tool: armcc [4d3637]
[mbed] ERROR: "/usr/bin/python" returned error code 1.
[mbed] ERROR: Command "/usr/bin/python -u /tmp/Nucleo_blink_led/.temp/tools/make.py -t ARM -m nucleo_f411re --source . --build ./BUILD/nucleo_f411re/ARM" in "/tmp/Nucleo_blink_led"
---