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 5 years have passed since last update.

SW4STM32で逆アセンブルリストを出力する

Posted at

はじめに

System Workbench for STM32 (SW4STM32)で開発を行うとき,コンパイラの動作を調べるために逆アセンブルリストが必要になることがある.そのための設定をメモ.

環境はmacOS Mojave,SW4STM32 v2.8.ターゲットはNucleo F411RE.

逆アセンブルリストの出力

Project Explorerでプロジェクトを選択し,メニューバーの"Project">"Properties"をクリックする.

"C/C++ Build">"Settings"をクリックし,"Build Steps"タブを選択する.

Screenshot 2019-03-01 at 17.50.49.png

"Post-build steps"の”Command: "欄を以下のように変更する.

Command
arm-none-eabi-objdump -D -Sd "${BuildArtifactFileBaseName}.elf" > "${BuildArtifactFileBaseName}.lst" && arm-none-eabi-objcopy -O binary "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.bin" && arm-none-eabi-size "${BuildArtifactFileName}"

"OK"をクリックし,ビルドすると,.binや.elfといったバイナリファイルと同じ階層に.lstの逆アセンブルリストが出力される.

Screenshot 2019-03-01 at 17.54.44.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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?