Magnus Lundin wrote:
> Well, some days our work is a bit more confused then other days.
> 
> Dirk Behme wrote:
>> Magnus Lundin wrote:
>>> For testing and comments:
>>>
>>> Uses the OMAP3530 global software reset and defines corresponding 
>>> reset-start and reset-end event handlers.
>>
>> Something is wrong with the patch in attachment? It has to be done the 
>> inverse? I.e.
>>
>> --- tcl/target/omap3530.cfg    (revision 2768)
>> +++ tcl/target/omap3530.cfg    (working copy)
>>
>> instead of
>>
>> --- tcl/target/omap3530.cfg    (working copy)
>> +++ tcl/target/omap3530.cfg    (revision 2768)
>>
> This was done for me by the diff program in kdesvn, and I didnt read 
> carefully.
>>
>> Additionally:
>>
>> I can't find any difference (whitespace only?) in
>>
>> -if { [info exists CHIPNAME] } {   -   set  _CHIPNAME $CHIPNAME
>> -} else {   +if { [info exists CHIPNAME] } {
>> +   set  _CHIPNAME $CHIPNAME
>> +} else {
>>
> There was a whitespace patch from Dave that I had not applied on the tcl 
> directory.
>> And:
>>
>> omap3.cpu configure -event reset-end "omap3_dbginit"
>>
>> should call omap3_reset instead of omap3_dbginit? Or who calls 
>> omap3_reset? Or why call omap3_dbginit from omap3_reset, too?
>>
> At the end of the reset handling we reinitialise the tap and the debug 
> interface with  omap3_dbginit
> omap3_reset is really   reset+reinit+halt and you call it if you want to 
> debug the loading of u-boot by the X-Loader

Do you mean omap3_reset should be called 'manually' if needed, same 
like omap3_dbginit?

> New  patch attaced.

Tested with 2771 and LEDblink example. No differences seen to svn version.

Best regards

Dirk

Btw.: We still have the issue that first load of LEDblink with gdb fails:

-- cut --
...
Info : 113 7057 server.c:79 add_connection(): accepting 'gdb' 
connection from 0
Debug: 114 7058 breakpoints.c:160 breakpoint_clear_target(): Delete 
all breakpoints for target: cortex_a8
Debug: 115 7058 breakpoints.c:287 watchpoint_clear_target(): Delete 
all watchpoints for target: cortex_a8
Debug: 116 7058 target.c:829 target_call_event_callbacks(): target 
event 26 (gdb-attach)
Debug: 117 7058 gdb_server.c:788 gdb_new_connection(): New GDB 
Connection: 1, Target omap3.cpu, state: unknown 
 

Debug: 118 7058 gdb_server.c:2047 gdb_input_inner(): received packet: 
'qSupported'
Warn : 119 7058 gdb_server.c:582 gdb_get_packet_inner(): 
acknowledgment received, but no packet pending
Debug: 120 7059 gdb_server.c:2047 gdb_input_inner(): received packet: 
'?'
User : 121 7059 gdb_server.c:96 gdb_last_signal(): undefined debug 
reason 6 - target needs reset
Debug: 122 7059 gdb_server.c:2047 gdb_input_inner(): received packet: 
'Hc-1'
Debug: 123 7059 gdb_server.c:2047 gdb_input_inner(): received packet: 
'qC'
Debug: 124 7060 gdb_server.c:2047 gdb_input_inner(): received packet: 
'Hg0'
Debug: 125 7060 gdb_server.c:2047 gdb_input_inner(): received packet: 
'g'
Debug: 126 7060 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm0,4'
Debug: 127 7060 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x00000000, len: 0x00000004
Debug: 128 7060 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x00000000
Error: 129 7060 target.c:1194 target_read_buffer(): Target not 
examined yet
Debug: 130 7061 gdb_server.c:2047 gdb_input_inner(): received packet: 
'mfffffffc,4'
Debug: 131 7061 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0xfffffffc, len: 0x00000004
Debug: 132 7061 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0xfffffffc
Error: 133 7061 target.c:1194 target_read_buffer(): Target not 
examined yet
Debug: 134 7061 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm0,4'
Debug: 135 7061 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x00000000, len: 0x00000004
Debug: 136 7061 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x00000000
Error: 137 7061 target.c:1194 target_read_buffer(): Target not 
examined yet
Debug: 138 7062 gdb_server.c:2047 gdb_input_inner(): received packet: 
'mfffffffc,4'
Debug: 139 7062 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0xfffffffc, len: 0x00000004
Debug: 140 7062 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0xfffffffc
Error: 141 7062 target.c:1194 target_read_buffer(): Target not 
examined yet
Debug: 142 7062 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm0,4'
Debug: 143 7062 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x00000000, len: 0x00000004
Debug: 144 7062 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x00000000
Error: 145 7062 target.c:1194 target_read_buffer(): Target not 
examined yet
Debug: 146 7062 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm0,4'
Debug: 147 7063 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x00000000, len: 0x00000004
Debug: 148 7063 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x00000000
Error: 149 7063 target.c:1194 target_read_buffer(): Target not 
examined yet
Debug: 150 7063 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm0,4'
Debug: 151 7063 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x00000000, len: 0x00000004
Debug: 152 7063 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x00000000
Error: 153 7063 target.c:1194 target_read_buffer(): Target not 
examined yet
Debug: 154 7064 gdb_server.c:2047 gdb_input_inner(): received packet: 
'qRcmd,6f6d6170335f646267696e6974'
Debug: 156 7064 command.c:68 script_debug(): command - poll 

Debug: 157 7064 command.c:77 script_debug(): poll - argv[0]=ocd_poll 

Debug: 158 7064 command.c:77 script_debug(): poll - argv[1]=off 

Debug: 160 7065 command.c:68 script_debug(): command - sleep 

Debug: 161 7065 command.c:77 script_debug(): sleep - argv[0]=ocd_sleep 

Debug: 162 7065 command.c:77 script_debug(): sleep - argv[1]=100 

Debug: 163 7165 tcl.c:380 jtag_tap_handle_event(): JTAG tap: 
omap3530.dap event: 1 (tap-enable) action: icepick_c_tapenable 
omap3530.jrc 3 


Debug: 165 7166 command.c:68 script_debug(): command - irscan
Debug: 166 7166 command.c:77 script_debug(): irscan - argv[0]=ocd_irscan
Debug: 167 7166 command.c:77 script_debug(): irscan - argv[1]=omap3530.jrc
Debug: 168 7166 command.c:77 script_debug(): irscan - argv[2]=7
Debug: 169 7166 command.c:77 script_debug(): irscan - argv[3]=-endstate
Debug: 170 7166 command.c:77 script_debug(): irscan - argv[4]=IRPAUSE
Debug: 171 7166 command.c:68 script_debug(): command - drscan
Debug: 172 7166 command.c:77 script_debug(): drscan - argv[0]=drscan
Debug: 173 7166 command.c:77 script_debug(): drscan - argv[1]=omap3530.jrc
Debug: 174 7166 command.c:77 script_debug(): drscan - argv[2]=8
Debug: 175 7166 command.c:77 script_debug(): drscan - argv[3]=0x89
Debug: 176 7166 command.c:77 script_debug(): drscan - argv[4]=-endstate
Debug: 177 7166 command.c:77 script_debug(): drscan - argv[5]=DRPAUSE
Debug: 179 7168 command.c:68 script_debug(): command - irscan
Debug: 180 7168 command.c:77 script_debug(): irscan - argv[0]=ocd_irscan
Debug: 181 7168 command.c:77 script_debug(): irscan - argv[1]=omap3530.jrc
Debug: 182 7168 command.c:77 script_debug(): irscan - argv[2]=2
Debug: 183 7168 command.c:77 script_debug(): irscan - argv[3]=-endstate
Debug: 184 7168 command.c:77 script_debug(): irscan - argv[4]=IRPAUSE
Debug: 185 7168 command.c:68 script_debug(): command - drscan
Debug: 186 7168 command.c:77 script_debug(): drscan - argv[0]=drscan
Debug: 187 7168 command.c:77 script_debug(): drscan - argv[1]=omap3530.jrc
Debug: 188 7168 command.c:77 script_debug(): drscan - argv[2]=32
Debug: 189 7168 command.c:77 script_debug(): drscan - argv[3]=2734694664
Debug: 190 7168 command.c:77 script_debug(): drscan - argv[4]=-endstate
Debug: 191 7168 command.c:77 script_debug(): drscan - argv[5]=DRPAUSE
Debug: 193 7170 command.c:68 script_debug(): command - irscan
Debug: 194 7170 command.c:77 script_debug(): irscan - argv[0]=ocd_irscan
Debug: 195 7170 command.c:77 script_debug(): irscan - argv[1]=omap3530.jrc
Debug: 196 7170 command.c:77 script_debug(): irscan - argv[2]=0x3F
Debug: 197 7170 command.c:77 script_debug(): irscan - argv[3]=-endstate
Debug: 198 7170 command.c:77 script_debug(): irscan - argv[4]=RUN/IDLE
Debug: 200 7170 command.c:68 script_debug(): command - runtest
Debug: 201 7170 command.c:77 script_debug(): runtest - argv[0]=ocd_runtest
Debug: 202 7170 command.c:77 script_debug(): runtest - argv[1]=10
Debug: 203 7170 core.c:299 jtag_call_event_callbacks(): jtag event: 
TAP enabled
Debug: 204 7170 cortex_a8.c:1376 cortex_a8_examine(): TODO 

Debug: 205 7170 arm_adi_v5.c:960 ahbap_debugport_init(): 

Debug: 206 7179 arm_adi_v5.c:1005 ahbap_debugport_init(): AHB-AP ID 
Register 0x14770001, Debug ROM Address 0xffffffff 
 

Debug: 207 7194 cortex_a8.c:1414 cortex_a8_examine(): cpuid = 
0x411fc082
Debug: 208 7194 cortex_a8.c:1415 cortex_a8_examine(): ctypr = 
0x80048004
Debug: 209 7194 cortex_a8.c:1416 cortex_a8_examine(): ttypr = 
0x00202001
Debug: 210 7194 cortex_a8.c:1417 cortex_a8_examine(): didr = 
0x15141012
Debug: 211 7194 cortex_a8.c:1450 cortex_a8_examine(): Configured 6 hw 
breakpoint pairs and 2 hw watchpoint pairs 
 

Debug: 212 7194 cortex_a8.c:131 cortex_a8_init_debug_access(): 

Debug: 214 7198 command.c:68 script_debug(): command - targets 

Debug: 215 7198 command.c:77 script_debug(): targets - 
argv[0]=ocd_targets
User : 216 7198 command.c:400 command_print():     TargetName 
Type       Endian TapName            State 
 

User : 217 7198 command.c:400 command_print(): --  ------------------ 
---------- ------ ------------------ ------------ 
 

User : 218 7199 command.c:400 command_print():  0* omap3.cpu 
cortex_a8  little omap3530.dap       unknown 
 

Debug: 220 7199 command.c:68 script_debug(): command - dbginit 

Debug: 221 7199 command.c:77 script_debug(): dbginit - 
argv[0]=ocd_cortex_a8_dbginit
Debug: 222 7199 cortex_a8.c:131 cortex_a8_init_debug_access(): 

Debug: 224 7208 command.c:68 script_debug(): command - poll 

Debug: 225 7208 command.c:77 script_debug(): poll - argv[0]=ocd_poll 

Debug: 226 7208 command.c:77 script_debug(): poll - argv[1]=on 

Debug: 227 7210 gdb_server.c:2045 gdb_input_inner(): received packet: 
'X82000000,0:<binary-data>'
Debug: 228 7211 gdb_server.c:2045 gdb_input_inner(): received packet: 
'X82000000,e0:<binary-data>'
Debug: 229 7211 gdb_server.c:1317 gdb_write_memory_binary_packet(): 
addr: 0x82000000, len: 0x000000e0
Debug: 230 7211 target.c:1108 target_write_buffer(): writing buffer of 
224 byte at 0x82000000
Debug: 231 7216 gdb_server.c:2047 gdb_input_inner(): received packet: 
'Pf=00000082'
Debug: 232 7216 gdb_server.c:1086 gdb_set_register_packet(): - 

Debug: 233 7217 gdb_server.c:2047 gdb_input_inner(): received packet: 
'qSymbol::'
Debug: 234 7217 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 235 7217 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 236 7217 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 237 7223 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm81fffffc,4'
Debug: 238 7223 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x81fffffc, len: 0x00000004
Debug: 239 7223 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x81fffffc
Debug: 240 7224 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 241 7224 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 242 7224 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 243 7226 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm81fffffc,4'
Debug: 244 7226 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x81fffffc, len: 0x00000004
Debug: 245 7226 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x81fffffc
Debug: 246 7233 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 247 7233 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 248 7233 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 249 7234 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 250 7234 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 251 7234 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 252 7239 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 253 7239 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 254 7239 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 255 12000 gdb_server.c:2047 gdb_input_inner(): received packet: 
'vCont?'
Debug: 256 12000 gdb_server.c:2047 gdb_input_inner(): received packet: 
'Hc0'
Debug: 257 12000 gdb_server.c:2047 gdb_input_inner(): received packet: 
'c'
Warn : 258 12000 gdb_server.c:2101 gdb_input_inner(): The target is 
already running. Halt target before stepi/continue. 
 

Debug: 259 12022 cortex_a8.c:383 cortex_a8_poll(): Target halted 

Debug: 260 12023 cortex_a8.c:603 cortex_a8_debug_entry(): dscr = 
0x030f4003
Debug: 261 12030 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 262 12047 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee001e15
Debug: 263 12057 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee002e15
Debug: 264 12066 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee003e15
Debug: 265 12076 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee004e15
Debug: 266 12086 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee005e15
Debug: 267 12103 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee006e15
Debug: 268 12112 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee007e15
Debug: 269 12123 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee008e15
Debug: 270 12132 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee009e15
Debug: 271 12142 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ae15
Debug: 272 12158 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00be15
Debug: 273 12170 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ce15
Debug: 274 12179 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00de15
Debug: 275 12189 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ee15
Debug: 276 12205 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xe1a0000f
Debug: 277 12211 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 278 12221 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xe10f0000
Debug: 279 12227 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 280 12237 cortex_a8.c:654 cortex_a8_debug_entry(): cpsr: 
400001d3
Debug: 281 12237 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee110f10
Debug: 282 12243 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 283 12251 cortex_a8.c:732 cortex_a8_post_debug_entry(): 
cp15_control_reg: 00c5187a
Debug: 284 12251 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100f30
Debug: 285 12258 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 286 12268 target.c:829 target_call_event_callbacks(): target 
event 4 (early-halted)
Debug: 287 12268 target.c:829 target_call_event_callbacks(): target 
event 5 (halted)
User : 288 12268 target.c:1091 target_arch_state(): target state: 
halted
User : 289 12269 armv7a.c:207 armv7a_arch_state(): target halted in 
ARM state due to debug-request, current mode: Supervisor 
 

spsr_svc: 0x400001d3 pc: 0x80e88590 

MMU: disabled, D-Cache: disabled, I-Cache: enabled 

Debug: 290 12269 target.c:829 target_call_event_callbacks(): target 
event 10 (gdb-end)
Debug: 291 12269 target.c:829 target_call_event_callbacks(): target 
event 9 (gdb-start)
Debug: 292 12269 gdb_server.c:1341 gdb_step_continue_packet(): - 

Debug: 293 12269 gdb_server.c:1355 gdb_step_continue_packet(): 
continue
Debug: 294 12269 cortex_a8.c:529 cortex_a8_resume(): resume pc = 
0x80e88590
Debug: 295 12269 cortex_a8.c:844 cortex_a8_restore_context(): 

Debug: 296 12269 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 297 12272 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xe1a0f000
Debug: 298 12276 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 299 12284 target.c:829 target_call_event_callbacks(): target 
event 6 (resumed)
Debug: 300 12284 cortex_a8.c:573 cortex_a8_resume(): target resumed at 
0x80e88590
Debug: 301 13498 gdb_server.c:2047 gdb_input_inner(): received packet: 
''
Debug: 302 13585 cortex_a8.c:383 cortex_a8_poll(): Target halted 

Debug: 303 13585 cortex_a8.c:603 cortex_a8_debug_entry(): dscr = 
0x030f6003
Debug: 304 13591 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 305 13601 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee001e15
Debug: 306 13611 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee002e15
Debug: 307 13621 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee003e15
Debug: 308 13643 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee004e15
Debug: 309 13652 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee005e15
Debug: 310 13662 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee006e15
Debug: 311 13677 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee007e15
Debug: 312 13686 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee008e15
Debug: 313 13699 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee009e15
Debug: 314 13708 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ae15
Debug: 315 13716 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00be15
Debug: 316 13726 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ce15
Debug: 317 13738 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00de15
Debug: 318 13751 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ee15
Debug: 319 13760 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xe1a0000f
Debug: 320 13767 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 321 13776 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xe10f0000
Debug: 322 13783 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 323 13790 cortex_a8.c:654 cortex_a8_debug_entry(): cpsr: 
400001d3
Debug: 324 13790 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee110f10
Debug: 325 13794 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 326 13800 cortex_a8.c:732 cortex_a8_post_debug_entry(): 
cp15_control_reg: 00c5187a
Debug: 327 13800 target.c:829 target_call_event_callbacks(): target 
event 4 (early-halted)
Debug: 328 13806 target.c:829 target_call_event_callbacks(): target 
event 5 (halted)
Debug: 329 13806 target.c:829 target_call_event_callbacks(): target 
event 10 (gdb-end)
Debug: 330 13806 gdb_server.c:2047 gdb_input_inner(): received packet: 
'g'
Debug: 331 13806 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 332 13806 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 333 13806 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 334 13809 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e8858c,4'
Debug: 335 13809 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e8858c, len: 0x00000004
Debug: 336 13809 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e8858c
Debug: 337 13810 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 338 13810 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 339 13810 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 340 13812 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e8858c,4'
Debug: 341 13812 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e8858c, len: 0x00000004
Debug: 342 13812 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e8858c
Debug: 343 13815 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 344 13815 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 345 13815 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 346 13816 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 347 13816 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 348 13816 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 349 13819 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 350 13819 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 351 13819 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 352 17036 gdb_server.c:2047 gdb_input_inner(): received packet: 
'k'
Debug: 353 17038 gdb_server.c:807 gdb_connection_closed(): GDB Close, 
Target: omap3.cpu, state: halted, gdb_actual_connections=0 
 

Debug: 354 17038 target.c:829 target_call_event_callbacks(): target 
event 10 (gdb-end)
Debug: 355 17038 target.c:829 target_call_event_callbacks(): target 
event 27 (gdb-detach)
Info : 356 17039 server.c:442 server_loop(): dropped 'gdb' connection 
- error -400
-- cut --

Loading it a second time works fine then:

-- cut --
...
Info : 357 24796 server.c:79 add_connection(): accepting 'gdb' 
connection from 0
Debug: 358 24796 breakpoints.c:160 breakpoint_clear_target(): Delete 
all breakpoints for target: cortex_a8
Debug: 359 24796 breakpoints.c:287 watchpoint_clear_target(): Delete 
all watchpoints for target: cortex_a8
Debug: 360 24797 target.c:829 target_call_event_callbacks(): target 
event 26 (gdb-attach)
Debug: 361 24797 gdb_server.c:788 gdb_new_connection(): New GDB 
Connection: 1, Target omap3.cpu, state: halted 
 

Debug: 362 24797 gdb_server.c:2047 gdb_input_inner(): received packet: 
'qSupported'
Warn : 363 24797 gdb_server.c:582 gdb_get_packet_inner(): 
acknowledgment received, but no packet pending
Debug: 364 24797 gdb_server.c:2047 gdb_input_inner(): received packet: 
'?'
Debug: 365 24798 gdb_server.c:2047 gdb_input_inner(): received packet: 
'Hc-1'
Debug: 366 24798 gdb_server.c:2047 gdb_input_inner(): received packet: 
'qC'
Debug: 367 24798 gdb_server.c:2047 gdb_input_inner(): received packet: 
'Hg0'
Debug: 368 24798 gdb_server.c:2047 gdb_input_inner(): received packet: 
'g'
Debug: 369 24799 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 370 24799 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 371 24799 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 372 24801 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e8858c,4'
Debug: 373 24801 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e8858c, len: 0x00000004
Debug: 374 24801 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e8858c
Debug: 375 24807 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 376 24807 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 377 24807 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 378 24815 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e8858c,4'
Debug: 379 24815 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e8858c, len: 0x00000004
Debug: 380 24815 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e8858c
Debug: 381 24816 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 382 24816 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 383 24816 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 384 24818 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 385 24818 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 386 24818 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 387 24823 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm80e88590,4'
Debug: 388 24823 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x80e88590, len: 0x00000004
Debug: 389 24823 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x80e88590
Debug: 390 24824 gdb_server.c:2047 gdb_input_inner(): received packet: 
'qRcmd,6f6d6170335f646267696e6974'
Debug: 392 24830 command.c:68 script_debug(): command - poll 

Debug: 393 24830 command.c:77 script_debug(): poll - argv[0]=ocd_poll 

Debug: 394 24831 command.c:77 script_debug(): poll - argv[1]=off 

Debug: 396 24831 command.c:68 script_debug(): command - sleep 

Debug: 397 24831 command.c:77 script_debug(): sleep - 
argv[0]=ocd_sleep
Debug: 398 24831 command.c:77 script_debug(): sleep - argv[1]=100 

Debug: 400 24931 command.c:68 script_debug(): command - targets 

Debug: 401 24931 command.c:77 script_debug(): targets - 
argv[0]=ocd_targets
User : 402 24931 command.c:400 command_print():     TargetName 
  Type       Endian TapName            State 
 

User : 403 24932 command.c:400 command_print(): --  ------------------ 
---------- ------ ------------------ ------------ 
 

User : 404 24933 command.c:400 command_print():  0* omap3.cpu 
  cortex_a8  little omap3530.dap       halted 
 

Debug: 406 24933 command.c:68 script_debug(): command - dbginit 

Debug: 407 24933 command.c:77 script_debug(): dbginit - 
argv[0]=ocd_cortex_a8_dbginit
Debug: 408 24933 cortex_a8.c:131 cortex_a8_init_debug_access(): 

Debug: 409 24942 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 410 24946 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee070f35
Debug: 412 24953 command.c:68 script_debug(): command - poll 

Debug: 413 24953 command.c:77 script_debug(): poll - argv[0]=ocd_poll 

Debug: 414 24953 command.c:77 script_debug(): poll - argv[1]=on 

Debug: 415 24959 gdb_server.c:2045 gdb_input_inner(): received packet: 
'X82000000,0:<binary-data>'
Debug: 416 24959 gdb_server.c:2045 gdb_input_inner(): received packet: 
'X82000000,e0:<binary-data>'
Debug: 417 24959 gdb_server.c:1317 gdb_write_memory_binary_packet(): 
addr: 0x82000000, len: 0x000000e0
Debug: 418 24959 target.c:1108 target_write_buffer(): writing buffer 
of 224 byte at 0x82000000
Debug: 419 24969 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 420 24982 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee070f35
Debug: 421 24988 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 422 24995 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee070f35
Debug: 423 24998 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 424 25002 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee070f35
Debug: 425 25008 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 426 25012 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee070f35
Debug: 427 25019 gdb_server.c:2047 gdb_input_inner(): received packet: 
'Pf=00000082'
Debug: 428 25019 gdb_server.c:1086 gdb_set_register_packet(): - 

Debug: 429 25020 gdb_server.c:2047 gdb_input_inner(): received packet: 
'qSymbol::'
Debug: 430 25020 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 431 25020 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 432 25020 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 433 25022 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm81fffffc,4'
Debug: 434 25022 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x81fffffc, len: 0x00000004
Debug: 435 25022 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x81fffffc
Debug: 436 25027 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 437 25027 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 438 25027 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 439 25028 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm81fffffc,4'
Debug: 440 25028 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x81fffffc, len: 0x00000004
Debug: 441 25028 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x81fffffc
Debug: 442 25030 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 443 25030 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 444 25030 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 445 25039 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 446 25039 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 447 25039 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 448 25040 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000000,4'
Debug: 449 25040 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000000, len: 0x00000004
Debug: 450 25040 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000000
Debug: 451 28771 gdb_server.c:2047 gdb_input_inner(): received packet: 
'vCont?'
Debug: 452 28771 gdb_server.c:2047 gdb_input_inner(): received packet: 
'Hc0'
Debug: 453 28772 gdb_server.c:2047 gdb_input_inner(): received packet: 
'c'
Debug: 454 28772 target.c:829 target_call_event_callbacks(): target 
event 9 (gdb-start)
Debug: 455 28772 gdb_server.c:1341 gdb_step_continue_packet(): - 

Debug: 456 28772 gdb_server.c:1355 gdb_step_continue_packet(): 
continue
Debug: 457 28772 cortex_a8.c:529 cortex_a8_resume(): resume pc = 
0x82000000
Debug: 458 28772 cortex_a8.c:844 cortex_a8_restore_context(): 

Debug: 459 28773 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 460 28779 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xe1a0f000
Debug: 461 28798 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee100e15
Debug: 462 28808 target.c:829 target_call_event_callbacks(): target 
event 6 (resumed)
Debug: 463 28808 cortex_a8.c:573 cortex_a8_resume(): target resumed at 
0x82000000
Debug: 464 30692 gdb_server.c:2047 gdb_input_inner(): received packet: 
''
Debug: 465 30793 cortex_a8.c:383 cortex_a8_poll(): Target halted 

Debug: 466 30793 cortex_a8.c:603 cortex_a8_debug_entry(): dscr = 
0x030f6003
Debug: 467 30801 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 468 30822 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee001e15
Debug: 469 30838 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee002e15
Debug: 470 30856 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee003e15
Debug: 471 30873 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee004e15
Debug: 472 30885 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee005e15
Debug: 473 30906 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee006e15
Debug: 474 30917 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee007e15
Debug: 475 30932 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee008e15
Debug: 476 30947 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee009e15
Debug: 477 30957 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ae15
Debug: 478 30973 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00be15
Debug: 479 30987 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ce15
Debug: 480 30998 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00de15
Debug: 481 31013 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee00ee15
Debug: 482 31026 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xe1a0000f
Debug: 483 31029 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 484 31045 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xe10f0000
Debug: 485 31051 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 486 31061 cortex_a8.c:654 cortex_a8_debug_entry(): cpsr: 800001d3
Debug: 487 31061 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee110f10
Debug: 488 31067 cortex_a8.c:155 cortex_a8_exec_opcode(): exec opcode 
0xee000e15
Debug: 489 31075 cortex_a8.c:732 cortex_a8_post_debug_entry(): 
cp15_control_reg: 00c5187a
Debug: 490 31075 target.c:829 target_call_event_callbacks(): target 
event 4 (early-halted)
Debug: 491 31075 target.c:829 target_call_event_callbacks(): target 
event 5 (halted)
Debug: 492 31075 target.c:829 target_call_event_callbacks(): target 
event 10 (gdb-end)
Debug: 493 31076 gdb_server.c:2047 gdb_input_inner(): received packet: 'g'
Debug: 494 31076 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000044,4'
Debug: 495 31076 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000044, len: 0x00000004
Debug: 496 31076 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000044
Debug: 497 31077 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000040,4'
Debug: 498 31077 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000040, len: 0x00000004
Debug: 499 31077 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000040
Debug: 500 31083 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000044,4'
Debug: 501 31083 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000044, len: 0x00000004
Debug: 502 31083 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000044
Debug: 503 31083 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000040,4'
Debug: 504 31083 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000040, len: 0x00000004
Debug: 505 31083 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000040
Debug: 506 31085 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000044,4'
Debug: 507 31085 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000044, len: 0x00000004
Debug: 508 31085 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000044
Debug: 509 31092 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000044,4'
Debug: 510 31092 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000044, len: 0x00000004
Debug: 511 31092 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000044
Debug: 512 31094 gdb_server.c:2047 gdb_input_inner(): received packet: 
'm82000044,4'
Debug: 513 31094 gdb_server.c:1182 gdb_read_memory_packet(): addr: 
0x82000044, len: 0x00000004
Debug: 514 31094 target.c:1190 target_read_buffer(): reading buffer of 
4 byte at 0x82000044
-- cut --

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

Reply via email to