Pages: [1]   Go Down
Author Topic: aduino ide can load firmware, but avrdude cannot  (Read 782 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Like thousands of others, avrdude shows the hallmark output:
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

I'm trying to move away from the toy ide and towards make and the avr/gcc toolchain on linux. The problem is not hardware... it is probably some setting (other than bitrate) that I just don't get. I am pretty sure of this because the arduino ide can burn the blink project, but I can't seem to find the right command line for avrdude. I've been using:
    /usr/local/arduino-1.0.1/hardware/tools/avrdude \
        -C/usr/local/arduino-1.0.1/hardware/tools/avrdude.conf \
        -patmega2560 -carduino \
        -P/dev/ttyACM0 -b38400 \
        -D -F -v -v -v -v -V \
        -Uflash:w:~/tmp/marlin.hex:i

Yes, /dev/ttyACM0 is correct (arduino uses ttyACM0). I've tried bitrates from 9600 to 115200. I can get the same failure/success under windows using avrdude under cygwin and the windows arduino ide. I'm sure the answer is a simple one. Thanks in advance.
Logged

Austin, TX
Offline Offline
God Member
*****
Karma: 12
Posts: 524
carpe diem
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You should probably use

-cstk500v2 or -cwiring

with the Arduino Mega 2560
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can answer one thing the baudrate to use. That is determined and hard coded by the bootloader on the board and for a Arduino mega/2560 (from the boards.txt file) it is:

Quote
mega2560.upload.speed=115200

Lefty
Logged

Pages: [1]   Go Up
Jump to: