EmbDev.net

Forum: µC & Digital Electronics Connecting USBprog with JTAGice mk2 to Atmel Raven


Author: René V. (theduke)
Posted on:

Rate this post
0 useful
not useful
Hi Folks,

I'm getting quite desperate here.
For some days now i tried to connect my USBprog with the JTAG clone to 
my new Atmel Raven-Kit.
I use WinXP SP2, AVRStudio 4.18.716, the newest WinAVR, avrdude 5.10. 
and this
(http://svn.berlios.de/svnroot/repos/usbprog/trunk/...)
Firmware, the newest one (jtagice2-dev.bin) doesn't work for me, its not 
getting recognized as usb-device.

After a long search i finally found the pinout of the USBprog.
(1=TDI, 2=VCC, 3=RST, 5=TMS, 7=TCK, 9=TDO, 10=GND,
thats right?).
I miss this information on the firmware-page ;)

AVR Studio connects to the JTAG clone but is "unable to identify the 
target".
Avrdude, at least, seems to do something but is not able to get the 
correct signature, it always reads 0x1e1e1e, and flashdumps are empty.

Heres a terminaldump:
F:\Dokumente und Einstellungen\Rene>avrdude -c jtag2 -P usb -p usb1287 -F -v -B8 -U flash:r:program.hex:i

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "F:\WinAVR\bin\avrdude.conf"

         Using Port                    : usb
         Using Programmer              : jtag2
         Setting bit clk period        : 8.0
avrdude: usbdev_open(): Found JTAGICE mkII, serno: A000000D3F
avrdude: jtagmkII_getsync(): sign-on command: status -1
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              5.37
  hardware version:              0
S_MCU:
  boot-loader FW version:        255
  firmware version:              5.37
  hardware version:              1
Serial number:                   00:a0:00:00:0d:3f
Device ID:                       JTAGICEmkII
         AVR Part                      : AT90USB1287
         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     8    0 no       4096    8      0  9000  9000 0x00 0x00
           flash         65     6   256    0 yes    131072  256    512  4500  4500 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
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     00 0x00 0x00
           signature      0     0     0    0 no          3    0      0     00 0x00 0x00

         Programmer Type : JTAGMKII
         Description     : Atmel JTAG ICE mkII
avrdude: jtagmkII_getparm(): bad response to get parameter command: RSP_ILLEGAL_PARAMETER

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

Reading | ################################################## | 100% 0.16s

avrdude: Device signature = 0x1e1e1e
avrdude: Expected signature for AT90USB1287 is 1E 97 82
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as FF
avrdude: safemode: efuse reads as FF
avrdude: reading flash memory:

Reading | ################################################## | 100% 137.52s

avrdude: writing output file "program.hex"

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

avrdude done.  Thank you.

program.hex:
:00000001FF

I'm still new to JTAG so i likely just miss something.
I hope someone has an idea, i really need your help!
Registration at the USBprog-forum doesn't work so i can't post there :/

Thank you!
Rene

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.