1284p-pu programming problem ( without bootloader) [Solved]

Hi all, I have a little big problem with my 1284p
I realize a simple schema for a blink sketch with power, clock, led like this

i make all necessary changes to arduino ide ( 1.0 and 1.01)

but the upload fail with this error:

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

         System wide configuration file is "/home/marco/Desktop/arduino-1.0.1/hardware/tools/avrdude.conf"
         User configuration file is "/home/marco/.avrduderc"

         Using Port                    : /dev/ttySA0
         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 done.  Thank you.

while if i go in terminal mode with avrdude i see this message:

marco@kalimero:~$ sudo avrdude -c avrispv2 -p m1284p -P /dev/ttySA0 -t -v -v

avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:41:10
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/marco/.avrduderc"

         Using Port                    : /dev/ttySA0
         Using Programmer              : avrispv2
         AVR Part                      : ATMEGA1284P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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    10   128    0 no       4096    8      0  9000  9000 0xff 0xff
           flash         65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP V2
         Programmer Model: STK500
         Hardware Version: 15
         Firmware Version Master : 2.10
         Topcard         : Unknown
         Vtarget         : 0.0 V
         SCK period      : 3.3 us
         Varef           : 0.0 V
         Oscillator      : 3.686 MHz

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9705
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as DC
avrdude: safemode: efuse reads as FD
avrdude> sig
>>> sig 

Reading |                                                    | 0% 0.00savrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_cmd(): short reply, len = 0
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_cmd(): short reply, len = 0
Reading | #################                                  | 33% 10.01savrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_cmd(): short reply, len = 0
Reading | ################################################## | 100% 15.01s

Device signature = 0x000000

avrdude> ^Cmarco@kalimero:~$

any idea? I verify the wiring to programmer ( pololu ) and it is ok ( i think )

thanks

Marco

In the first:

Using Programmer : stk500v1

In the second:

Using Programmer : avrispv2

Looks like you might have selected the wrong programmer in Arduino, or in the boards.txt file

but why if I use
sudo avrdude -c avrispv2 -p m1284p -P /dev/ttySA0 -t -v -v

i see

avrdude: Device signature = 0x1e9705
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as DC
avrdude: safemode: efuse reads as FD

but when i enter in terminal mode and type command sig

the result is

Device signature = 0x000000

I used bitbanging method to program my 1284 ( ftdi bitbang + avr-burn-o-mat) simple in use just connect 4 pins(on any old style arduino with ftdi chip) to ICSP pins on target uC and use avr-burn-o-mat to burn hex files (You can find them in temp directory)

hemmmm File->Upload Using Programmer this is the correct way :smiley:
Now the led blink :smiley:

thanks

i gave up long ago tring to put on a bootloader....i just use the 1.0 IDE hold down control and upload the sketch on it...no need for a bootloader