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 |
From: Duane E. <op...@du...> - 2008-12-04 00:54:07
|
dswei wrote> [pxa270 - I can change cpu regs, not memory, target is in USER mode] Question #1 - Did this work with an older version of OpenOCD or is this the first time you used this? Question #2 - Maybe UBOOT is turning the CPU cache on and configuring the MMU in some special way? Maybe below describes the problem? For example - maybe UBOOT has configured virtual memory to be *NOT*PRESENT* at location 0 (and others). I do not know if there is a "virt-phys" translation command for the pxa270. :-( I do not have a pxa270 platform to test with sorry. -Duane. |
From: Sergey L. <sla...@gm...> - 2009-02-22 00:52:39
|
I have the same kind of problem on Colibri PXA270 module, with different b/l so I'll add a bit. On Thu, Dec 4, 2008 at 2:53 AM, Duane Ellis <op...@du...> wrote: > dswei wrote> [pxa270 - I can change cpu regs, not memory, target is in > USER mode] > > > Question #2 - Maybe UBOOT is turning the CPU cache on and configuring > the MMU in some special way? No, eboot and u-boot do not configure anything regarding MMU. CPU cache is probably turned on somehow, though, but there's no indication regarding this. > > Maybe below describes the problem? > > For example - maybe UBOOT has configured virtual memory to be > *NOT*PRESENT* at location 0 (and others). both u-boot and eboot think in terms of physical memory and never touch MMU. I can test anything which could help somehow to resolve PXA270 problems |
From: Kaius H. <ka...@ol...> - 2010-04-14 16:10:44
|
Hello. I'm having this same problem with Colibri PXA320, Amontec jtagkey-tiny and latest openocd pulled down from git (patched with openpxa PXA320 patches). Was this issue ever solved? ~kaius |
From: Øyvind H. <oyv...@zy...> - 2010-04-14 16:17:06
|
On Wed, Apr 14, 2010 at 4:01 PM, Kaius Häggblom <ka...@ol...> wrote: > Hello. > > I'm having this same problem with Colibri PXA320, Amontec jtagkey-tiny and > latest openocd pulled down from git (patched with openpxa PXA320 patches). > Hmm... why aren't these patches posted and discussed here? Seems like something that should be merged, no? -- Meet Zylin at ESC 2010 San Jose April 26 - 30. 2010 http://www.zylin.com/events_esc2010.html Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer |
From: Øyvind H. <oyv...@zy...> - 2010-04-14 17:16:17
|
I would strongly encourage someone who's familiar with these patches to repost them to this list so we can work on getting the changes merged. Should be in that projects and OpenOCD's interest... -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer |
From: Kaius H. <ka...@ol...> - 2010-04-15 14:34:21
Attachments:
openocd.log
|
The attached trace was produced by starting program: ./src/openocd -s tcl -f board/colibri_pxa320.cfg -f nterface/jtagkey.cfg -d 3 -l openocd.lo ... and issuing following commands through telnet client: > reg > reset halt > reg cpsr 0xd3 > reset halt Exactly as in original post with this issue on PXA270, writing and reading regs work OK, but anything else fails. ~kaius yvind Harboe wrote: > I would strongly encourage someone who's familiar with these patches > to repost them to this list so we can work on getting the changes merged. > > Should be in that projects and OpenOCD's interest... > |
From: Kaius H. <ka...@ol...> - 2010-04-16 09:45:07
|
The JTAGkey-tiny dongle and board work OK, I have now successfully used the ColibriLoader software to download images to the board. ~kaius Kaius Häggblom wrote: > > The attached trace was produced by starting program: > ./src/openocd -s tcl -f board/colibri_pxa320.cfg -f nterface/jtagkey.cfg > -d 3 -l openocd.lo > > ... and issuing following commands through telnet client: > > > reg > > reset halt > > reg cpsr 0xd3 > > reset halt > > Exactly as in original post with this issue on PXA270, writing and > reading regs work OK, but anything else fails. > > ~kaius > > > yvind Harboe wrote: >> I would strongly encourage someone who's familiar with these patches >> to repost them to this list so we can work on getting the changes merged. >> >> Should be in that projects and OpenOCD's interest... >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Openocd-development mailing list > Ope...@li... > https://lists.berlios.de/mailman/listinfo/openocd-development |
From: Marek V. <mar...@gm...> - 2010-04-19 14:05:10
|
Dne Pá 16. dubna 2010 09:45:09 Kaius Häggblom napsal(a): > The JTAGkey-tiny dongle and board work OK, I have now successfully used > the ColibriLoader software to download images to the board. > > ~kaius Hey, firstly, please stop top-posting (aka post below the email you are replying to or into it if you have comments to specific stuff). > > Kaius Häggblom wrote: > > The attached trace was produced by starting program: > > ./src/openocd -s tcl -f board/colibri_pxa320.cfg -f nterface/jtagkey.cfg > > > > -d 3 -l openocd.lo > > > > ... and issuing following commands through telnet client: > > > reg > > > reset halt > > > reg cpsr 0xd3 > > > reset halt > > > > Exactly as in original post with this issue on PXA270, writing and > > reading regs work OK, but anything else fails. > > > > ~kaius > > > > yvind Harboe wrote: > >> I would strongly encourage someone who's familiar with these patches > >> to repost them to this list so we can work on getting the changes > >> merged. > >> > >> Should be in that projects and OpenOCD's interest... > > > > ------------------------------------------------------------------------ Ok, about this issue, I noticed weird stuff: My JTAGKey clone (FT2232 based with 74HC125 buffer and therefore 5V IO) works with: PXA320 Toradex Colibri board -- the board moreover has an internal buffer logic between the JTAG pins and the CPU PXA310 Marvell Littleton board -- the board has the JTAG pins connected directly to the CPU PXA270 Voipac board -- Directly connected too And it doesn't work with the same problems on PXA270 ZipitZ2 board. The only difference here from the Voipac board is the missing nSRST pin. Interestingly though, urJTAG works with this board with the same JTAG dongle. So it puzzles me whether it's a hardware or software issue. Cheers! |