Arduino 16, Mac OS X 10.5.7, Duemilanove ATmega328

Using Arduino 16 with Mac OS X 10.5.7 (iMac Intel Core 2 Duo.) I've connected a recently purchased Duemilanove ATmega328. Attempting to upload the "Blink" example and getting, "program is not responding."

I've gone through the troubleshooting guide and have power, selected correct board, selected correct port but still receiving, "program is not responding." Have tried using just USB for power and external power supply. Using the FTDI USB SerialDriver v2_2_10 (for Intel-based Macs.) Have re-installed Arduino 16, deleted prefs, re-installed FTDI driver, rebooted several times, but still cannot upload.

Anyone have a solution? :-) Anyone using this same configuration without problems? Guess it's time to fire up the Windows PC and confirm that the board works.

Thanks, -Chris

Here's the verbose upload output:

======================

avrdude: Version 5.4-arduino, compiled on Oct 9 2007 at 11:20:31 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "hardware/tools/avr/etc/avrdude.conf" User configuration file is "/Users/chris/.avrduderc" User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/tty.usbserial-A6008bWv Using Programmer : stk500v1 Overriding Baud Rate : 57600 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 avrdude: Send: Q [51] [20] avrdude: ser_recv(): programmer is not responding avrdude: stk500_recv(): programmer is not responding

======================

-Chris

What arguments are you passing to avrdude?

I have the same setup as you: Macbook Core Duo 2Ghz(~3yr old), OS X 10.5.7, Duemilanove w/ ATmega328 and a Bourduino w/ ATmega328. I've used Arduino 13, 14, 15, and 16 (they sure are updating an awful lot...).

The error you are getting is similar to the error I get when I have the wrong serial-port selected:

$ avrdude -c arduino -b 57600 -P /dev/tty.Bluetooth-PDA-Sync -p atmega328p -U flash:w:build/AVR_EXEC.hex:i -v

avrdude: Version 5.6, compiled on Apr 15 2009 at 17:54:59 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "/usr/local/CrossPack-AVR-20090415/etc/avrdude.conf" User configuration file is "/Users/gabe/.avrduderc" User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/tty.Bluetooth-PDA-Sync Using Programmer : arduino Overriding Baud Rate : 57600 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_recv(): programmer is not responding

It's long, but it may be helpful to see a successful verbose upload:

$ avrdude -c arduino -b 57600 -P /dev/tty.usbserial-A6008cD3 -p atmega328p -U flash:w:build/AVR_EXEC.hex:i -v

avrdude: Version 5.6, compiled on Apr 15 2009 at 17:54:59 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "/usr/local/CrossPack-AVR-20090415/etc/avrdude.conf" User configuration file is "/Users/gabe/.avrduderc" User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/tty.usbserial-A6008cD3 Using Programmer : arduino Overriding Baud Rate : 57600 AVR Part : ATMEGA328P Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PC2 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail :

Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


eeprom 65 5 4 0 no 1024 4 0 3600 3600 0xff 0xff flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : Arduino Description : Arduino Hardware Version: 2 Firmware Version: 1.16 Vtarget : 0.0 V Varef : 0.0 V Oscillator : Off SCK period : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f avrdude: safemode: lfuse reads as 0 avrdude: safemode: hfuse reads as 0 avrdude: safemode: efuse reads as 0 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "build/AVR_EXEC.hex" avrdude: writing flash (192 bytes):

Writing | ################################################## | 100% 0.11s

avrdude: 192 bytes of flash written avrdude: verifying flash memory against build/AVR_EXEC.hex: avrdude: load data flash data from input file build/AVR_EXEC.hex: avrdude: input file build/AVR_EXEC.hex contains 192 bytes avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.10s

avrdude: verifying ... avrdude: 192 bytes of flash verified

avrdude: safemode: lfuse reads as 0 avrdude: safemode: hfuse reads as 0 avrdude: safemode: efuse reads as 0 avrdude: safemode: Fuses OK

avrdude done. Thank you.

I'm actually using the avrdude from CrossPack ( http://www.obdev.at/products/crosspack/index.html) CrossPack's binaries are kept a bit more up to date than the Arduino IDE's binaries(avrdude 5.6 instead of 5.4). Even if you always use the Arduino IDE it can be handy to have CrossPack installed.

What arguments are you passing to avrdude? Have you tried it with a different computer?

Thanks for the reply.

In the Arduino 16 preferences file, I set "upload.verbose" to true (upload.verbose=true) so I'm not trying to pass anything to avrdude.

I've triple-checked and the serial port is /dev/tty.usbserial-A6008bWv with the FTDI drivers installed.

Lastly, I spent time trying to get the board working under Windows XP. Ran through the set up (installed drivers, Arduino 16, etc.), even tried another USB cable. Board still will not work. I'm feeling confident the problem is the board itself. Maybe the bootloader is corrupted.

I'd recommend that you get ahold of whoever you bought it from and get a replacement.

Having multiple Arduino boards around it awfully nice, I'd recommend getting a spare or two(not necessarily Duemilanoves). If you remove the Amtel328 from a Duemilanove you can use it as a FTDI serial interface for Arduino's that lack USB(like the Boarduino). I've been using this trick with a spare Duemilanove to program a few Boarduinos.

http://blog.spitzenpfeil.org/wordpress/2009/04/14/using-a-standard-arduino-to-program-v3-matrix-boards/

That picture doesn't show the reset connected to anything, but you want to hook it to the reset on the other Arduino. Considering the cost of an FTDI cable, it's crazy not to just get a spare Duemilanove.

For the record, this turned out be a problem with the board itself. I've since received a new Duemilanove ATmega328 and it works perfectly. :-) I also ordered a few Amtel328 chips (with Arduino bootloader) and will replace the one on the original, problematic, board and hopefully get it back in working order.

Thanks for the help.

-Chris