【发布时间】:2016-03-06 10:48:08
【问题描述】:
我使用 CLion 作为 IDE。构建后的输出是一个可执行文件example。我想要实现的是从中制作.hex 文件并通过avrdude 将其上传到我的AVR。我阅读并尝试了一些possible solutions here
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
这里有什么想法吗?
【问题讨论】:
标签: cmake hex avr clion avrdude