From: dswei <ds...@si...> - 2008-12-03 17:51:43
|
Hi, all. I have checkout the latest openocd today, and use it on PXA270. 1. There is u-boot on the board , when I connect it with openocd and reset it, it is halted with pc equal to 0, and in User mode. 2. I can use the command 'reg cpsr 0xd3' to force it enter Supervisor 3. Both in user mode and Supervisor mode, I can use the 'reg' command to read/write the core registers. 4. But if I use 'mdw' to display the memeoty(address is 0 or 0x5c000000, or 0x48000000) , it is failed. Why I can read/write the core registers, but can't read/write the memory and registers of the devices? The log is below: target halted in ARM state due to target-not-halted, current mode: User cpsr: 0x00000000 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled > reg cpsr 0xd3 cpsr (/32): 0x000000d3 > poll target state: halted target halted in ARM state due to target-not-halted, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled > mdw 0x48000000 TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX Runtime error, file "command.c", line 448: > > > poll target state: halted target halted in ARM state due to target-not-halted, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled > reset JTAG tap: pxa270.cpu tap/device found: 0x79265013 (Manufacturer: 0x009, Part: 0x 9265, Version: 0x7) JTAG Tap/device matched TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x07 in_handler reported a failed check JTAG error while writing DCSR TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x7f in_handler reported a failed check TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x07 in_handler reported a failed check JTAG error while writing DCSR TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x7f in_handler reported a failed check BUG: keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1453) TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x7f in_handler reported a failed check TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x07 in_handler reported a failed check JTAG error while writing DCSR TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x07 in_handler reported a failed check JTAG error while writing DCSR TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x07 in_handler reported a failed check JTAG error while reading DCSR TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x7f in_handler reported a failed check TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x7f in_handler reported a failed check TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x7f in_handler reported a failed check TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while writing RX BUG: keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (2313) TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x7f in_handler reported a failed check TAP pxa270.cpu: value captured during scan didn't pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06 in_handler reported a failed check JTAG error while reading TX error while polling TX register, reset CPU target state: halted target halted in ARM state due to target-not-halted, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled > > > poll target state: halted target halted in ARM state due to target-not-halted, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled > > > > > reg (0) r0 (/32): 0x00000000 (dirty: 0, valid: 0) (1) r1 (/32): 0x00000000 (dirty: 0, valid: 0) (2) r2 (/32): 0x00000000 (dirty: 0, valid: 0) (3) r3 (/32): 0x00000000 (dirty: 0, valid: 0) (4) r4 (/32): 0x00000000 (dirty: 0, valid: 0) (5) r5 (/32): 0x00000000 (dirty: 0, valid: 0) (6) r6 (/32): 0x00000000 (dirty: 0, valid: 0) (7) r7 (/32): 0x00000000 (dirty: 0, valid: 0) (8) r8 (/32): 0x00000000 (dirty: 0, valid: 0) (9) r9 (/32): 0x00000000 (dirty: 0, valid: 0) (10) r10 (/32): 0x00000000 (dirty: 0, valid: 0) (11) r11 (/32): 0x00000000 (dirty: 0, valid: 0) (12) r12 (/32): 0x00000000 (dirty: 0, valid: 0) (13) r13_usr (/32): 0x00000000 (dirty: 0, valid: 0) (14) lr_usr (/32): 0x00000000 (dirty: 0, valid: 0) (15) pc (/32): 0x00000000 (dirty: 0, valid: 0) (16) r8_fiq (/32): 0x00000000 (dirty: 0, valid: 0) (17) r9_fiq (/32): 0x00000000 (dirty: 0, valid: 0) (18) r10_fiq (/32): 0x00000000 (dirty: 0, valid: 0) (19) r11_fiq (/32): 0x00000000 (dirty: 0, valid: 0) (20) r12_fiq (/32): 0x00000000 (dirty: 0, valid: 0) (21) r13_fiq (/32): 0x00000000 (dirty: 0, valid: 0) (22) lr_fiq (/32): 0x00000000 (dirty: 0, valid: 0) (23) r13_irq (/32): 0x00000000 (dirty: 0, valid: 0) (24) lr_irq (/32): 0x00000000 (dirty: 0, valid: 0) (25) r13_svc (/32): 0x00000000 (dirty: 0, valid: 0) (26) lr_svc (/32): 0x00000000 (dirty: 0, valid: 0) (27) r13_abt (/32): 0x00000000 (dirty: 0, valid: 0) (28) lr_abt (/32): 0x00000000 (dirty: 0, valid: 0) (29) r13_und (/32): 0x00000000 (dirty: 0, valid: 0) (30) lr_und (/32): 0x00000000 (dirty: 0, valid: 0) (31) cpsr (/32): 0x000000d3 (dirty: 0, valid: 0) (32) spsr_fiq (/32): 0x00000000 (dirty: 0, valid: 0) (33) spsr_irq (/32): 0x00000000 (dirty: 0, valid: 0) (34) spsr_svc (/32): 0x00000000 (dirty: 0, valid: 0) (35) spsr_abt (/32): 0x00000000 (dirty: 0, valid: 0) (36) spsr_und (/32): 0x00000000 (dirty: 0, valid: 0) (37) XSCALE_MAINID (/32): 0x00000000 (dirty: 0, valid: 0) (38) XSCALE_CACHETYPE (/32): 0x00000000 (dirty: 0, valid: 0) (39) XSCALE_CTRL (/32): 0x00000000 (dirty: 0, valid: 0) (40) XSCALE_AUXCTRL (/32): 0x00000000 (dirty: 0, valid: 0) (41) XSCALE_TTB (/32): 0x00000000 (dirty: 0, valid: 0) (42) XSCALE_DAC (/32): 0x00000000 (dirty: 0, valid: 0) (43) XSCALE_FSR (/32): 0x00000000 (dirty: 0, valid: 0) (44) XSCALE_FAR (/32): 0x00000000 (dirty: 0, valid: 0) (45) XSCALE_PID (/32): 0x00000000 (dirty: 0, valid: 0) (46) XSCALE_CPACCESS (/32): 0x00000000 (dirty: 0, valid: 0) (47) XSCALE_IBCR0 (/32): 0x00000000 (dirty: 0, valid: 0) (48) XSCALE_IBCR1 (/32): 0x00000000 (dirty: 0, valid: 0) (49) XSCALE_DBR0 (/32): 0x00000000 (dirty: 0, valid: 0) (50) XSCALE_DBR1 (/32): 0x00000000 (dirty: 0, valid: 0) (51) XSCALE_DBCON (/32): 0x00000000 (dirty: 0, valid: 0) (52) XSCALE_TBREG (/32): 0x00000000 (dirty: 0, valid: 0) (53) XSCALE_CHKPT0 (/32): 0x00000000 (dirty: 0, valid: 0) (54) XSCALE_CHKPT1 (/32): 0x00000000 (dirty: 0, valid: 0) (55) XSCALE_DCSR (/32): 0x00000000 (dirty: 0, valid: 0) (56) XSCALE_TX (/32): 0x00000000 (dirty: 0, valid: 0) (57) XSCALE_RX (/32): 0x00000000 (dirty: 0, valid: 0) (58) XSCALE_TXRXCTRL (/32): 0x00000000 (dirty: 0, valid: 0) > > > dswei ds...@si... 2008-12-04 |