queezythegreat / arduino-cmake

Arduino CMake Build system
645 stars 216 forks source link

${TARGET}-burn fails on arduino uno, wrong programmer protocol #80

Closed antonpiatek closed 10 years ago

antonpiatek commented 10 years ago

Attempting to -burn to program my barebones uno (atmega328p) fails with the following error

[ 90%] Built target uno_CORE [100%] Built target cube

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check.

avrdude done. Thank you.

Having read http://forum.arduino.cc/index.php/topic,91580.0.html I changed build/CMakeCache.txt:avrisp.protocol:INTERNAL=stk500v1 to build/CMakeCache.txt:avrisp.protocol:INTERNAL=arduino

Arduino is the UbuntU package at version 1:1.0.5+dfsg2-1. Other package versions are: avr-libc 1:1.8.0-4 avrdude 6.0.1-1 binutils-avr 2.23.1-2 gcc-avr 1:4.8-2

and then the upload succeeds

mdaffin commented 10 years ago

What programmer is cmake set to use? On 11 Dec 2013 11:19, "Anton Piatek" notifications@github.com wrote:

Attempting to -burn to program my barebones uno (atmega328p) fails with the following error

[ 90%] Built target uno_CORE [100%] Built target cube

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check.

avrdude done. Thank you.

Having read http://forum.arduino.cc/index.php/topic,99478.0.html I changed build/CMakeCache.txt:avrisp.protocol:INTERNAL=stk500v1 to build/CMakeCache.txt:avrisp.protocol:INTERNAL=arduino

Arduino is the UbuntU package at version 1:1.0.5+dfsg2-1. Other package versions are: avr-libc 1:1.8.0-4 avrdude 6.0.1-1 binutils-avr 2.23.1-2 gcc-avr 1:4.8-2

and then the upload succeeds

— Reply to this email directly or view it on GitHubhttps://github.com/queezythegreat/arduino-cmake/issues/80 .

antonpiatek commented 10 years ago

avrisp, I also tried avrispmkii

mdaffin commented 10 years ago

If you are using an arduino as the isp programmer then try 'arduinoisp'

antonpiatek commented 10 years ago

No its a ftdi shrimp serial adapter On 11 Dec 2013 15:57, "Michael Daffin" notifications@github.com wrote:

If you are using an arduino as the isp programmer then try 'arduinoisp'

— Reply to this email directly or view it on GitHubhttps://github.com/queezythegreat/arduino-cmake/issues/80#issuecomment-30332288 .

queezythegreat commented 10 years ago

Hi, These settings are based on what is already set in the Arduino SDK, all the configuration parameters are directly taken from ${ARDUINO_SDK_PATH}/hardware/arduino/programmers.txt.

I think this bug is very specific to your hardware, not really related to Arduino-CMake. Closing the ticket for now, reopen it if something new comes up.