Go Down

Topic: what am i doing wrong? (Read 743 times) previous topic - next topic

winner10920

So I've been trying to learn about avrdude and isp so I was trying to upload the blink.cpp.hex file from the compiled example, it uploaded no problem but it didn't actually blink, so I tried re uploading the bootloader and I get an error verification mismatch, then the led blinks in a strange pattern
however I was able to upload the normal way with the ide afterwards
im using this command to upload the blink.hex file from where the ide compiles it
Code: [Select]

Avrdude -p m2560 -c usbasp -U flash:w:blink.hex

robtillaart


YOu can see the command the IDE uses for avrdude by holding the shiftkey when pressing the upload button.

There might be a parameter you missed.

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

winner10920

I just tried with the ide using upload with programmer, I get no errors except for cannot set sck period, but it continues to upload and verify no problem
except it doesn't blink...
same if I did it with avrdude, can it be my usbasp?

winner10920

Ok I tried it with my uno and it works fine, what's the difference with the mega?

Go Up