Arduino Mega 2650 - avrdude: stk500_2_ReceiveMessage(): timeout

Hello all,

If anyone can be of assistance, it would be appreciated.

  • Board worked perfect until I loaded the program indicated below.

Operating System: Ubunto 11.04
Board: Arduino Mega 2650

Program that killed the Arduino and my joy:
Raw-IR-decoder-for-Arduino / rawirdecode.pde
https://github.com/adafruit/Raw-IR-decoder-for-Arduino/blob/master/rawirdecode.pde

Verbose Error Output:
Binary sketch size: 1542 bytes (of a 258048 byte maximum)
/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/ttyS0 -b115200 -D -Uflash:w:/tmp/build457080794881783050.tmp/Blink.cpp.hex:i

avrdude: Version 5.10, compiled on Jun 29 2010 at 21:09:48
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is “/usr/share/arduino/hardware/tools/avrdude.conf”
User configuration file is “/home/jack/.avrduderc”
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/ttyS0
Using Programmer : stk500v2
Overriding Baud Rate : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout

Problem Solved:

I discovered that the serial port the Arduino program was trying to use was incorrect. The software must have automatically changed the setting. I do not know the exact steps that were executed to cause this behavior.

The confluence of events leading to the issue clouded my objectivity during troubleshooting. Existing posts on the subject aided in leading me to think that I had to reflash the Arduino unit.

Lesson learned: Check the basics. First, check the serial port and board type defined in the Arduino software package when you run into this problem. Do not assume that the original values you specified are immutable.