SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By LDS
#110472
Hi,

i'm new in this forum. I just got a Arduino MEGA from Sparkfun and I don't have any external programmer.
I would like to use AVRdude to program the arduino mega through the serial port. For what I've read it's possible since the bootloader that comes burned there is the STK500v2. But I'm having some trouble doing it.
Is it possible? Can anyone tell me how to do it?


This is what I tried (Windows):
#avrdude -c stk500v2 -b 115200 -p m1280 -P com2 -v -U flash:w:teste01.hex

In the device manager the COM port is recognized and the baud rate is set to 115200bps.



Best regards,
LDS
By LDS
#110479
I've done a small experiment. I tried one of the sketches that comes with the Arduino IDE and used the IDE to upload it to the board and all went fine! The program was uploaded to the board.
So, the problem has to do with the way I invoked avrdude.

Can anyone help me?


Thank you
LDS