OpenOCD v0.2.0 crashes

hello all,

i’ve a problem with openocd v0.2.0 (www.freddiechopin.info), olimex arm usb tiny, olimex sam7-ex256 and windows xp sp3.

if i run openocd in this environment by

>>>> run_sam7x256.bat (my own user file in openocd root dir)

@echo off
cls
%~dp0\bin\openocd.exe -d -f %~dp0bin\openocd.cfg -f %~dp0interface\olimex-jtag-tiny.cfg -f %~dp0target\sam7x256.cfg -l openocd.log

and

>>>> openocd.cfg

#daemon configuration
telnet_port 4444
gdb_port 3333
#gdb configuration
gdb_memory_map enable

execute GNU gdb (GDB) 6.8.50.20090801 configured as “–host=i586-mingw32msvc --target=arm-elf” afterwards and try to establish a remote connection by

>>>> gdb shell

(gdb) target remote localhost:3333

openocd crashes and gdb prints out messages in two different ways.

>>>> v1: gdb shell + openocd.log

Remote debugging using localhost:3333
Remote communication error: No error.
(gdb)
Debug: 10 20 configuration.c:83 find_file(): found C:\Treiber\OpenOCD_v020\bin\openocd.cfg
Debug: 12 20 command.c:68 script_debug(): command - telnet_port
Debug: 13 20 command.c:77 script_debug(): telnet_port - argv[0]=ocd_telnet_port
Debug: 14 20 command.c:77 script_debug(): telnet_port - argv[1]=4444
Debug: 16 20 command.c:68 script_debug(): command - gdb_port
Debug: 17 20 command.c:77 script_debug(): gdb_port - argv[0]=ocd_gdb_port
Debug: 18 20 command.c:77 script_debug(): gdb_port - argv[1]=3333
Debug: 20 20 command.c:68 script_debug(): command - gdb_memory_map
Debug: 21 20 command.c:77 script_debug(): gdb_memory_map - argv[0]=ocd_gdb_memory_map
Debug: 22 20 command.c:77 script_debug(): gdb_memory_map - argv[1]=enable
Debug: 23 20 configuration.c:83 find_file(): found C:\Treiber\OpenOCD_v020\interface\olimex-jtag-tiny.cfg
Debug: 25 20 command.c:68 script_debug(): command - interface
Debug: 26 20 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 27 20 command.c:77 script_debug(): interface - argv[1]=ft2232
Debug: 29 20 command.c:68 script_debug(): command - ft2232_device_desc
Debug: 30 20 command.c:77 script_debug(): ft2232_device_desc - argv[0]=ocd_ft2232_device_desc
Debug: 31 20 command.c:77 script_debug(): ft2232_device_desc - argv[1]=Olimex OpenOCD JTAG TINY A
Debug: 33 20 command.c:68 script_debug(): command - ft2232_layout
Debug: 34 20 command.c:77 script_debug(): ft2232_layout - argv[0]=ocd_ft2232_layout
Debug: 35 20 command.c:77 script_debug(): ft2232_layout - argv[1]=olimex-jtag
Debug: 37 20 command.c:68 script_debug(): command - ft2232_vid_pid
Debug: 38 20 command.c:77 script_debug(): ft2232_vid_pid - argv[0]=ocd_ft2232_vid_pid
Debug: 39 20 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x15ba
Debug: 40 20 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0x0004
Debug: 41 20 configuration.c:83 find_file(): found C:\Treiber\OpenOCD_v020\target\sam7x256.cfg
Debug: 43 20 command.c:68 script_debug(): command - reset_config
Debug: 44 20 command.c:77 script_debug(): reset_config - argv[0]=ocd_reset_config
Debug: 45 20 command.c:77 script_debug(): reset_config - argv[1]=srst_only
Debug: 46 20 command.c:77 script_debug(): reset_config - argv[2]=srst_pulls_trst
Debug: 47 30 tcl.c:237 jim_newtap_cmd(): Creating New Tap, Chip: sam7x256, Tap: cpu, Dotted: sam7x256.cpu, 8 params
Debug: 48 30 tcl.c:253 jim_newtap_cmd(): Processing option: -irlen
Debug: 49 30 tcl.c:253 jim_newtap_cmd(): Processing option: -ircapture
Debug: 50 30 tcl.c:253 jim_newtap_cmd(): Processing option: -irmask
Debug: 51 30 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id
Debug: 52 30 core.c:1116 jtag_tap_init(): Created Tap: sam7x256.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 53 30 target.c:4295 jim_target(): Target command params:
Debug: 54 30 target.c:4296 jim_target(): target create sam7x256.cpu arm7tdmi -endian little -chain-position sam7x256.cpu -variant arm7tdmi
Debug: 56 30 command.c:68 script_debug(): command - bank
Debug: 57 30 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 58 30 command.c:77 script_debug(): bank - argv[1]=at91sam7
Debug: 59 30 command.c:77 script_debug(): bank - argv[2]=0
Debug: 60 30 command.c:77 script_debug(): bank - argv[3]=0
Debug: 61 30 command.c:77 script_debug(): bank - argv[4]=0
Debug: 62 30 command.c:77 script_debug(): bank - argv[5]=0
Debug: 63 30 command.c:77 script_debug(): bank - argv[6]=0
Debug: 64 30 command.c:77 script_debug(): bank - argv[7]=0
Debug: 65 30 command.c:77 script_debug(): bank - argv[8]=0
Debug: 66 30 command.c:77 script_debug(): bank - argv[9]=0
Debug: 67 30 command.c:77 script_debug(): bank - argv[10]=0
Debug: 68 30 command.c:77 script_debug(): bank - argv[11]=0
Debug: 69 30 command.c:77 script_debug(): bank - argv[12]=0
Debug: 70 30 command.c:77 script_debug(): bank - argv[13]=0
Debug: 71 30 command.c:77 script_debug(): bank - argv[14]=18432
Debug: 73 30 command.c:68 script_debug(): command - init
Debug: 74 30 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 75 40 openocd.c:129 handle_init_command(): target init complete
Debug: 76 40 ft2232.c:2059 ft2232_init(): ft2232 interface using shortest path jtag state transitions
Debug: 77 40 ft2232.c:1978 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'olimex-jtag' layout (15ba:0004)
Debug: 78 90 ft2232.c:2022 ft2232_init_libftdi(): current latency timer: 2
Debug: 79 90 ft2232.c:2387 olimex_jtag_init(): 0x80 0x08 0x1b
Debug: 80 100 ft2232.c:2431 olimex_jtag_init(): 82 09 0f
Debug: 81 100 ft2232.c:477 ft2232_speed(): 86 00 00
Debug: 82 110 openocd.c:136 handle_init_command(): jtag interface init complete
Debug: 83 110 core.c:1161 jtag_init_inner(): Init JTAG chain
Debug: 84 110 core.c:291 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 85 110 core.c:807 jtag_reset_callback(): -
Error: 86 130 core.c:865 jtag_examine_chain_check(): JTAG communication failure: check connection, JTAG interface, target power etc.
Error: 87 130 core.c:1176 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Debug: 88 140 openocd.c:142 handle_init_command(): jtag init complete
Debug: 89 160 arm7_9_common.c:61 arm7_9_clear_watchpoints(): -
Debug: 90 160 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000
Debug: 91 160 embeddedice.c:370 embeddedice_write_reg(): 20: 0x00000000
Debug: 92 160 openocd.c:145 handle_init_command(): jtag examine complete
Debug: 93 160 openocd.c:151 handle_init_command(): flash init complete
Debug: 94 160 openocd.c:155 handle_init_command(): mflash init complete
Debug: 95 160 openocd.c:159 handle_init_command(): NAND init complete
Debug: 96 160 openocd.c:163 handle_init_command(): pld init complete
Debug: 97 180 gdb_server.c:2236 gdb_init(): gdb service for target arm7tdmi at port 3333
Info : 98 15252 server.c:79 add_connection(): accepting 'gdb' connection from 0
Debug: 99 15252 breakpoints.c:160 breakpoint_clear_target(): Delete all breakpoints for target: arm7tdmi
Debug: 100 15252 breakpoints.c:287 watchpoint_clear_target(): Delete all watchpoints for target: arm7tdmi
Debug: 101 15252 arm7_9_common.c:1279 arm7_9_halt(): target->state: running
Debug: 102 15252 embeddedice.c:370 embeddedice_write_reg(): 9: 0xffffffff
Debug: 103 15252 embeddedice.c:370 embeddedice_write_reg(): 11: 0xffffffff
Debug: 104 15252 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000100
Debug: 105 15252 embeddedice.c:370 embeddedice_write_reg(): 13: 0x000000f7
Debug: 106 15272 embeddedice.c:370 embeddedice_write_reg(): 0: 0x00000005
Debug: 107 15272 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000
Debug: 108 15272 arm7_9_common.c:1389 arm7_9_debug_entry(): target entered debug from ARM state
Debug: 109 15292 arm7_9_common.c:1421 arm7_9_debug_entry(): target entered debug state in Supervisor mode
Debug: 110 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r0: 0x60000013
Debug: 111 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r1: 0x000000c0
Debug: 112 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r2: 0x00000233
Debug: 113 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r3: 0x00206750
Debug: 114 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r4: 0x04040404
Debug: 115 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r5: 0x05050505
Debug: 116 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r6: 0x06060606
Debug: 117 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r7: 0x07070707
Debug: 118 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r8: 0x08080808
Debug: 119 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r9: 0x09090909
Debug: 120 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r10: 0x10101010
Debug: 121 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r11: 0x00206950
Debug: 122 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r12: 0x00206954
Debug: 123 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r13: 0x0020693c
Debug: 124 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r14: 0x001020e4
Debug: 125 15292 arm7_9_common.c:1444 arm7_9_debug_entry(): r15: 0x001020b4
Debug: 126 15292 arm7_9_common.c:1450 arm7_9_debug_entry(): entered debug state at PC 0x1020b4
Debug: 127 15302 target.c:838 target_call_event_callbacks(): target event 4 (early-halted)
Debug: 128 15302 target.c:3414 target_handle_event(): event: 4 early-halted - no action
Debug: 129 15302 target.c:3414 target_handle_event(): event: 4 early-halted - no action
Debug: 130 15302 target.c:838 target_call_event_callbacks(): target event 5 (halted)
Debug: 131 15302 target.c:3414 target_handle_event(): event: 5 halted - no action
User : 132 15302 target.c:1100 target_arch_state(): target state: halted
User : 133 15302 armv4_5.c:305 armv4_5_arch_state(): target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x60000013 pc: 0x001020b4
Debug: 134 15302 target.c:3414 target_handle_event(): event: 5 halted - no action
Debug: 135 15302 target.c:838 target_call_event_callbacks(): target event 10 (gdb-end)
Debug: 136 15302 target.c:3414 target_handle_event(): event: 10 gdb-end - no action
Debug: 137 15302 target.c:3414 target_handle_event(): event: 10 gdb-end - no action
Debug: 138 15302 target.c:838 target_call_event_callbacks(): target event 26 (gdb-attach)
Debug: 139 15302 target.c:3414 target_handle_event(): event: 26 gdb-attach - no action
Debug: 140 15302 target.c:3414 target_handle_event(): event: 26 gdb-attach - no action
Debug: 141 15302 gdb_server.c:809 gdb_new_connection(): New GDB Connection: 1, Target sam7x256.cpu, state: halted
Debug: 142 15302 gdb_server.c:2058 gdb_input_inner(): received packet: 'qSupported'
Debug: 143 15302 gdb_server.c:2058 gdb_input_inner(): received packet: 'QStartNoAckMode'
Warn : 144 15302 gdb_server.c:580 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Debug: 145 15302 gdb_server.c:2058 gdb_input_inner(): received packet: 'Hg0'
Debug: 146 15302 gdb_server.c:2058 gdb_input_inner(): received packet: '?'
Debug: 147 15302 gdb_server.c:2058 gdb_input_inner(): received packet: 'Hc-1'
Debug: 148 15302 gdb_server.c:2058 gdb_input_inner(): received packet: 'qC'
Debug: 149 15302 gdb_server.c:2058 gdb_input_inner(): received packet: 'qAttached'
Debug: 150 15302 gdb_server.c:2058 gdb_input_inner(): received packet: 'g'
Debug: 151 15302 gdb_server.c:2058 gdb_input_inner(): received packet: 'qXfer:memory-map:read::fff00000000,fff00000fff'
Debug: 152 15302 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffff240, size: 0x00000004, count: 0x00000001
Debug: 153 15332 target.c:1342 target_read_u32(): address: 0xfffff240, value: 0x275b0940
Debug: 154 15332 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffffc20, size: 0x00000004, count: 0x00000001
Debug: 155 15362 target.c:1342 target_read_u32(): address: 0xfffffc20, value: 0x00004001
Debug: 156 15362 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffffc24, size: 0x00000004, count: 0x00000001
Debug: 157 15382 target.c:1342 target_read_u32(): address: 0xfffffc24, value: 0x000128aa
Debug: 158 15382 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffffc30, size: 0x00000004, count: 0x00000001
Debug: 159 15412 target.c:1342 target_read_u32(): address: 0xfffffc30, value: 0x00000007
Debug: 160 15412 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffffc2c, size: 0x00000004, count: 0x00000001
Debug: 161 15432 target.c:1342 target_read_u32(): address: 0xfffffc2c, value: 0x10483f0e
Debug: 162 15432 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xffffff68, size: 0x00000004, count: 0x00000001
Debug: 163 15462 target.c:1342 target_read_u32(): address: 0xffffff68, value: 0x00000401
Debug: 164 15462 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xffffff68, size: 0x00000004, count: 0x00000001
Debug: 165 15482 target.c:1342 target_read_u32(): address: 0xffffff68, value: 0x00000401
Debug: 166 15482 at91sam7.c:616 at91sam7_read_part_info(): nvptyp: 0x002, arch: 0x0075

>>>> v2: gdb shell + openocd.log

Remote debugging using localhost:3333
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Reply contains invalid hex digit 116
(gdb)
Debug: 10 10 configuration.c:83 find_file(): found C:\Treiber\OpenOCD_v020\bin\openocd.cfg
Debug: 12 20 command.c:68 script_debug(): command - telnet_port
Debug: 13 20 command.c:77 script_debug(): telnet_port - argv[0]=ocd_telnet_port
Debug: 14 20 command.c:77 script_debug(): telnet_port - argv[1]=4444
Debug: 16 20 command.c:68 script_debug(): command - gdb_port
Debug: 17 20 command.c:77 script_debug(): gdb_port - argv[0]=ocd_gdb_port
Debug: 18 20 command.c:77 script_debug(): gdb_port - argv[1]=3333
Debug: 20 20 command.c:68 script_debug(): command - gdb_memory_map
Debug: 21 20 command.c:77 script_debug(): gdb_memory_map - argv[0]=ocd_gdb_memory_map
Debug: 22 20 command.c:77 script_debug(): gdb_memory_map - argv[1]=enable
Debug: 23 20 configuration.c:83 find_file(): found C:\Treiber\OpenOCD_v020\interface\olimex-jtag-tiny.cfg
Debug: 25 20 command.c:68 script_debug(): command - interface
Debug: 26 20 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 27 20 command.c:77 script_debug(): interface - argv[1]=ft2232
Debug: 29 20 command.c:68 script_debug(): command - ft2232_device_desc
Debug: 30 20 command.c:77 script_debug(): ft2232_device_desc - argv[0]=ocd_ft2232_device_desc
Debug: 31 20 command.c:77 script_debug(): ft2232_device_desc - argv[1]=Olimex OpenOCD JTAG TINY A
Debug: 33 20 command.c:68 script_debug(): command - ft2232_layout
Debug: 34 20 command.c:77 script_debug(): ft2232_layout - argv[0]=ocd_ft2232_layout
Debug: 35 20 command.c:77 script_debug(): ft2232_layout - argv[1]=olimex-jtag
Debug: 37 20 command.c:68 script_debug(): command - ft2232_vid_pid
Debug: 38 20 command.c:77 script_debug(): ft2232_vid_pid - argv[0]=ocd_ft2232_vid_pid
Debug: 39 20 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x15ba
Debug: 40 20 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0x0004
Debug: 41 20 configuration.c:83 find_file(): found C:\Treiber\OpenOCD_v020\target\sam7x256.cfg
Debug: 43 30 command.c:68 script_debug(): command - reset_config
Debug: 44 30 command.c:77 script_debug(): reset_config - argv[0]=ocd_reset_config
Debug: 45 30 command.c:77 script_debug(): reset_config - argv[1]=srst_only
Debug: 46 30 command.c:77 script_debug(): reset_config - argv[2]=srst_pulls_trst
Debug: 47 30 tcl.c:237 jim_newtap_cmd(): Creating New Tap, Chip: sam7x256, Tap: cpu, Dotted: sam7x256.cpu, 8 params
Debug: 48 30 tcl.c:253 jim_newtap_cmd(): Processing option: -irlen
Debug: 49 30 tcl.c:253 jim_newtap_cmd(): Processing option: -ircapture
Debug: 50 30 tcl.c:253 jim_newtap_cmd(): Processing option: -irmask
Debug: 51 30 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id
Debug: 52 30 core.c:1116 jtag_tap_init(): Created Tap: sam7x256.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 53 30 target.c:4295 jim_target(): Target command params:
Debug: 54 30 target.c:4296 jim_target(): target create sam7x256.cpu arm7tdmi -endian little -chain-position sam7x256.cpu -variant arm7tdmi
Debug: 56 30 command.c:68 script_debug(): command - bank
Debug: 57 30 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 58 30 command.c:77 script_debug(): bank - argv[1]=at91sam7
Debug: 59 30 command.c:77 script_debug(): bank - argv[2]=0
Debug: 60 30 command.c:77 script_debug(): bank - argv[3]=0
Debug: 61 30 command.c:77 script_debug(): bank - argv[4]=0
Debug: 62 30 command.c:77 script_debug(): bank - argv[5]=0
Debug: 63 30 command.c:77 script_debug(): bank - argv[6]=0
Debug: 64 30 command.c:77 script_debug(): bank - argv[7]=0
Debug: 65 30 command.c:77 script_debug(): bank - argv[8]=0
Debug: 66 30 command.c:77 script_debug(): bank - argv[9]=0
Debug: 67 30 command.c:77 script_debug(): bank - argv[10]=0
Debug: 68 30 command.c:77 script_debug(): bank - argv[11]=0
Debug: 69 30 command.c:77 script_debug(): bank - argv[12]=0
Debug: 70 30 command.c:77 script_debug(): bank - argv[13]=0
Debug: 71 30 command.c:77 script_debug(): bank - argv[14]=18432
Debug: 73 30 command.c:68 script_debug(): command - init
Debug: 74 30 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 75 30 openocd.c:129 handle_init_command(): target init complete
Debug: 76 30 ft2232.c:2059 ft2232_init(): ft2232 interface using shortest path jtag state transitions
Debug: 77 30 ft2232.c:1978 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'olimex-jtag' layout (15ba:0004)
Debug: 78 80 ft2232.c:2022 ft2232_init_libftdi(): current latency timer: 2
Debug: 79 80 ft2232.c:2387 olimex_jtag_init(): 0x80 0x08 0x1b
Debug: 80 80 ft2232.c:2431 olimex_jtag_init(): 82 09 0f
Debug: 81 90 ft2232.c:477 ft2232_speed(): 86 00 00
Debug: 82 100 openocd.c:136 handle_init_command(): jtag interface init complete
Debug: 83 100 core.c:1161 jtag_init_inner(): Init JTAG chain
Debug: 84 100 core.c:291 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 85 100 core.c:807 jtag_reset_callback(): -
Info : 86 110 core.c:874 jtag_examine_chain_display(): JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Info : 87 110 core.c:933 jtag_examine_chain_match_tap(): JTAG Tap/device matched
Debug: 88 130 openocd.c:142 handle_init_command(): jtag init complete
Debug: 89 140 arm7_9_common.c:61 arm7_9_clear_watchpoints(): -
Debug: 90 140 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000
Debug: 91 140 embeddedice.c:370 embeddedice_write_reg(): 20: 0x00000000
Debug: 92 150 openocd.c:145 handle_init_command(): jtag examine complete
Debug: 93 150 openocd.c:151 handle_init_command(): flash init complete
Debug: 94 150 openocd.c:155 handle_init_command(): mflash init complete
Debug: 95 150 openocd.c:159 handle_init_command(): NAND init complete
Debug: 96 150 openocd.c:163 handle_init_command(): pld init complete
Debug: 97 170 gdb_server.c:2236 gdb_init(): gdb service for target arm7tdmi at port 3333
Info : 98 19067 server.c:79 add_connection(): accepting 'gdb' connection from 0
Debug: 99 19067 breakpoints.c:160 breakpoint_clear_target(): Delete all breakpoints for target: arm7tdmi
Debug: 100 19067 breakpoints.c:287 watchpoint_clear_target(): Delete all watchpoints for target: arm7tdmi
Debug: 101 19067 arm7_9_common.c:1279 arm7_9_halt(): target->state: running
Debug: 102 19067 embeddedice.c:370 embeddedice_write_reg(): 9: 0xffffffff
Debug: 103 19067 embeddedice.c:370 embeddedice_write_reg(): 11: 0xffffffff
Debug: 104 19067 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000100
Debug: 105 19067 embeddedice.c:370 embeddedice_write_reg(): 13: 0x000000f7
Debug: 106 19107 embeddedice.c:370 embeddedice_write_reg(): 0: 0x00000005
Debug: 107 19107 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000
Debug: 108 19107 arm7_9_common.c:1389 arm7_9_debug_entry(): target entered debug from ARM state
Debug: 109 19127 arm7_9_common.c:1421 arm7_9_debug_entry(): target entered debug state in Supervisor mode
Debug: 110 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r0: 0x60000013
Debug: 111 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r1: 0x000000c0
Debug: 112 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r2: 0x0000136e
Debug: 113 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r3: 0x00206750
Debug: 114 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r4: 0x04040404
Debug: 115 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r5: 0x05050505
Debug: 116 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r6: 0x06060606
Debug: 117 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r7: 0x07070707
Debug: 118 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r8: 0x08080808
Debug: 119 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r9: 0x09090909
Debug: 120 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r10: 0x10101010
Debug: 121 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r11: 0x00206950
Debug: 122 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r12: 0x00206954
Debug: 123 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r13: 0x0020693c
Debug: 124 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r14: 0x001020e4
Debug: 125 19127 arm7_9_common.c:1444 arm7_9_debug_entry(): r15: 0x00104544
Debug: 126 19127 arm7_9_common.c:1450 arm7_9_debug_entry(): entered debug state at PC 0x104544
Debug: 127 19138 target.c:838 target_call_event_callbacks(): target event 4 (early-halted)
Debug: 128 19138 target.c:3414 target_handle_event(): event: 4 early-halted - no action
Debug: 129 19138 target.c:3414 target_handle_event(): event: 4 early-halted - no action
Debug: 130 19138 target.c:838 target_call_event_callbacks(): target event 5 (halted)
Debug: 131 19138 target.c:3414 target_handle_event(): event: 5 halted - no action
User : 132 19138 target.c:1100 target_arch_state(): target state: halted
User : 133 19138 armv4_5.c:305 armv4_5_arch_state(): target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x60000013 pc: 0x00104544
Debug: 134 19138 target.c:3414 target_handle_event(): event: 5 halted - no action
Debug: 135 19138 target.c:838 target_call_event_callbacks(): target event 10 (gdb-end)
Debug: 136 19138 target.c:3414 target_handle_event(): event: 10 gdb-end - no action
Debug: 137 19138 target.c:3414 target_handle_event(): event: 10 gdb-end - no action
Debug: 138 19138 target.c:838 target_call_event_callbacks(): target event 26 (gdb-attach)
Debug: 139 19138 target.c:3414 target_handle_event(): event: 26 gdb-attach - no action
Debug: 140 19138 target.c:3414 target_handle_event(): event: 26 gdb-attach - no action
Debug: 141 19138 gdb_server.c:809 gdb_new_connection(): New GDB Connection: 1, Target sam7x256.cpu, state: halted
Debug: 142 19138 gdb_server.c:2058 gdb_input_inner(): received packet: 'qSupported'
Debug: 143 19148 gdb_server.c:2058 gdb_input_inner(): received packet: 'QStartNoAckMode'
Warn : 144 19158 gdb_server.c:580 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Debug: 145 19158 gdb_server.c:2058 gdb_input_inner(): received packet: 'Hg0'
Debug: 146 19158 gdb_server.c:2058 gdb_input_inner(): received packet: '?'
Debug: 147 19158 gdb_server.c:2058 gdb_input_inner(): received packet: 'Hc-1'
Debug: 148 19158 gdb_server.c:2058 gdb_input_inner(): received packet: 'qC'
Debug: 149 19158 gdb_server.c:2058 gdb_input_inner(): received packet: 'qAttached'
Debug: 150 19158 gdb_server.c:2058 gdb_input_inner(): received packet: 'g'
Debug: 151 19158 gdb_server.c:2058 gdb_input_inner(): received packet: 'qXfer:memory-map:read::fff00000000,fff00000fff'
Debug: 152 19158 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffff240, size: 0x00000004, count: 0x00000001
Debug: 153 19188 target.c:1342 target_read_u32(): address: 0xfffff240, value: 0x275b0940
Debug: 154 19188 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffffc20, size: 0x00000004, count: 0x00000001
Debug: 155 19218 target.c:1342 target_read_u32(): address: 0xfffffc20, value: 0x00004001
Debug: 156 19218 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffffc24, size: 0x00000004, count: 0x00000001
Debug: 157 19238 target.c:1342 target_read_u32(): address: 0xfffffc24, value: 0x000128aa
Debug: 158 19238 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffffc30, size: 0x00000004, count: 0x00000001
Debug: 159 19268 target.c:1342 target_read_u32(): address: 0xfffffc30, value: 0x00000007
Debug: 160 19268 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xfffffc2c, size: 0x00000004, count: 0x00000001
Debug: 161 19288 target.c:1342 target_read_u32(): address: 0xfffffc2c, value: 0x10483f0e
Debug: 162 19288 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xffffff68, size: 0x00000004, count: 0x00000001
Debug: 163 19318 target.c:1342 target_read_u32(): address: 0xffffff68, value: 0x00000401
Debug: 164 19318 arm7_9_common.c:2235 arm7_9_read_memory(): address: 0xffffff68, size: 0x00000004, count: 0x00000001
Debug: 165 19348 target.c:1342 target_read_u32(): address: 0xffffff68, value: 0x00000401
Debug: 166 19348 at91sam7.c:616 at91sam7_read_part_info(): nvptyp: 0x002, arch: 0x0075

does anyone know what’s up here?

and how to get my environment working … especially for later use with c::b ide?

many thanks

daniel

hi again,

today i’ve found some time to do some more tests … and here is what i’ve discovered and some more, additional infos:

gcc + gdb i want to use for arm7 i’ve build by myself as a canadian cross;

build=i686-linux-gnu, host=i586-mingw32msvc, target=arm-elf.

my own gdb is configured like yagartos gdb, but for linux build … i’ve cheated a little bit :o)

compiling target code with my own gcc works (apparently) fine.

try to connect my own gdb to openocd v0.2.0 crashes as described.

try to connect the gdb of a parallel installed yagarto toolchain to openocd v0.2.0 works.

is there a configure option for gdb i have to consider?

what about termcap?

i hope this infos helps you to give me a hint what’s wrong.

thanks

daniel