Pages: [1]   Go Down
Author Topic: 1284p-pu programming problem ( without bootloader) [Solved]  (Read 1349 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/

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

but the upload fail with this error:

Code:
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:

Code:
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

« Last Edit: September 25, 2012, 04:21:57 pm by uno23 » Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 78
Posts: 1719
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In the first:
Quote
Using Programmer              : stk500v1
In the second:
Quote
Using Programmer              : avrispv2

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

~Tom~

Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Katowice POLAND
Offline Offline
Full Member
***
Karma: 2
Posts: 127
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

thanks
Logged

maryland-USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

I'm old and started too late with microcontrollers

Pages: [1]   Go Up
Jump to: