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

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

[avr-gcc-list] AVARICE on Cygwin & AVARICE problem -again!


From: Ralph Mason
Subject: [avr-gcc-list] AVARICE on Cygwin & AVARICE problem -again!
Date: Sun, 3 Aug 2003 17:37:06 +1200

I *finally* figured it out! yay.

1. My configure was picking up avr-gcc not gcc, so the libraries were not
actually there for that target.

2. I was using a windows cvs client that was translating the line endings
causing the config.status problem.

So I have finally built avarice on cygwin.

Couple of things I noticed.

1. It always trys to program the chip (program is set to true) If you don't
specify a filename then it exits because it thinks it should have one to
program.  I changed it to program=false in main.cc and all is well.

2. For some reason alloca segfaults on the cygrin build, so downloadToTarget
crashes unless you move the
BFDimage flashimg, eepromimg; outside the function.

Finally, the reason I was trying to build this in the first place?  Well so
I could debug using my own bootloader that is about 10 times faster
downloading that the jtag ice / avarice combination.  BUT the new version
still gives me the same problem. I can't seem to attach and debug, it always
reads all 0x07 for the registers.  It does interupt the running app though,
the older version didn't do that.

Thanks for any help.
Ralph


address@hidden /home/avarice/src
$  avarice.exe  --file vapp.elf --jtag com1 --debug localhost 4242
AVaRICE version 2.0.20030729cvs, Aug  3 2003 16:47:48

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[F, 1]: 46 20 20
response: 00 00 00 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.
Flash page size: 0x80
EEPROM page size: 0x4

command[B, 1]: 42 88 80 20 20
response: 41

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

command[B, 1]: 42 8A 04 20 20
response: 41
Getting section contents, addr=0x606c size=0x62e
FLASH Image create: Adding .data at addr 0x606c size 1582 (0x62e)
Getting section contents, addr=0x0 size=0x1606c
FLASH Image create: Adding .text at addr 0x0 size 90220 (0x1606c)

command[£, 1]: A3 20 20
response: 41

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

Download complete.

command[x, 1]: 78 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 3971.
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

address@hidden /home/avarice/src
$
---
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]