I've added some debugging output below.  For testing purposes I modified
the code to ignore the unknown 0xAE return code being hopeful that it would
work anyways, which it didn't.  The return code 0xA4 which occurs with the
next command indicates RSP_ILLEGAL_EMULATOR_MODE, so it would seem there is
something wrong with assigning the PDI emulator mode.  Knowing the meaning
of the 0xAE return code would probably help figure out what is wrong.
Could there be an incompatibility with this version of the firmware (7.39
it seems)?  I may try downgrading to some older version.  If anyone knows
what version is a good candidate for me to try, that would be helpful.

Of note is that the avarice is silent about the error occurring with the
command following the emulator mode assignment.  It wasn't apparent to me
what was wrong (if anything) until I was stepping through the application
with gdb.

Best regards,

Element Green


On Mon, Oct 19, 2015 at 2:29 AM, Element Green <elem...@elementsofsound.org>
wrote:

> Hello,
>
> I built AVaRICE 2.13 from source and am trying to debug an xmega16d4 using
> an AVR Dragon.  I first upgraded the firmware on the Dragon board to 7.23
> (I think - I'll need to double check that), using a friends Windows system.
>
> I'm running the command as "avarice -g -X", but it fails with the
> following output:
>
> AVaRICE version 2.13, Oct 18 2015 20:56:43
>
> JTAG config starting.
> Found a device: AVRDRAGON
> Serial number:  00:a2:00:06:06:5f
> set paramater command failed: Unknwon response code 0xae
> Failed to activate PDI debugging protocol
>
> It does not matter if the Dragon is connected to the target board or not,
> same error.  It also seems like the Dragon is power cycling when the
> avarice command is executed (both LEDs go out, then the larger one comes up
> Orange, then goes Red and then the smaller Green LED blinks and stays lit).
>
> My system is running Ubuntu 15.04.
>
> Thank you in advance for any help with this.  I'm new to avarice, so I may
> just be doing something wrong.
>
> Best regards,
>
> Element Green
>


AVaRICE version 2.13, Oct 18 2015 20:56:43

Found JTAG ICE, serno: 00A20006065F
JTAG config starting.
Attempting synchronisation at bitrate 19200

command[0x01, 1]: 01
recv: 0x1b
recv: 0x00
recv: 0x00
recv: 0x1a
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 26 bytes
read:  86 01 ff 27 07 01 ff 27 07 07 00 a2 00 06 06 5f 41 56 52 44 52 41 47
4f 4e 00
recv: 0x70
recv: 0x9b
CRC OK
Got message seqno 0 (command_sequence == 0)
response: 86 01 FF 27 07 01 FF 27 07 07 00 A2 00 06 06 5F 41 56 52 44 52 41
47 4F 4E 00
Found a device: AVRDRAGON
Serial number:  00:a2:00:06:06:5f
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              7.39
  hardware version:              1
S_MCU:
  boot-loader FW version:        255
  firmware version:              7.39
  hardware version:              7

command[0x02, 1]: 02 03 06
recv: 0x1b
recv: 0x01
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  ae
recv: 0xb1
recv: 0x4b
CRC OK
Got message seqno 1 (command_sequence == 1)
response: AE
set paramater command failed: Unknwon response code 0xae
Failed to activate PDI debugging protocol

command[0x0a, 1]: 0A 01
recv: 0x1b
recv: 0x02
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  a4
recv: 0x3b
recv: 0x6e
CRC OK
Got message seqno 2 (command_sequence == 2)
response: A4

command[0x23, 1]: 23
recv: 0x1b
recv: 0x03
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  80
recv: 0xa2
recv: 0x88
CRC OK
Got message seqno 3 (command_sequence == 3)
response: 80

command[0x00, 1]: 00
recv: 0x1b
recv: 0x04
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  80
recv: 0xac
recv: 0x14
CRC OK
Got message seqno 4 (command_sequence == 4)
response: 80
------------------------------------------------------------------------------
_______________________________________________
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user

Reply via email to