0
0

STM32 VS Code Extension with macOS

Posted at

完全に私のメモですが...

  • macOS Monterey 12.7.6
  • VScode Version: 1.92.2 (Universal)

導入する。ドキュメントに従い、以下もインストール

  • STM32CubeMX
  • STM32CubeCLT
  • ST-MCU-FINDER

機能拡張の設定 私はこんな感じ。

image.png

コピペ用

/opt/ST/STM32CubeCLT_1.16.0

STM32CubeMXを使って、プロジェクトを保存。ドキュメントにあるように、ToolchainはCMakeを指定する。

image.png

Import CMake project を選び、プロジェクトを開く。コードを修正。

image.png

CMakeの設定をする。ドキュメントに書いてある。

image.png

VScode コマンドパレットで以下2つを実行

  • CMake Select Configure Preset - Debug を選択
  • CMake Add configure Preset - 誘導に従って選択していく。

ここで左下の Build が押せるようになる。

image.png

NUCLEOを接続。ST-LINKのファームが最新であれば、

Run and Debug をクリックして、...ST-Link を選ぶとデバッグができる。

image.png

止めてレジスターの状況も確認できる。やったね!

image.png

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