Hi,

my first trials with AVaRICE were not that successful :-( AVaRICE
crashes after it is contacted by GDB. So I compiled AVaRICE with debug
information to see whether I could identify the position in the code
where the error occurred. Here is the GDB output of the debug session:  


(gdb) run --jtag /dev/ttyUSB1 :4242
Starting program:
/home/frank/projects/avr/gnu_tools/avarice-20121231/avarice-code/avarice/src/avarice
--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.
Hardware Version: 0xc0
Software Version: 0x80
Reported JTAG device ID: 0x9502
Configured for device ID: 0x9502 atmega32
JTAG config complete.
Preparing the target device for On Chip Debugging.
Waiting for connection on port 4242.
Connection opened by host 127.0.0.1, port 37303.

Program received signal SIGSEGV, Segmentation fault.
0x000000000040e578 in mem2hex (mem=0x0, buf=0x738220 <remcomOutBuffer>
"", count=2) at remote.cc:230


which is the following code:


/** Convert the memory pointed to by mem into hex, placing result in buf.
    Return a pointer to the last char put in buf (null).
**/
static char *mem2hex(uchar *mem, char *buf, int count)
{
    for (int i = 0; i < count; i++)
->        buf = byteToHex(*mem++, buf);
    *buf = 0;
    
    return (buf);
}


My configuration:
- openSUSE 12.2, 64 bit
- ATmega32
- JTAG ICE clone with USB interface (Prolific PL2303 chip)
- avr-gdb 7.5

The hardware works fine with AVR Studio4 under Windows. However, I would
prefer to have a working solution under Linux ;-)


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
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user

Reply via email to