LoginSignup
2
2

More than 5 years have passed since last update.

[Mac]ArduinoIDEでHEXファイルを出力する

Posted at

WHAT

ArduinoIDEでスケッチをコンパイルして、AVRに書き込むためのhexファイルを出力する。

PURPOSE

  • AtmelStudioを使いたくない。
  • ArduinoCoreライブラリを使いたい。

HOW

1. ArduinoIDEの設定を変更する

/Users/<UserName>/Library/Arduino/preferences.txt
を編集する。
この時、ArduinoIDEは終了しておくこと。

次の行を追加
build.path=/Applications/Arduino.app/temp/
次の行を探し出し
preproc.save_build_files=false
変更
preproc.save_build_files=true

buildpathに書いてしまったので、Arduinoのアプリケーションフォルダ内にtempというフォルダを作る。

2. コンパイルする

スケッチを書いたら、あとはコンパイルするだけ。
上述のフォルダ内にファイル名.hexファイルが出来上がる。

2
2
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
2
2