0

我对 avr 编程完全陌生,我正在尝试让 xcode 与我的 Arduino Mega2560 一起工作。我设法让它与 embedxcode 一起工作,但现在我正在尝试使用 xavr 项目方案更精简的方法。出于某种原因,我无法将我的代码上传到 arduino。它给了我这个错误:

Command /Applications/Xcode.app/Contents/Developer/usr/bin/make failed with exit code 2

我得到的最后一点输出是这样的:

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: stk500v2_command(): command failed

avrdude done.  Thank you.

make: *** [program] Error 255
Command /Applications/Xcode.app/Contents/Developer/usr/bin/make failed with exit code 2

我在这里上传了完整的输出:http: //pastebin.com/y7Z5F5NP

我真的希望有人能帮我弄清楚如何让它工作——这对我开始使用我的 arduino 有很大帮助:)

提前致谢!

4

1 回答 1

0

你修改了你的makefile吗?如果你这样做了,你可能会在规则的配方行上放置一个额外的空格。食谱上的第一个字符应该是一个制表符。

于 2015-04-01T03:04:10.087 回答