CLion を IDE として使用しています。ビルド後の出力は実行可能ファイルですexample
。私が達成したいのは.hex
、それからファイルを作成し、それを経由してAVRにアップロードすることavrdude
です。ここでいくつかの可能な解決策を読んで試しました
xxd -p example | tr -d '\n' > example.hex
と
avrdude -u -c usbasp-clone -p atmega8 -P /dev/bus/usb/001/006 -U flash:w:example.hex
しかし、avrdude
出力
avrdude: input file example.hex auto detected as invalid format
avrdude: invalid input file format: -1
avrdude: read from file 'example.hex' failed
ここに何かアイデアはありますか?