> It's not a compile-time option but a run-time option: -d.  Yes, please
> add this to the AVaRICE commandline.  This will trace the ICE
> communication.  From a glance at the code, the only reason for
> jtagRead() returning a NULL pointer could be a non-OK response from
> the ICE.

Ok, here is the whole output with debug information:

GNU DDD 3.3.12 (x86_64-suse-linux-gnu), by Dorothea Lütkehaus and
Andreas Zeller.
Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
Copyright © 1999-2001 Universität Passau, Germany.
Copyright © 2001 Universität des Saarlandes, Germany.
Copyright © 2001-2004 Free Software Foundation, Inc.
(gdb) file
/home/frank/projects/avr/gnu_tools/avarice-20121231/avarice-code/avarice/src/avarice
Reading symbols from
/home/frank/projects/avr/gnu_tools/avarice-20121231/avarice-code/avarice/src/avarice...done.
(gdb) run -d --jtag /dev/ttyUSB1 :4242
Starting program:
/home/frank/projects/avr/gnu_tools/avarice-20121231/avarice-code/avarice/src/avarice
-d --jtag /dev/ttyUSB1 :4242
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
AVaRICE version 2.13svn20121105, Jan  1 2013 12:54:44

Defaulting JTAG bitrate to 250 kHz.

JTAG config starting.
Attempting synchronisation at bitrate 115200

command[S, 1]: 53 45 20 20
Timed out.

command[S, 1]: 53 20 20
Out of sync, reponse was `e0'

command[S, 2]: 53 45 20 20
Out of sync, reponse was `00'

command[S, 1]: 53 20 20
Out of sync, reponse was `e0'

command[S, 3]: 53 45 20 20
Out of sync, reponse was `00'

command[S, 1]: 53 20 20
Out of sync, reponse was `e0'
Attempting synchronisation at bitrate 19200

command[S, 1]: 53 45 20 20

command[S, 1]: 53 20 20
response: 41 56 52 4E 4F 43 44 41

command[B, 1]: 42 62 FF 20 20
response: 41

command[q, 1]: 71 7A 20 20
response: C0 41
Hardware Version: 0xc0

command[q, 1]: 71 7B 20 20
response: 80 41
Software Version: 0x80

command[F, 1]: 46 20 20
response: 00 00 40 41
Automatic device detection:
command[q, 1]: 71 A7 20 20
response: 3F 41

command[F, 1]: 46 20 20
response: 00 00 44 41

command[q, 1]: 71 A8 20 20
response: 20 41

command[q, 1]: 71 A9 20 20
response: 50 41

command[q, 1]: 71 AA 20 20
response: 09 41
JTAG id = 0x950203F : Ver = 0x0 : Device = 0x9502 : Manuf = 0x1f
Reported JTAG device ID: 0x9502
Configured for device ID: 0x9502 atmega32

command[ , 1]: A0 FF 6F FF FF FF FF FF FF FF 66 FF FF FF FF BF FA 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 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 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 00 00 00 31 57
00 80 00 04 00 3F 00 00 00 20 20
response: 41
JTAG config complete.
Preparing the target device for On Chip Debugging.

command[B, 1]: 42 86 FD 20 20
response: 41

command[£, 1]: A3 20 20
response: 41
jtagRead
command[R, 1]: 52 B2 02 00 00 00 20 20
response: E1 19 E1 00 41

command[¤, 1]: A4 20 20
response: 41

command[x, 1]: 78 20 20
response: 41

command[B, 1]: 42 A0 00 20 20
response: 41

command[x, 1]: 78 20 20
response: 41
Waiting for connection on port 4242.
Connection opened by host 127.0.0.1, port 37562.
GDB: <qSupported:multiprocess+;qRelocInsn+>
->GDB:
GDB: <Hg0>
->GDB:
GDB: <?>
->GDB: S05
GDB: <Hc-1>
->GDB:
GDB: <qC>
->GDB:
GDB: <qAttached>
->GDB:
GDB: <qOffsets>
->GDB:
GDB: <g>

GDB: (Registers)Read 32 bytes from 0x800000
jtagRead
command[R, 1]: 52 20 1F 00 00 00 20 20
response: 54 00 11 C5 84 10 36 93 91 24 10 10 30 58 29 60 C0 FD 65 29 23
10 82 0D 00 5F CA 4C 5F 08 01 5C 00 41
jtagRead
command[R, 1]: 52 20 02 00 00 5D 20 20
response: 00 00 00 00 41

command[2, 1]: 32 20 20
response: 00 00 01 41
PC = 0
->GDB:
540011c5841036939124101030582960c0fd65292310820d005fca4c5f08015c00000000000000
GDB: <qTStatus>
->GDB:
GDB: <qfThreadInfo>
->GDB:
GDB: <qL1160000000000000000>
->GDB:
GDB: <X0,0:>
->GDB:
GDB:
<M0,20:0c942a000c9434000c9434000c9434000c9434000c9434000c9434000c943400>

GDB: Write 32 bytes to 0x0
jtagWrite
command[W, 1]: 57 A0 0F 00 00 00 20 20
response:

command[h, 1]: 68 94 0C 00 2A 94 0C 00 34 94 0C 00 34 94 0C 00 34 94 0C
00 34 94 0C 00 34 94 0C 00 34 94 0C 00 34 20 20
response: 41
->GDB: OK
GDB:
<M20,20:0c9434000c9434000c9434000c9434000c9434000c9434000c9434000c943400>

GDB: Write 32 bytes to 0x20
jtagWrite
command[W, 1]: 57 A0 0F 00 00 10 20 20
response:

command[h, 1]: 68 94 0C 00 34 94 0C 00 34 94 0C 00 34 94 0C 00 34 94 0C
00 34 94 0C 00 34 94 0C 00 34 94 0C 00 34 20 20
response: 41
->GDB: OK
GDB:
<M40,20:0c9434000c9434000c9434000c9434000c94340011241fbecfe5d8e0debfcdbf>

GDB: Write 32 bytes to 0x40
jtagWrite
command[W, 1]: 57 A0 0F 00 00 20 20 20
response:

command[h, 1]: 68 94 0C 00 34 94 0C 00 34 94 0C 00 34 94 0C 00 34 94 0C
00 34 24 11 BE 1F E5 CF E0 D8 BF DE BF CD 20 20
response: 41
->GDB: OK
GDB:
<M60,20:0e9436000c9452000c940000cf93df931f92cdb7deb781e390e02feffc012083>

GDB: Write 32 bytes to 0x60
jtagWrite
command[W, 1]: 57 A0 0F 00 00 30 20 20
response:

command[h, 1]: 68 94 0E 00 36 94 0C 00 52 94 0C 00 00 93 CF 93 DF 92 1F
B7 CD B7 DE E3 81 E0 90 EF 2F 01 FC 83 20 20 20
response: 41
->GDB: OK
GDB:
<M80,20:198282e390e02981fc01208389818f5f89838981882324f089818f5f8983f1cf>

GDB: Write 32 bytes to 0x80
jtagWrite
command[W, 1]: 57 A0 0F 00 00 40 20 20
response:

command[h, 1]: 68 82 19 E3 82 E0 90 81 29 01 FC 83 20 81 89 5F 8F 83 89
81 89 23 88 F0 24 81 89 5F 8F 83 89 CF F1 20 20
response: 41
->GDB: OK
GDB: <Ma0,8:1982efcff894ffcf>

GDB: Write 8 bytes to 0xA0
jtagWrite
command[W, 1]: 57 A0 03 00 00 50 20 20
response:

command[h, 1]: 68 82 19 CF EF 94 F8 CF FF 20 20
response: 41
->GDB: OK
GDB: <qTStatus>
->GDB:
GDB: <qTStatus>
->GDB:
GDB: <qTStatus>
->GDB:
GDB: <qTStatus>
->GDB:
GDB: <m82,2>

GDB: Read 2 bytes from 0x82
jtagRead
command[R, 1]: 52 A0 00 00 00 41 20 20
response: CF F7 00 41
->GDB: f7cf
GDB: <qTStatus>
->GDB:
GDB: <m8c,2>

GDB: Read 2 bytes from 0x8C
jtagRead
command[R, 1]: 52 A0 00 00 00 46 20 20
response: FF FF 00 41
->GDB: ffff
GDB: <qTStatus>
->GDB:
GDB: <m76,2>

GDB: Read 2 bytes from 0x76
jtagRead
command[R, 1]: 52 A0 00 00 00 3B 20 20
response: 07 07 00 46

Program received signal SIGSEGV, Segmentation fault.
0x000000000040e578 in mem2hex (mem=0x0, buf=0x738220 <remcomOutBuffer>
"", count=2) at remote.cc:230
Missing separate debuginfos, use: zypper install
glibc-debuginfo-2.15-22.9.1.x86_64
libgcc47-debuginfo-4.7.1_20120723-1.1.1.x86_64
libstdc++47-debuginfo-4.7.1_20120723-1.1.1.x86_64
libusb-0_1-4-debuginfo-0.1.13-21.1.2.x86_64
libusb-1_0-0-debuginfo-1.0.9-3.1.2.x86_64 zlib-debuginfo-1.2.7-2.1.2.x86_64
(gdb)


Best regards,
Frank


------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
avarice-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avarice-user

Reply via email to