Forum: Mikrocontroller und Digitale Elektronik AVR32, AVRDUDE, JTAGICE mkII, Linux


von Michael S. (captain-stone)


Lesenswert?

Verwendet wer von euch die oben genannte Kombination?

Wenn ich die Hardware abfrage, klappt das:

# avrdude -p uc3a0512 -c jtagmkII_avr32 -v

---------- SNIP ----------
avrdude: Version 6.1, compiled on Sep 11 2014 at 20:00:34
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/msteinbauer/.avrduderc"
         User configuration file does not exist or is not a regular 
file, skipping

         Using Port                    : usb
         Using Programmer              : jtagmkII_avr32
avrdude: usbdev_open(): Found JTAGICE mkII, serno: 090000008781
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              6.06
  hardware version:              0
S_MCU:
  boot-loader FW version:        255
  firmware version:              6.06
  hardware version:              1
Serial number:                   09:00:00:00:87:81
Device ID:                       JTAGICEmkII
         AVR Part                      : AT32UC3A0512
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           flash          0     0     0    0 yes    524288  512   1024 
0     0 0x00 0x00

         Programmer Type : JTAGMKII_AVR32
         Description     : Atmel JTAG ICE mkII im AVR32 mode
         M_MCU hardware version: 0
         M_MCU firmware version: 6.06
         S_MCU hardware version: 1
         S_MCU firmware version: 6.06
         Serial number:          09:00:00:00:87:81
         Vtarget         : 3.3 V
         JTAG clock      : 891.7 kHz (1.1 us)

avrdude: AVR device initialized and ready to accept instructions

avrdude done.  Thank you.
---------- SNIP ----------

Aber wenn ich vom Controller lesen oder schreiben möchte, gibt's 
Fehlermeldungen:

# avrdude -p uc3a0512 -c jtagmkII_avr32 -U flash:r:1.hex:i

---------- SNIP ----------
avrdude: AVR device initialized and ready to accept instructions
avrdude: reading flash memory:

Reading |                                                    | 0% 
0.00savrdude: jtagmkII_reset32(): failed at line 2986 (status=0 
val=ff0000ff)
avrdude: jtagmkII_paged_load32(): failed at line 3611 (status=ffffffff 
val=0)
avrdude: jtagmkII_program_enable(): bad response to enter progmode 
command: RSP_ILLEGAL_JTAG_ID
avrdude: jtagmkII_program_enable(): bad response to enter progmode 
command: RSP_ILLEGAL_JTAG_ID
avrdude: JTAGEN fuse disabled?
avr_read(): error reading address 0x0000
    read operation not supported for memory "flash"
avrdude: failed to read all of flash memory, rc=-2

avrdude done.  Thank you.
---------- SNIP ----------

Sicherheitshalber hab ich den JTAGICE mkII mit dem aktuellen Atmel 
Studio unter Windows probiert und auch das aktuelle Update durchgeführt. 
Dort kann ich jeweils einen Download und Upload fehlerfrei durchführen.

Kennt jemand das Problem?

: Bearbeitet durch User
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.