0

Diecimila w/ Atmega328 AVRdude uploading problems on Windows
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Diecimila w/ Atmega328 AVRdude uploading problems on Windows

by psycocoffey on Fri Mar 20, 2009 12:32 pm

I recently upgraded my Arduino Diecimila with an Atmega328 from this site. With the Arduino software (v14+ WinXP) there is no trouble programming the board. But the program I'm trying to write would be difficult to develop with the Arduino IDE because of its modular nature.
After some digging I discovered a batch script at http://www.ghettohax.com/2009/03/windows-xp-build-script-for-arduino.html It seemed to be the perfect way to build and program my board. The upload process boils down to the following avrdude command
Code: Select all | TOGGLE FULL SIZE
avrdude -C "..\arduino-0014\hardware\tools\avr\etc\avrdude.conf" -p atmega328p -P \\.\COM23 -c stk500 -b 19200 -U "flash:w:.\example\out\projectA.hex"

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout


I've tried resetting the board at different times, with no result. I can see the rx/tx lights on the board flash, indicating that the correct port is being used, and that avrdude is doing something, but the program is not being written.
Does anyone have any suggestions as to where the problem is?
psycocoffey
 
Posts: 2
Joined: Fri Mar 20, 2009 12:20 pm

Re: Diecimila w/ Atmega328 AVRdude uploading problems on Windows

by adafruit on Mon Mar 23, 2009 4:50 pm

you may want to be using 57600 baud

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Diecimila w/ Atmega328 AVRdude uploading problems on Windows

by psycocoffey on Mon Mar 23, 2009 5:39 pm

Thanks! Problem solved.

I even remember reading that this chip's boot loader was 3x faster, yet it slipped through the cracks.

Again, Thanks for the quick response.
psycocoffey
 
Posts: 2
Joined: Fri Mar 20, 2009 12:20 pm

Please be positive and constructive with your questions and comments.