Go Down

Topic: ArduinoISP not Working (Read 5310 times) previous topic - next topic

Osgeld

I dont know how arduino acts on OSX (I have a mac but its 15 years old and only runs up to 10.2) so I dont know if you can just run avrdude from a command line without having to search for it ... in linux it installs a package that makes avrdude part of the path so you can execute it from anywhere but try running it from a command line, if it doesnt work you will have to hunt it down (which should be in the first couple lines of your pastebin)

anyway try running it from a terminal like

avrdude -p atmega328p -c avrisp -P /dev/tty.usbserial-A4001l0H -b 19200 -v

and make sure your reset is still disabled on the board
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

StuartP

Ok.

Without the 10uF capacitor

Code: [Select]
30:avr swp$ /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cavrisp -P/dev/tty.usbserial-A4001l0H -b19200

avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/swp/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/tty.usbserial-A4001l0H
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
         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    20     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 : STK500
         Description     : Atmel AVR ISP
         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.07s

avrdude: Device signature = 0x1e9406
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.


with the 10uF capacitor in place

Code: [Select]
30:avr swp$ /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cavrisp -P/dev/tty.usbserial-A4001l0H -b19200

avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/swp/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/tty.usbserial-A4001l0H
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding

avrdude done.  Thank you.


Remove power to the 328 target

Code: [Select]
30:avr swp$ /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cavrisp -P/dev/tty.usbserial-A4001l0H -b19200

avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/swp/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/tty.usbserial-A4001l0H
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
avrdude: stk500_getsync(): not in sync: resp=0x66

avrdude done.  Thank you.


Osgeld

ok getting a little closer, load this on your arduino

http://code.google.com/p/mega-isp/downloads/detail?name=ArduinoISP.04.zip&can=2&q=

I remember someone saying that the isp on 1.0 is screwy, and I use this one all the time, then try avrdude again
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

StuartP

I'm using the latest ArduinoISP as mentioned in the first post

arduinoisp.ino from https://github.com/rsbohn/arduinoisp


StuartP


ok getting a little closer, load this on your arduino

http://code.google.com/p/mega-isp/downloads/detail?name=ArduinoISP.04.zip&can=2&q=

I remember someone saying that the isp on 1.0 is screwy, and I use this one all the time, then try avrdude again



Ok, just given this a go with arduino022, 10uF capacitor. Still get the same result with the wrong chip being recognized.

StuartP

Ok.

Arduino 022 and the supplied arduinoISP sketch appears to work on the 328.

Testing with the 1284p, I get the following

avrdude: Device signature = 0x1e9705


johnwasser


Testing with the 1284p, I get the following

avrdude: Device signature = 0x1e9705


That's the right signature for the 1284p.  Is the right processor being specified on the avrdude command line?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

StuartP

Well currently no, but thats deliberate.

At least I now know I'm able to probably get a bootloader onto my 1284p.

Going to try manibug's mighty-1284p package, which includes an optiboot derived bootloader

NicoHood

Its fixed in 1.5.7 (avrdude bug).
Also see this: https://github.com/NicoHood/Hoodloader

Go Up