Skip to content

Can not build in Mbed Studio terminal #31

Open
@iossocket

Description

@iossocket

Hello,

When I build mcuboot-arduino-stm32h7 in Mbed Studio following the README. Encounter an error:

➜  mcuboot-arduino-stm32h7 git:(main) mbed compile -m PORTENTA_H7_M7 -t GCC_ARM --profile=release --profile custom.json
[mbed] Working path "/Users/sashimi/Mbed Programs/mcuboot-arduino-stm32h7" (program)
Could not find executable for GCC_ARM.
Currently set search path: /Library/Application Support/Mbed Studio/mbed-studio-tools/gcc/bin
[mbed] ERROR: "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/bin/python" returned error.
       Code: 2
       Path: "/Users/sashimi/Mbed Programs/mcuboot-arduino-stm32h7"
       Command: "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/bin/python -u /Users/sashimi/Mbed Programs/mcuboot-arduino-stm32h7/mbed-os/tools/make.py -t GCC_ARM -m PORTENTA_H7_M7 --profile release --profile custom.json --source . --build ./BUILD/PORTENTA_H7_M7/GCC_ARM-RELEASE"
       Tip: You could retry the last command with "-v" flag for verbose output
---

Debug into the source code mcuboot-arduino-stm32h7/mbed-os/tools/make.py. I found the error was thrown from toolchain_names = get_valid_toolchain_names(target, toolchain), which is defined in build_api.py. So I suspect I missed some toolchain bin or used the wrong mbed cli?

Appreciate some one can help me out.

Environment

OS: MacOS
Mbed Studio: 1.4.5.19
mbed cli: 1.10.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions