Hi everyone, I am new to this mailing list. Since the past few days, I have been working on an i.MX21 based Cogent CSB735 SBC on a CSB703 development board using OpenOCD (rev: 1187) and gdb 6.8 with an Olimex ARM-USB-OCD. My configuration and gdbinit script is given below:
----------------------------------------------------------------- # File: openocd.cfg # OpenOCD daemon configuration telnet_port 4444 gdb_port 3333 gdb_memory_map enable #interface interface ft2232 ft2232_device_desc "Olimex OpenOCD JTAG" ft2232_layout olimex-jtag ft2232_vid_pid 0x15ba 0x0003 jtag_speed 20 # use combined on interfaces or targets that can't set TRST/SRST separately reset_config trst_and_srst # jtag scan chain # format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) jtag_device 4 0x1 0x1 0xe jtag_nsrst_delay 200 jtag_ntrst_delay 200 target create target0 arm926ejs -endian little -chain-position 0 -variant arm926ejs working_area 0 0xC0800000 0x8000 nobackup #Initialize the target init reset run sleep 30 halt ----------------------------------------------------------------- #File: .gdbinit target remote localhost:3333 set endian little set remote memory-write-packet-size 1024 set remote memory-write-packet-size fixed ----------------------------------------------------------------- I have seen some messages in this mailing list on debug reason MOE=0xc, but I did not get any of them when I used jtag_speed 5 or 20. I only got those messages when I used jtag_speed 0. And, along with that, the jtag device ID reported with speed 0 was wrong. I have attached the complete log with this mail, but included appropriate snippets in the mail text. I get a DBGACK warning and "debug re-entry" error at: Debug: 100 295 gdb_server.c:2205 gdb_init(): gdb service for target arm926ejs at port 3333 Warning: 101 295 tcl_server.c:178 tcl_init(): no tcl port specified, using default port 6666 Warning: 102 297 arm7_9_common.c:744 arm7_9_poll(): DBGACK set while target was in unknown state. Reset or initialize target. Debug: 103 297 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 104 297 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Error: 105 301 arm926ejs.c:352 arm926ejs_examine_debug_reason(): BUG: debug re-entry from system speed access shouldn't be handled here Then I get an "armv4_5_mode_to_number(): invalid mode value encountered" error for cpsr value at: Debug: 184 1149 target.c:3126 target_handle_event(): event: 21 reset-end - no action Debug: 185 1149 ft2232.c:1045 olimex_jtag_reset(): trst: 0, srst: 1, high_output: 0x0b, high_direction: 0x0f Debug: 186 1401 ft2232.c:1045 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f Debug: 188 1804 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 189 1804 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 190 1808 arm926ejs.c:324 arm926ejs_examine_debug_reason(): vector catch breakpoint Debug: 191 1808 arm7_9_common.c:1156 arm7_9_debug_entry(): target entered debug from Thumb state Debug: 192 1814 arm7_9_common.c:1160 arm7_9_debug_entry(): r0_thumb: 0x00000000, pc_thumb: 0xfffffff4 Error: 193 1826 armv4_5.h:117 armv4_5_mode_to_number(): invalid mode value encountered Error: 194 1826 arm7_9_common.c:1192 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure Debug: 196 1828 command.c:91 script_command(): script_command - sleep Then finally, I get an error is when I try to load a program into RAM using gdb. After starting openocd, I start gdb as $ arm-elf-gdb ramtst.elf GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html > This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"... /home/rahulb/.gdbinit:3: Error in sourced command file: No symbol table is loaded. Use the "file" command. 0x00000000 in ?? () The target is assumed to be little endian The target may not be able to correctly handle a memory-write-packet-size of 1024 bytes. Change the packet size? (y or n) [answered Y; input not from terminal] (gdb) load Loading section .text, size 0x33560 lma 0xc0100000 Load failed (gdb) q The program is running. Exit anyway? (y or n) y This is trying to load the program at RAM address 0xC0100000. This is the 64 MB external SDRAM mapped at 0xC0000000. The error seems to be coming from incorrect x-packets used for binary download, or from incorrect implementation of the protocol in openocd: Debug: 260 33679 gdb_server.c:2031 gdb_input_inner(): received packet: 'Xc0100000,0:<binary-data>' Debug: 261 33679 gdb_server.c:2031 gdb_input_inner(): received packet: 'X0,3e0:<binary-data>' Maybe the last line should have been the following, but I am not sure. Debug: 261 33679 gdb_server.c:2031 gdb_input_inner(): received packet: 'Xc0100000,3e0:<binary-data>' It is possible that the first line in X-packet protocol should set base address, and then the latter lines should only refer to offsets from that base. Can anyone point me in the right direction for help/hints on solving these errors? I also have an IAR J-Link usb dongle that I used with this board and got similar results with the only difference that I was able to use jtag_speed 0 and jlink did not complain when openocd tried to write to address 0x00000000, and it kept getting subsequent packets from gdb with X3e0,3e0:... , X7C0,3e0:....., . This made me think that maybe this is how gdb uses X-packets to break down big binary files. Thanks, Rahul.
Debug: 9 0 configuration.c:88 find_file(): found imx21_flash_cfi_ftdi.cfg Debug: 11 1 command.c:91 script_command(): script_command - telnet_port Debug: 12 1 command.c:108 script_command(): script_command - telnet_port, argv[0]=ocd_telnet_port Debug: 13 1 command.c:108 script_command(): script_command - telnet_port, argv[1]=4444 Debug: 15 1 command.c:91 script_command(): script_command - gdb_port Debug: 16 1 command.c:108 script_command(): script_command - gdb_port, argv[0]=ocd_gdb_port Debug: 17 1 command.c:108 script_command(): script_command - gdb_port, argv[1]=3333 Debug: 19 1 command.c:91 script_command(): script_command - gdb_memory_map Debug: 20 1 command.c:108 script_command(): script_command - gdb_memory_map, argv[0]=ocd_gdb_memory_map Debug: 21 1 command.c:108 script_command(): script_command - gdb_memory_map, argv[1]=enable Debug: 23 1 command.c:91 script_command(): script_command - interface Debug: 24 1 command.c:108 script_command(): script_command - interface, argv[0]=ocd_interface Debug: 25 1 command.c:108 script_command(): script_command - interface, argv[1]=ft2232 Debug: 27 1 command.c:91 script_command(): script_command - ft2232_device_desc Debug: 28 1 command.c:108 script_command(): script_command - ft2232_device_desc, argv[0]=ocd_ft2232_device_desc Debug: 29 1 command.c:108 script_command(): script_command - ft2232_device_desc, argv[1]=Olimex OpenOCD JTAG Debug: 31 1 command.c:91 script_command(): script_command - ft2232_layout Debug: 32 1 command.c:108 script_command(): script_command - ft2232_layout, argv[0]=ocd_ft2232_layout Debug: 33 1 command.c:108 script_command(): script_command - ft2232_layout, argv[1]=olimex-jtag Debug: 35 1 command.c:91 script_command(): script_command - ft2232_vid_pid Debug: 36 1 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid Debug: 37 1 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[1]=0x15ba Debug: 38 1 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[2]=0x0003 Debug: 40 1 command.c:91 script_command(): script_command - jtag_speed Debug: 41 1 command.c:108 script_command(): script_command - jtag_speed, argv[0]=ocd_jtag_speed Debug: 42 1 command.c:108 script_command(): script_command - jtag_speed, argv[1]=20 Debug: 43 1 jtag.c:1965 handle_jtag_speed_command(): handle jtag speed User: 44 1 command.c:375 command_print(): jtag_speed: 20 Debug: 46 1 command.c:91 script_command(): script_command - reset_config Debug: 47 1 command.c:108 script_command(): script_command - reset_config, argv[0]=ocd_reset_config Debug: 48 1 command.c:108 script_command(): script_command - reset_config, argv[1]=trst_and_srst Debug: 50 1 command.c:91 script_command(): script_command - jtag_device Debug: 51 1 command.c:108 script_command(): script_command - jtag_device, argv[0]=ocd_jtag_device Debug: 52 1 command.c:108 script_command(): script_command - jtag_device, argv[1]=4 Debug: 53 1 command.c:108 script_command(): script_command - jtag_device, argv[2]=0x1 Debug: 54 1 command.c:108 script_command(): script_command - jtag_device, argv[3]=0x1 Debug: 55 1 command.c:108 script_command(): script_command - jtag_device, argv[4]=0xe Debug: 57 1 command.c:91 script_command(): script_command - jtag_nsrst_delay Debug: 58 1 command.c:108 script_command(): script_command - jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay Debug: 59 1 command.c:108 script_command(): script_command - jtag_nsrst_delay, argv[1]=200 Debug: 61 2 command.c:91 script_command(): script_command - jtag_ntrst_delay Debug: 62 2 command.c:108 script_command(): script_command - jtag_ntrst_delay, argv[0]=ocd_jtag_ntrst_delay Debug: 63 2 command.c:108 script_command(): script_command - jtag_ntrst_delay, argv[1]=200 Debug: 64 2 target.c:3994 jim_target(): Target command params: Debug: 65 2 target.c:3995 jim_target(): target create target0 arm926ejs -endian little -chain-position 0 -variant arm926ejs Debug: 67 2 command.c:91 script_command(): script_command - working_area Debug: 68 2 command.c:108 script_command(): script_command - working_area, argv[0]=ocd_working_area Debug: 69 2 command.c:108 script_command(): script_command - working_area, argv[1]=0 Debug: 70 2 command.c:108 script_command(): script_command - working_area, argv[2]=0xC0800000 Debug: 71 2 command.c:108 script_command(): script_command - working_area, argv[3]=0x8000 Debug: 72 2 command.c:108 script_command(): script_command - working_area, argv[4]=nobackup Debug: 74 2 command.c:91 script_command(): script_command - init Debug: 75 2 command.c:108 script_command(): script_command - init, argv[0]=ocd_init Debug: 76 3 openocd.c:143 handle_init_command(): target init complete Debug: 77 3 ft2232.c:1382 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'olimex-jtag' layout (15ba:0003) Debug: 78 270 ft2232.c:1471 ft2232_init_ftd2xx(): current latency timer: 2 Debug: 79 271 ft2232.c:1818 olimex_jtag_init(): 80 08 1b Debug: 80 272 ft2232.c:1861 olimex_jtag_init(): 82 09 0f Debug: 81 273 ft2232.c:256 ft2232_speed(): 86 14 00 Debug: 82 282 openocd.c:150 handle_init_command(): jtag interface init complete Debug: 83 282 jtag.c:1625 jtag_init_inner(): Init JTAG chain Debug: 84 282 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 85 282 jtag.c:1305 jtag_reset_callback(): - Debug: 86 283 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 87 283 jtag.c:1305 jtag_reset_callback(): - Info: 88 287 jtag.c:1414 jtag_examine_chain(): JTAG device found: 0x0792611f (Manufacturer: 0x08f, Part: 0x7926, Version: 0x0) Debug: 89 287 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 90 287 jtag.c:1305 jtag_reset_callback(): - Debug: 91 289 openocd.c:156 handle_init_command(): jtag init complete Debug: 92 293 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000 Debug: 93 294 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000 Debug: 94 295 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000 Debug: 95 295 openocd.c:159 handle_init_command(): jtag examine complete Debug: 96 295 openocd.c:165 handle_init_command(): flash init complete Debug: 97 295 openocd.c:169 handle_init_command(): mflash init complete Debug: 98 295 openocd.c:173 handle_init_command(): NAND init complete Debug: 99 295 openocd.c:177 handle_init_command(): pld init complete Debug: 100 295 gdb_server.c:2205 gdb_init(): gdb service for target arm926ejs at port 3333 Warning: 101 295 tcl_server.c:178 tcl_init(): no tcl port specified, using default port 6666 Warning: 102 297 arm7_9_common.c:744 arm7_9_poll(): DBGACK set while target was in unknown state. Reset or initialize target. Debug: 103 297 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 104 297 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Error: 105 301 arm926ejs.c:352 arm926ejs_examine_debug_reason(): BUG: debug re-entry from system speed access shouldn't be handled here Debug: 106 301 arm7_9_common.c:1164 arm7_9_debug_entry(): target entered debug from ARM state Debug: 107 313 arm7_9_common.c:1196 arm7_9_debug_entry(): target entered debug state in Supervisor mode Error: 108 313 arm7_9_common.c:1219 arm7_9_debug_entry(): unknown debug reason: 6 Debug: 109 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r0: 0x000000d7 Debug: 110 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r1: 0xe1a0e00f Debug: 111 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r2: 0xe1a0f003 Debug: 112 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r3: 0xe8dd7fff Debug: 113 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r4: 0xe28dd03c Debug: 114 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r5: 0xe49de004 Debug: 115 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r6: 0xe25ef004 Debug: 116 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r7: 0xe52de004 Debug: 117 313 arm7_9_common.c:1227 arm7_9_debug_entry(): r8: 0xe52d3004 Debug: 118 314 arm7_9_common.c:1227 arm7_9_debug_entry(): r9: 0xea000dfb Debug: 119 314 arm7_9_common.c:1227 arm7_9_debug_entry(): r10: 0xe94d7fff Debug: 120 314 arm7_9_common.c:1227 arm7_9_debug_entry(): r11: 0xe28dd03c Debug: 121 314 arm7_9_common.c:1227 arm7_9_debug_entry(): r12: 0xe24e0008 Debug: 122 314 arm7_9_common.c:1227 arm7_9_debug_entry(): r13: 0xffffffff Debug: 123 314 arm7_9_common.c:1227 arm7_9_debug_entry(): r14: 0xffffffff Debug: 124 314 arm7_9_common.c:1227 arm7_9_debug_entry(): r15: 0x00000048 Debug: 125 314 arm7_9_common.c:1233 arm7_9_debug_entry(): entered debug state at PC 0x48 Debug: 126 321 arm926ejs.c:478 arm926ejs_post_debug_entry(): cp15_control_reg: 00050078 Debug: 127 329 arm926ejs.c:499 arm926ejs_post_debug_entry(): D FSR: 0x00000008, D FAR: 0x0000001c, I FSR: 0x00000008 Debug: 128 333 target.c:717 target_call_event_callbacks(): target event 4 (early-halted) Debug: 129 333 target.c:3126 target_handle_event(): event: 4 early-halted - no action Debug: 130 333 target.c:717 target_call_event_callbacks(): target event 5 (halted) Debug: 131 333 target.c:3126 target_handle_event(): event: 5 halted - no action User: 132 333 target.c:973 target_arch_state(): target state: halted User: 133 333 arm926ejs.c:599 arm926ejs_arch_state(): target halted in ARM state due to undefined, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000048 MMU: disabled, D-Cache: disabled, I-Cache: disabled Debug: 135 333 command.c:91 script_command(): script_command - reset Debug: 136 333 command.c:108 script_command(): script_command - reset, argv[0]=ocd_reset Debug: 137 333 command.c:108 script_command(): script_command - reset, argv[1]=run Debug: 138 334 target.c:3994 jim_target(): Target command params: Debug: 139 334 target.c:3995 jim_target(): target names Debug: 140 334 target.c:3126 target_handle_event(): event: 11 reset-start - no action Debug: 141 334 jtag.c:1662 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / TLR Debug: 142 334 jtag.c:1007 jtag_add_reset(): SRST line released Debug: 143 334 jtag.c:1026 jtag_add_reset(): TRST line asserted Debug: 144 334 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 145 334 jtag.c:1305 jtag_reset_callback(): - Debug: 146 334 jtag.c:1003 jtag_add_reset(): SRST line asserted Debug: 147 334 jtag.c:1026 jtag_add_reset(): TRST line asserted Debug: 148 334 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 149 334 jtag.c:1305 jtag_reset_callback(): - Debug: 150 334 jtag.c:1003 jtag_add_reset(): SRST line asserted Debug: 151 334 jtag.c:1007 jtag_add_reset(): SRST line released Debug: 152 334 ft2232.c:1045 olimex_jtag_reset(): trst: 1, srst: 0, high_output: 0x08, high_direction: 0x0f Debug: 153 335 arm926ejs.c:113 arm926ejs_catch_broken_irscan(): caught ARM926EJ-S invalid Capture-IR result after CP15 access Debug: 155 535 ft2232.c:1045 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x0a, high_direction: 0x0f Debug: 156 536 ft2232.c:1045 olimex_jtag_reset(): trst: 0, srst: 1, high_output: 0x0b, high_direction: 0x0f Debug: 157 737 ft2232.c:1045 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f Debug: 159 1138 jtag.c:1625 jtag_init_inner(): Init JTAG chain Debug: 160 1138 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 161 1138 jtag.c:1305 jtag_reset_callback(): - Info: 162 1143 jtag.c:1414 jtag_examine_chain(): JTAG device found: 0x0792611f (Manufacturer: 0x08f, Part: 0x7926, Version: 0x0) Debug: 163 1143 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 164 1143 jtag.c:1305 jtag_reset_callback(): - Debug: 165 1144 target.c:3994 jim_target(): Target command params: Debug: 166 1144 target.c:3995 jim_target(): target names Debug: 167 1146 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000 Debug: 168 1147 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000 Debug: 169 1147 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000 Debug: 170 1148 target.c:3994 jim_target(): Target command params: Debug: 171 1148 target.c:3995 jim_target(): target names Debug: 172 1148 target.c:3126 target_handle_event(): event: 12 reset-assert-pre - no action Debug: 173 1148 arm7_9_common.c:818 arm7_9_assert_reset(): target->state: halted Debug: 174 1148 jtag.c:1003 jtag_add_reset(): SRST line asserted Debug: 175 1148 target.c:3126 target_handle_event(): event: 13 reset-assert-post - no action Debug: 176 1148 target.c:3994 jim_target(): Target command params: Debug: 177 1148 target.c:3995 jim_target(): target names Debug: 178 1148 target.c:3126 target_handle_event(): event: 14 reset-deassert-pre - no action Debug: 179 1148 arm7_9_common.c:880 arm7_9_deassert_reset(): target->state: reset Debug: 180 1148 jtag.c:1007 jtag_add_reset(): SRST line released Debug: 181 1149 target.c:3126 target_handle_event(): event: 15 reset-deassert-post - no action Debug: 182 1149 target.c:3994 jim_target(): Target command params: Debug: 183 1149 target.c:3995 jim_target(): target names Debug: 184 1149 target.c:3126 target_handle_event(): event: 21 reset-end - no action Debug: 185 1149 ft2232.c:1045 olimex_jtag_reset(): trst: 0, srst: 1, high_output: 0x0b, high_direction: 0x0f Debug: 186 1401 ft2232.c:1045 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f Debug: 188 1804 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 189 1804 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 190 1808 arm926ejs.c:324 arm926ejs_examine_debug_reason(): vector catch breakpoint Debug: 191 1808 arm7_9_common.c:1156 arm7_9_debug_entry(): target entered debug from Thumb state Debug: 192 1814 arm7_9_common.c:1160 arm7_9_debug_entry(): r0_thumb: 0x00000000, pc_thumb: 0xfffffff4 Error: 193 1826 armv4_5.h:117 armv4_5_mode_to_number(): invalid mode value encountered Error: 194 1826 arm7_9_common.c:1192 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure Debug: 196 1828 command.c:91 script_command(): script_command - sleep Debug: 197 1828 command.c:108 script_command(): script_command - sleep, argv[0]=ocd_sleep Debug: 198 1828 command.c:108 script_command(): script_command - sleep, argv[1]=30 Debug: 200 1862 command.c:91 script_command(): script_command - halt Debug: 201 1862 command.c:108 script_command(): script_command - halt, argv[0]=ocd_halt Debug: 202 1862 target.c:1808 handle_halt_command(): - Debug: 203 1862 arm7_9_common.c:1065 arm7_9_halt(): target->state: running Debug: 204 1862 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000007 Debug: 205 1864 target.c:1788 target_wait_state(): waiting for target halted... Debug: 207 2026 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 208 2026 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 209 2030 arm926ejs.c:344 arm926ejs_examine_debug_reason(): internal debug request Debug: 210 2030 arm7_9_common.c:1164 arm7_9_debug_entry(): target entered debug from ARM state Debug: 211 2042 arm7_9_common.c:1196 arm7_9_debug_entry(): target entered debug state in Supervisor mode Debug: 212 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r0: 0x00000010 Debug: 213 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r1: 0xe1a0e00f Debug: 214 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r2: 0xe1a0f003 Debug: 215 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r3: 0xe8dd7fff Debug: 216 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r4: 0xe28dd03c Debug: 217 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r5: 0xe49de004 Debug: 218 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r6: 0xe25ef004 Debug: 219 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r7: 0xe52de004 Debug: 220 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r8: 0xe52d3004 Debug: 221 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r9: 0xea000dfb Debug: 222 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r10: 0xe94d7fff Debug: 223 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r11: 0xe28dd03c Debug: 224 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r12: 0xe24e0008 Debug: 225 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r13: 0xffffffff Debug: 226 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r14: 0xffffffff Debug: 227 2042 arm7_9_common.c:1227 arm7_9_debug_entry(): r15: 0x00000000 Debug: 228 2042 arm7_9_common.c:1233 arm7_9_debug_entry(): entered debug state at PC 0x0 Debug: 229 2050 arm926ejs.c:478 arm926ejs_post_debug_entry(): cp15_control_reg: 00050078 Debug: 230 2056 arm926ejs.c:499 arm926ejs_post_debug_entry(): D FSR: 0x00000008, D FAR: 0x0000001c, I FSR: 0x00000008 Debug: 231 2060 target.c:717 target_call_event_callbacks(): target event 4 (early-halted) Debug: 232 2060 target.c:3126 target_handle_event(): event: 4 early-halted - no action Debug: 233 2060 target.c:717 target_call_event_callbacks(): target event 5 (halted) Debug: 234 2060 target.c:3126 target_handle_event(): event: 5 halted - no action User: 235 2060 target.c:973 target_arch_state(): target state: halted User: 236 2060 arm926ejs.c:599 arm926ejs_arch_state(): target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled Debug: 237 2062 arm926ejs.c:113 arm926ejs_catch_broken_irscan(): caught ARM926EJ-S invalid Capture-IR result after CP15 access Debug: 239 2062 command.c:91 script_command(): script_command - init Debug: 240 2062 command.c:108 script_command(): script_command - init, argv[0]=ocd_init Info: 241 30343 server.c:84 add_connection(): accepting 'gdb' connection from 0 Debug: 242 30343 arm7_9_common.c:1065 arm7_9_halt(): target->state: halted Debug: 243 30343 arm7_9_common.c:1069 arm7_9_halt(): target was already halted Debug: 244 30346 target.c:717 target_call_event_callbacks(): target event 26 (gdb-attach) Debug: 245 30346 target.c:3126 target_handle_event(): event: 26 gdb-attach - no action Debug: 246 30346 target.c:3126 target_handle_event(): event: 26 gdb-attach - no action Debug: 247 30346 gdb_server.c:2033 gdb_input_inner(): received packet: 'qSupported' Warning: 248 30346 gdb_server.c:567 gdb_get_packet_inner(): acknowledgment received, but no packet pending Debug: 249 30346 gdb_server.c:2033 gdb_input_inner(): received packet: '?' Debug: 250 30346 gdb_server.c:2033 gdb_input_inner(): received packet: 'Hc-1' Debug: 251 30363 gdb_server.c:2033 gdb_input_inner(): received packet: 'qC' Debug: 252 30363 gdb_server.c:2033 gdb_input_inner(): received packet: 'qOffsets' Debug: 253 30363 gdb_server.c:2033 gdb_input_inner(): received packet: 'Hg0' Debug: 254 30363 gdb_server.c:2033 gdb_input_inner(): received packet: 'g' Debug: 255 30363 gdb_server.c:2033 gdb_input_inner(): received packet: 'm0,4' Debug: 256 30363 gdb_server.c:1173 gdb_read_memory_packet(): addr: 0x00000000, len: 0x00000004 Debug: 257 30363 target.c:1065 target_read_buffer(): reading buffer of 4 byte at 0x00000000 Debug: 258 30363 arm7_9_common.c:1980 arm7_9_read_memory(): address: 0x00000000, size: 0x00000004, count: 0x00000001 Debug: 259 30375 gdb_server.c:2033 gdb_input_inner(): received packet: 'qSymbol::' Debug: 260 33679 gdb_server.c:2031 gdb_input_inner(): received packet: 'Xc0100000,0:<binary-data>' Debug: 261 33679 gdb_server.c:2031 gdb_input_inner(): received packet: 'X0,3e0:<binary-data>' Debug: 262 33679 gdb_server.c:1308 gdb_write_memory_binary_packet(): addr: 0x00000000, len: 0x000003e0 Debug: 263 33679 target.c:989 target_write_buffer(): writing buffer of 992 byte at 0x00000000 Debug: 264 33679 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000004 Debug: 265 33866 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Warning: 266 33872 arm7_9_common.c:2316 arm7_9_write_memory(): memory write caused data abort (address: 0x00000000, size: 0x4, count: 0xf8) Debug: 267 33872 arm9tdmi.c:623 arm9tdmi_write_xpsr_im8(): xpsr_im: d3, rot: 0, spsr: 0 Debug: 268 39303 gdb_server.c:2033 gdb_input_inner(): received packet: 'k' Debug: 269 39305 target.c:717 target_call_event_callbacks(): target event 10 (gdb-end) Debug: 270 39305 target.c:3126 target_handle_event(): event: 10 gdb-end - no action Debug: 271 39305 target.c:717 target_call_event_callbacks(): target event 27 (gdb-detach) Debug: 272 39305 target.c:3126 target_handle_event(): event: 27 gdb-detach - no action Info: 273 39305 server.c:396 server_loop(): dropped 'gdb' connection
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
