Hi there,

I'm trying to debug with avr-gdb and avarice.

Initially, I've tried just to connect to target and see what can be seen.

It seems that avr-gdb can't read what it needs from avarice quite straight away.

[root@df-desktop ~]# avarice --debug --jtag3 --jtag usb --pdi localhost:6423 --detach >avarice-debug.txt 2>&1
[root@df-desktop ~]# avr-gdb
GNU gdb (GDB) 7.6.50.20131021-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=avr".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb)
(gdb) target extended-remote localhost:6423
Remote debugging using localhost:6423
Ignoring packet error, continuing...
Ignoring packet error, continuing...

I've attached the debug file. I can read locks and fuses without too much problem.

By the way, I've just added the atxmega16a4(u) configuration by copying the atxmega16d4 and changing the ID to 0x9441.

Any idea about what could be wrong?

Regards
David
Found JTAG ICE, serno: J30200026338

command "sign-on" [0x01, 0x10]
0E 00 00 00 01 10 00 
read:  0e 00 00 01 80 00

Got message seqno 0 (command_sequence == 0)
response: 01 80 00 

command "get info (serial number)" [0x00, 0x00]
0E 00 01 00 00 00 00 81 
read:  0e 01 00 00 81 00 4a 33 30 32 30 30 30 32 36 33 33 38

Got message seqno 1 (command_sequence == 1)
response: 00 81 00 4A 33 30 32 30 30 30 32 36 33 33 38 

command "get parameter" [0x01, 0x02]
0E 00 02 00 01 02 00 00 00 05 
read:  0e 02 00 01 84 01 02 02 15 d4 00 00

Got message seqno 2 (command_sequence == 2)
response: 01 84 01 02 02 15 D4 00 00 
ICE hardware version: 2
ICE firmware version: 2.21 (rel. 212)

command "set parameter" [0x12, 0x01]
0E 00 03 00 12 01 00 00 00 01 03 
read:  0e 03 00 12 80 00

Got message seqno 3 (command_sequence == 3)
response: 12 80 00 

command "set parameter" [0x12, 0x01]
0E 00 04 00 12 01 00 00 01 01 02 
read:  0e 04 00 12 80 00

Got message seqno 4 (command_sequence == 4)
response: 12 80 00 

command "set parameter" [0x12, 0x01]
0E 00 05 00 12 01 00 01 00 01 06 
read:  0e 05 00 12 80 00

Got message seqno 5 (command_sequence == 5)
response: 12 80 00 

command "AVR sign-on" [0x12, 0x10]
0E 00 06 00 12 10 00 00 
read:  0e 06 00 12 80 00

Got message seqno 6 (command_sequence == 6)
response: 12 80 00 

command "device ID" [0x12, 0x12]
0E 00 07 00 12 12 00 
read:  0e 07 00 12 a0 00 32

Got message seqno 7 (command_sequence == 7)
response: 12 A0 00 32 
Automatic device detection: 
command "set parameter" [0x12, 0x01]
0E 00 08 00 12 01 00 02 00 2F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 
00 00 00 90 00 
read:  0e 08 00 12 80 00

Got message seqno 8 (command_sequence == 8)
response: 12 80 00 
jtagRead 
command "enter progmode" [0x12, 0x15]
0E 00 09 00 12 15 00 
read:  0e 09 00 12 80 00

Got message seqno 9 (command_sequence == 9)
response: 12 80 00 

command "read memory" [0x12, 0x21]
0E 00 0A 00 12 21 00 B4 00 00 00 00 03 00 00 00 
read:  0e 0a 00 12 84 00 1e 94 41 00

Got message seqno 10 (command_sequence == 10)
response: 12 84 00 1E 94 41 00 

command "leave progmode" [0x12, 0x16]
0E 00 0B 00 12 16 00 
read:  0e 0b 00 12 80 00

Got message seqno 11 (command_sequence == 11)
response: 12 80 00 

command "set parameter" [0x12, 0x01]
0E 00 0C 00 12 01 00 02 00 2F 00 00 80 00 00 40 80 00 00 00 8C 00 20 00 8F 00 
27 00 8F 00 00 04 8E 00 00 02 8E 00 00 00 00 01 00 40 00 00 00 10 00 01 00 04 
20 C0 01 90 00 
read:  0e 0c 00 12 80 00

Got message seqno 12 (command_sequence == 12)
response: 12 80 00 

command "set parameter" [0x12, 0x01]
0E 00 0D 00 12 01 00 03 00 01 00 
read:  0e 0d 00 12 80 00

Got message seqno 13 (command_sequence == 13)
response: 12 80 00 

command "start debugging" [0x12, 0x13]
0E 00 0E 00 12 13 00 01 
read:  0e 0e 00 12 80 00

Got message seqno 14 (command_sequence == 14)
response: 12 80 00 

command "reset" [0x12, 0x30]
0E 00 0F 00 12 30 00 01 
read:  0e 0f 00 12 80 00

Got message seqno 15 (command_sequence == 15)
response: 12 80 00 
read:  0e 00 05 00 12 40 00 00 00 00 00 40 00
Event serial 0x0005
ignoring break event
GDB: <qSupported:multiprocess+;qRelocInsn+>
->GDB: qXfer:memory-map:read+
GDB: <!>
->GDB: OK
GDB: <Hg0>
->GDB: 
GDB: <qTStatus>
->GDB: 
GDB: <?>
->GDB: S05
GDB: <Hc-1>
->GDB: 
GDB: <qC>
->GDB: 
GDB: <qAttached>
->GDB: 
GDB: <g>

GDB: (Registers)Read 32 bytes from 0x850000
jtagRead 
command "read memory" [0x12, 0x21]
0E 00 10 00 12 21 00 B8 00 00 00 00 20 00 00 00 
read() timed out
Failed to read target memory space: JTAG ICE timeout exception

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "stop debugging" [0x12, 0x14]
0E 00 10 00 12 14 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "AVR sign-off" [0x12, 0x11]
0E 00 10 00 12 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out

command "sign-off" [0x01, 0x11]
0E 00 10 00 01 11 00 
read() timed out
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user

Reply via email to