jtag and avr ice mkI problem

View: New views
4 Messages — Rating Filter:   Alert me  

jtag and avr ice mkI problem

by andrea campanella :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the company there I work we try to integrate avrdude in the work process
for programming our avr micro.
We have some avr ice mkI and some ice mkI clone (olimex), but when we try to
program the micro (in this case atmega128) in jtag with avrdude 5.6 :

avrdude -c jtag1  -P com3  -p m128  -u  -U efuse:w:0xff:m  -U
hfuse:w:0x99:m  -U lfuse:w:0x3f:m  -U lock:w:0xfc:m -v

we have this problem:
Using Port                    : com3
         Using Programmer              : jtag1
         AVR Part                      : ATMEGA128
         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         4    12    64    0 no       4096    8      0
9000  9000 0xff 0xff
           flash         33     6   128    0 yes    131072  256    512
4500  4500 0xff 0xff
           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
           lock           0     0     0    0 no          1    0      0
9000  9000 0x00 0x00
           calibration    0     0     0    0 no          4    0      0
0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0
0     0 0x00 0x00

         Programmer Type : JTAGMKI
         Description     : Atmel JTAG ICE (mkI)
         ICE hardware version: 0xce
         ICE firmware version: 0x7f
         Vtarget         : 5.1 V
         JTAG clock      : ??? (1.0 us)

avrdude: jtagmkI_initialize(): warning: OCDEN fuse not programmed,
single-byte EEPROM updates not possible
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x1e9702
avrdude: reading input file "0xff"
avrdude: writing efuse (1 bytes):

Writing | ################################################## | 100% 0.03s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xff:
avrdude: load data efuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip efuse data:

Reading |                                                    | 0%
0.00savrdude:
jtagmkI_read_byte(): timeout/error communicating with programmer (resp  )
WARNING!! Programming completed with ERRORS


In the documentation the avr ice mkI is supported in jtag but there is no
way for make it work...



--
Andrea Campanella
_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Re: jtag and avr ice mkI problem

by andrea campanella :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No reply? I need to submit a bug for this?

The status is this:

Avrdude seem non realy support avr ice mkI in jtag...

--
Andrea "emuboy" Campanella
emuboy.homelinux.com


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Re: jtag and avr ice mkI problem

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As andrea campanella wrote:

> Reading |                                                    | 0%
> 0.00savrdude:
> jtagmkI_read_byte(): timeout/error communicating with programmer (resp  )
> WARNING!! Programming completed with ERRORS

Please make your option "-v" four -v's "-vvvv".  That will display the
trace of the commands to stderr.  Pick the vicinity of the error, and
see what they are talking about.

Curious, does it work in AVR Studio?  (I see you are using Windows
anyway.)

Unfortunately, there aren't so many protocol version 1 JTAG ICEs
around these days.  Personally, I don't have one anymore.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Re: jtag and avr ice mkI problem

by andrea campanella :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
> Curious, does it work in AVR Studio?  (I see you are using Windows
> anyway.)
>
> Unfortunately, there aren't so many protocol version 1 JTAG ICEs
> around these days.  Personally, I don't have one anymore.
>
>

Sorry for the delay, are busy days here in italy :)

yes, it's work with a old version of avr studio like a charm, we want to use
it with avrdude bacause of this...it' a old version :D

so, this is the trace :

http://rapidshare.com/files/295415376/output.txt.gz.html

MD5: 40333D5759A3FF23BACF854836A1DE7C

I hope that this can help you...


--
Andrea Campanella
_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev