avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] RE: AVARICE / GDB problem


From: Ralph Mason
Subject: [avr-gcc-list] RE: AVARICE / GDB problem
Date: Sat, 19 Jul 2003 09:54:38 +1200

Here are the full logs

avarice --debug --jtag com1  localhost 4242
AVaRICE version 2.0.20030403cvs, Apr  4 2003 11:27:09

JTAG config starting.
Attempting synchronisation at bitrate ff

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: 78 41
Software Version: 0x78

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

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

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

command[q, 1]: 71 AA 20 20
response: 69 41
JTAG id = 0x6970203F : Ver = 0x6 : Device = 0x9702 : Manuf = 0x1f
Reported JTAG device ID: 0x9702
Configured for device ID: 0x9702 atmega128

command[ , 1]: A0 CF 2F FF FF FF FF FF FF CF 27 FF FF FF FF FF FE 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 3E B5 1F 37 FF 1F
21 2F 00 00 00 00 00 00 00 00 00 00 00 00 3E B5 0F 27 FF 1F 21 27 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 22 68 3B 00 01 08 00 FE 00 00 9D 20 20
response: 41

command[£, 1]: A3 20 20
response: 41
jtagRead
command[R, 1]: 52 B3 00 00 00 00 20 20
response: EF 00 41
LockBits -> 0xef

Reading Fuse Bytes:
jtagRead
command[R, 1]: 52 B2 02 00 00 00 20 20
response: BF 00 FF 00 41
  Extended Fuse byte -> 0xff
      High Fuse byte -> 0x00
       Low Fuse byte -> 0xbf

command[B, 1]: 42 86 FF 20 20
response: 41
jtagWrite
command[W, 1]: 57 B3 00 00 00 00 20 20
response:

command[h, 1]: 68 FF 20 20
response: 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
JTAG config complete.
Waiting for connection on port 4242.
Connection opened by host 127.0.0.1, port 3089.
GDB: <Hc-1>
->GDB:
GDB: <qC>
->GDB:
GDB: <qOffsets>
->GDB:
GDB: <?>
->GDB: S05
GDB: <Hg0>
->GDB:
GDB: <g>

GDB: (Registers)Read 32 bytes from 0x800000
jtagRead
command[R, 1]: 52 20 1F 00 00 00 20 20
response: 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07
07 07 07 07 07 07 07 07 07 07 00 46
->GDB: E01
gdb communications failure: Connection reset by peer
gdb communications failure: Connection reset by peer




GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-mingw32 --target=avr"...
(gdb) source connect
Couldn't establish connection to remote target
Remote failure reply: E01
(gdb) set debug remote 1
(gdb) quite
Undefined command: "quite".  Try "help".
(gdb) source connect
Sending packet: $Hc-1#09...Ack
Packet received:
Sending packet: $qC#b4...Ack
Packet received:
Sending packet: $qOffsets#4b...Ack
Packet received:
Sending packet: $?#3f...Ack
Packet received: S05
Sending packet: $Hg0#df...Ack
Packet received:
Sending packet: $g#67...Ack
Packet received: E01
Couldn't establish connection to remote target
Remote failure reply: E01
(gdb)


Thanks
Ralph





> -----Original Message-----
> From: Ralph Mason [mailto:address@hidden
> Sent: Friday, 18 July 2003 12:57
> To: Avr-Gcc-List
> Subject: AVARICE / GDB problem
>
>
> I have been using GDB & avarice.  As I have a bootloader I would
> like to use that to program the device (much faster than using
> AVARICE, and I don't loose the bootloader)
>
> But when I capture using avarice I get the following error.
>
>
> GNU gdb 5.3
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License,
> and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty"
> for details.
> This GDB was configured as "--host=i686-pc-mingw32 --target=avr"...
> (gdb) source connect
> Couldn't establish connection to remote target
> Remote failure reply: E01
> (gdb)
>
>
> (the connect script contains)
> set height 50
> set remoteaddresssize 32
> set remote Z-packet enable
> target remote localhost:4242
>
> From AVARICE
>
> avarice  --capture --jtag com1  localhost 4242
> AVaRICE version 2.0.20030403cvs, Apr  4 2003 11:27:09
>
> JTAG config starting.
> Hardware Version: 0xc0
> Software Version: 0x78
> Reported JTAG device ID: 0x9702
> Configured for device ID: 0x9702 atmega128
> JTAG config complete.
> Waiting for connection on port 4242.
> Connection opened by host 127.0.0.1, port 4621.
> gdb communications failure: Connection reset by peer
> gdb communications failure: Connection reset by peer
>
> Thanks for any ideas.
>
> Ralph
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.491 / Virus Database: 290 - Release Date: 18/06/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 18/06/2003



reply via email to

[Prev in Thread] Current Thread [Next in Thread]