#18 Slow connection Using Dragon Jtag

v1.0_(example)
open
nobody
None
5
2014-06-28
2014-06-28
Zajc3w
No

Im runnin latestst avarice.
latest avrDragon frimware/hardware
Atmega 128 @ 8MHz
Jtag clock set to 1MHz
everything goes smooth untill first "step" command in GDB
it takes 10-15 seconds for single step over line: PORTA = 0xFF;
below part of avarive output
my guess is AVARICE is sending incorrect message ack response(but i'm just a noob ;P)

Got message seqno 51 (command_sequence == 51)
response: 84 52 00 00 00 
jtagRead 
command[0x05, 1]: 05 20 03 00 00 00 5D 00 00 00 
recv: 0x1b
recv: 0x33
recv: 0x00
recv: 0x05
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 5 bytes
read:  84 52 00 00 00
recv: 0xe1
recv: 0x1e
CRC OK
Got message seqno 51 (command_sequence == 52)

got wrong sequence number, 51 != 52
recv: timeout

command[0x05, 2]: 05 20 03 00 00 00 5D 00 00 00 
recv: timeout

command[0x05, 3]: 05 20 03 00 00 00 5D 00 00 00 
recv: timeout

command[0x05, 4]: 05 20 03 00 00 00 5D 00 00 00 
recv: timeout
Resetting EPs...

command[0x05, 5]: 05 20 03 00 00 00 5D 00 00 00 
recv: 0x1b
recv: 0x34
recv: 0x00
recv: 0x04
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 4 bytes
read:  82 fd 10 00
recv: 0xfe
recv: 0x66
CRC OK
Got message seqno 52 (command_sequence == 52)
response: 82 FD 10 00

Discussion

  • Zajc3w
    Zajc3w
    2014-06-28

    Just compiled from SVN - now i can't debug at all, both step and continue commands give more or less same result.
    step command result(stepping to end of vector table):
    command[0x09, 1]: 09 01 01
    recv: 0x1b
    recv: 0x0c
    recv: 0x00
    recv: 0x04
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 4 bytes
    read: 82 00 00 00
    recv: 0x41
    recv: 0xaf
    CRC OK
    Got message seqno 12 (command_sequence == 13)

    got wrong sequence number, 12 != 13
    recv: timeout

    command[0x09, 3]: 09 01 01
    recv: 0x1b
    recv: 0x0d
    recv: 0x00
    recv: 0x01
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 1 bytes
    read: 80
    recv: 0xaf
    recv: 0xb8
    CRC OK
    Got message seqno 13 (command_sequence == 13)
    response: 80
    recv: 0x1b
    recv: 0xff
    recv: 0xff
    recv: 0x06
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 6 bytes
    read: e0 01 00 00 00 00
    recv: 0x0a
    recv: 0x26
    CRC OKjtagRead
    command[0x05, 1]: 05 20 03 00 00 00 5D 00 00 00
    recv: 0x1b
    recv: 0xff
    recv: 0xff
    recv: 0x06
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 6 bytes
    read: e0 01 00 00 00 00
    recv: 0x0a
    recv: 0x26
    CRC OK
    Got message seqno 65535 (command_sequence == 14)

    got asynchronous event: 0xe0
    recv: timeout

    command[0x05, 3]: 05 20 03 00 00 00 5D 00 00 00
    recv: timeout

    command[0x05, 5]: 05 20 03 00 00 00 5D 00 00 00
    recv: timeout

    command[0x05, 7]: 05 20 03 00 00 00 5D 00 00 00
    recv: timeout
    Failed to read target memory space: JTAG ICE timeout exception

    command[0x23, 1]: 23
    recv: 0x1b
    recv: 0x0e
    recv: 0x00
    recv: 0x04
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 4 bytes
    read: 82 00 00 00
    recv: 0x63
    recv: 0x04
    CRC OK
    Got message seqno 14 (command_sequence == 14)
    response: 82 00 00 00

    command[0x00, 1]: 00
    recv: 0x1b
    recv: 0x0e
    recv: 0x00
    recv: 0x04
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 4 bytes
    read: 82 00 00 00
    recv: 0x63
    recv: 0x04
    CRC OK
    Got message seqno 14 (command_sequence == 15)

    got wrong sequence number, 14 != 15
    recv: 0x1b
    recv: 0x0e
    recv: 0x00
    recv: 0x04
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 4 bytes
    read: 82 00 00 00
    recv: 0x63
    recv: 0x04
    CRC OK
    Got message seqno 14 (command_sequence == 15)

    got wrong sequence number, 14 != 15
    recv: 0x1b
    recv: 0x0e
    recv: 0x00
    recv: 0x04
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 4 bytes
    read: 82 00 00 00
    recv: 0x63
    recv: 0x04
    CRC OK
    Got message seqno 14 (command_sequence == 15)

    got wrong sequence number, 14 != 15
    recv: timeout

    command[0x00, 2]: 00
    recv: 0x1b
    recv: 0x0f
    recv: 0x00
    recv: 0x01
    recv: 0x00
    recv: 0x00
    recv: 0x00
    recv: 0x0e
    sDATA: reading 1 bytes
    read: 80
    recv: 0xc0
    recv: 0xb3
    CRC OK
    Got message seqno 15 (command_sequence == 15)
    response: 80
    zajc3w@ubuntu:~$
    avarice terminated :(

     
    Last edit: Zajc3w 2014-06-28
  • Zajc3w
    Zajc3w
    2014-06-28

    Patch #27 solved this problem, i'm running GDB 7.6