0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

mbed CLI

Last updated at Posted at 2022-02-10

CLI1

 ツールチェインの場所

# グローバルに設定
mbed config -G GCC_ARM_PATH /Application/ARM/bin
# 削除 unset
mbed config -G GCC_ARM_PATH -U
# help
mbed config -h

コンパイル

# コンパイル
mbed compile -t MAX32625PICO -m GCC_ARM
# クリーン
mbed compile -c
# ヘルプ
mbed compile -h

ターゲット

# グローバル設定
mbed target -G MAX32625PICO
# ローカル設定
mbed target MAX32625PICO

設定

# 表示
mbed config --list
# 削除
mbed config TARGET -U

CLI2

gcc-armへのパスが通っている必要がある。

初期

# mbed-osをディプロイしない
mbed-tools new project_name -c

コンパイル

# -t -m 指示は必須
mbed-tools compile -t GCC_ARM -m MAX32625PICO

cmakeを利用する

サポートされているターゲットはK64F, DISCO_L475VG_IOT01A, NRF52840_DK

# -t -m 両方同時に指示
mbed-tools configure -t GCC_ARM -m K64F

# -S : ソースフォルダ 、 -B mbed_config.cmakeのフォルダ
cmake -S . -B cmake_build/K64F/develop/GCC_ARM -GNinja

# バイナリ作成
cmake --build cmake_build/K64F/develop/GCC_ARM
# or
ninja -C cmake_build/K64F/develop/GCC_ARM
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?