That got me further (log attached). It drops out with an illegal JTAG ID error
so maybe the UC3A series is initialized differently than the UC3C series. I’ll
dig further into the code.
/Marco
marco@avrdev-linux:~$ sudo avrdude -vv -p uc3c2512 -c dragon_jtag
avrdude: Version 6.1, compiled on Sep 8 2015 at 09:40:41
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/marco/.avrduderc"
Using Port : usb
Using Programmer : dragon_jtag
avrdude: jtagmkII_dragon_open()
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A20003581E
avrdude: jtagmkII_getsync(): Sending sign-on command: 0x86 (26 bytes msg)
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
boot-loader FW version: 255
firmware version: 7.38
hardware version: 1
S_MCU:
boot-loader FW version: 255
firmware version: 7.38
hardware version: 7
Serial number: 00:a2:00:03:58:1e
Device ID: AVRDRAGON
avrdude: jtagmkII_getsync(): Using a 298-byte device descriptor
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x03, 1
bytes): 0x80 (1 bytes msg)
avrdude: jtagmkII_getsync(): Sending get sync command: 0x80 (1 bytes msg)
AVR Part : AT32UC3C2512
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 : DRAGON_JTAG
Description : Atmel AVR Dragon in JTAG mode
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x01): 0x81 (3
bytes msg)
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x02): 0x81 (5
bytes msg)
M_MCU hardware version: 1
M_MCU firmware version: 7.38
S_MCU hardware version: 7
S_MCU firmware version: 7.38
Serial number: 00:a2:00:03:58:1e
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x06): 0x81 (3
bytes msg)
Vtarget : 3.3 V
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x07): 0x81 (2
bytes msg)
JTAG clock : 891.7 kHz (1.1 us)
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x1b, 4
bytes): 0x80 (1 bytes msg)
avrdude: jtagmkII_set_devdescr(): Sending set device descriptor command: 0x80
(1 bytes msg)
avrdude: jtagmkII_reset(): Sending reset command: 0x80 (1 bytes msg)
avrdude: jtagmkII_read_byte(.., hfuse, 0x1, ...)
avrdude: jtagmkII_program_enable(): Sending enter progmode command: 0xa9 (1
bytes msg)
avrdude: jtagmkII_program_enable(): bad response to enter progmode command:
RSP_ILLEGAL_JTAG_ID
avrdude: retrying with external reset applied
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x13, 1
bytes): 0x80 (1 bytes msg)
avrdude: jtagmkII_program_enable(): Sending enter progmode command: 0xa9 (1
bytes msg)
avrdude: jtagmkII_program_enable(): bad response to enter progmode command:
RSP_ILLEGAL_JTAG_ID
avrdude: JTAGEN fuse disabled?
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): Sending sign-off command: 0x80 (1 bytes msg)
avrdude done. Thank you.
> On 29 jan. 2016, at 19:22, René Liebscher <[email protected]> wrote:
>
> Hi,
>
> may be you can just doing the same as it is done for AT32UC3A0512. (Just
> adding a new entry in the config file if noting else has changed with UC3C.)
>
> It defines only the last 3 bytes of the signature. So the revision
> number is not used.
>
> It also ignores the first 4 bits of the part number, but as the
> signature is only used to recheck for the right the devices the
> remaining 12 bits might be enough to be sure programming the right device.
>
>
> Kind regards
>
> René
>
>
> Am 29.01.2016 um 13:17 schrieb Marco Nilsson:
>> I’m trying to add support for UC3C devices. These devices use a 4 byte JTAG
>> identifier, such as 0xr200003F where ‘r’ is the revision number. The problem
>> here is that avrdude only allows 3 bytes for signature, and no wildcards.
>> This means that I will either get a parse error when using 4 bytes, or the
>> signatures will not match.
>>
>> Is there any way to extend this to 4 bytes and maybe even add wildcard bits?
>>
>> /Marco
>>
>>
>>
>> _______________________________________________
>> avrdude-dev mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/avrdude-dev
>
>
> _______________________________________________
> avrdude-dev mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/avrdude-dev
_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev