Pages: [1]   Go Down
Author Topic: Trying to use avrdude but error occurs  (Read 916 times)
0 Members and 1 Guest are viewing this topic.
Puerto Rico
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to use avrdude to upload an assembly file (.hex) to my arduino mega 2560, but a very strange error occurs.

I type this on the command line:

avrdude -p m2560 -c stk500 -e -U flash:w:myfile.hex

and I get this error:

error at C:\WinAVR-2100110\bin\avrdude.conf:320 unrecognized character "a"

What is this?
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 614
Posts: 49363
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What does line 320 of C:\WinAVR-2100110\bin\avrdude.conf look like?
Logged

Puerto Rico
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
programmer
  id    = "arduino";
  desc  = "Arduino";
  type  = arduino;
;

Line 320 is type = arduino;

I really need this to work, and I've spent about 3 hours today trying to figure out why it's not working.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12917
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What does this output?

Code:
avrdude -v
Logged

Puerto Rico
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



Version 5.4
« Last Edit: February 19, 2011, 01:57:10 pm by Tinito16 » Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12917
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

AVRDUDE version 5.10 comes with WinAVR 2100110.

AVRDUDE version 5.4 comes with Arduino.

You're running the Arduino AVRDUDE but it's finding and trying to use the WinAVR configuration file.  You have a problem with your PATH environment variable.  Remove all references to your Arduino directories from PATH.
Logged

Puerto Rico
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you very much! You have made my day  smiley-mr-green
Logged

Pages: [1]   Go Up
Jump to: