5
4

More than 3 years have passed since last update.

Arduino のバイナリの出力方法と逆アセンブルの方法のメモ

Last updated at Posted at 2020-01-11

忘備録です。

.hex の出力

Arduino IDE 1.8.10 の場合、「スケッチ」「コンパイルしたバイナリを出力」のメニューで、スケッチのあるディレクトリに .hex ファイルが生成される。

逆アセンブル

mac の場合

disassemble.sh
 $ /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objdump -j .sec1 -d -m avr \ 
    sample.ino.with_bootloader.eightanaloginputs.hex > sample.asm

こんな感じでいける。(/Applications に Arduino IDE をインストールしている場合)

Windows の場合

avr-objdump は下記にある。(C:\Program Files (x86)\Arduino に Arduino IDE がインストールされている場合)

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin

オンライン逆アセンブラ

下記に .hex ファイルを読ませてもできる。(このサイトはすごい)
- https://onlinedisassembler.com/

参考

5
4
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
5
4