Hi,

I'm working on a new driver for openOCD. I'm ready to test it with an ATMEGA 128.
Here is my config file : (bvsjtag is my driver ;) ).

   debug_level 3

   #daemon configuration
   telnet_port 4444
   gdb_port 3333
   source [find interface/bvsjtag.cfg]
   reset_config trst_and_srst
   source [find target/mega128.cfg]

The AVR is well recognized, the IDCODE read by the driver is correct.

I'm having some problems by launching gdb.

Here is the openOCD log :

Debug: 718 72314 avrt.c:124 avr_poll(): avr_poll
Debug: 719 72514 avrt.c:124 avr_poll(): avr_poll
Debug: 720 72615 avrt.c:124 avr_poll(): avr_poll
Debug: 721 72814 avrt.c:124 avr_poll(): avr_poll
Debug: 722 73014 avrt.c:124 avr_poll(): avr_poll
Info : 723 73070 server.c:81 add_connection(): accepting 'gdb' connection from 0 Debug: 724 73070 breakpoints.c:161 breakpoint_clear_target(): Delete all breakpoints for target: avr.cpu Debug: 725 73070 breakpoints.c:299 watchpoint_clear_target(): Delete all watchpoints for target: avr.cpu Debug: 726 73070 target.c:968 target_call_event_callbacks(): target event 25 (gdb-attach) Debug: 727 73070 gdb_server.c:856 gdb_new_connection(): New GDB Connection: 1, Target avr.cpu, state: unknown Debug: 728 73071 gdb_server.c:2147 gdb_input_inner(): received packet: 'Hc-1'
Debug: 729 73071 gdb_server.c:2147 gdb_input_inner(): received packet: 'qC'
Debug: 730 73071 gdb_server.c:2147 gdb_input_inner(): received packet: 'qOffsets'
Debug: 731 73071 gdb_server.c:2147 gdb_input_inner(): received packet: '?'
User : 732 73071 gdb_server.c:117 gdb_last_signal(): undefined debug reason 6 - target needs reset
Debug: 733 73071 gdb_server.c:2147 gdb_input_inner(): received packet: 'Hg0'
Debug: 734 73071 gdb_server.c:2147 gdb_input_inner(): received packet: 'p22'
Segmentation Fault
~$

To launch GDB, I do :
$ avr-gdb
GNU gdb 6.4
This GDB was configured as "--host=i486-linux-gnu --target=avr".
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
Ignoring packet error, continuing...
Reply contains invalid hex digit 116
(gdb)

Telnet connection seems to work...

I developped my driver on OpenOCD 0.4.0
If someone could help me ? Google didn't give me an answer...

V. Pouget


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to