David Brownell wrote:
Update the Beagle setup:
- OMAP3530 updates:
* split ICEpick TAP enable support to its own file, for
reuse and eventually for storing other utility code
like emulation reset
* clean up, including labeling the tap as for DAP not
for the Cortex-A8 and making endianness non-variable
* add a few FIXMEs
- BeagleBoard cleanup: there's no SRST, "endstate" is gone, etc
I'm not sure I'd say it's further than "barely limping" just yet.
Key issues remain lack of Cortex-A8 support, and more complete
support for resetting ... including needing 100 TCK cycles.
---
tcl/board/ti_beagleboard.cfg | 15 ++-----
tcl/target/icepick.cfg | 23 ++++++++++++
tcl/target/omap3530.cfg | 77 +++++++++++++++++++++++------------------
3 files changed, 72 insertions(+), 43 deletions(-)
Seems to work :) THANKS!!
For the archives, what I did:
SVN revision 2291 with a minor patch from Dave, see attachment.
-- cut --
> openocd -s lib/openocd/ -f interface/flyswatter.cfg -f
board/ti_beagleboard.cfg
Open On-Chip Debugger 0.2.0-in-development (2009-06-19-20:03) svn:2291M
BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
jtag_speed: 1
Warn : huge IR length 38
Info : JTAG tap: omap3530.jrc tap/device found: 0x0b7ae02f (mfg:
0x017, part: 0xb7ae, ver: 0x0)
Info : JTAG Tap/device matched
-- cut --
-- cut --
> telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> omap3_dbginit
JTAG tap: omap3530.jrc tap/device found: 0x0b7ae02f (mfg: 0x017, part:
0xb7ae, ver: 0x0)
JTAG Tap/device matched
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* omap3.cpu cortex_m3 little omap3530.dap reset
0x54011314 00000003 ....
0x54011314 00000001 ....
> scan_chain
TapName | Enabled | IdCode Expected IrLen
IrCap IrMask Instr
---|--------------------|---------|------------|------------|------|------|------|---------
0 | omap3530.dsp | n | 0x00000000 | 0x00000000 | 0x26 |
0x25 | 0x3f | 0xffffffff
1 | omap3530.dap | Y | 0x00000000 | 0x0b6d602f | 0x04 |
0x01 | 0x0f | 0x0a
2 | omap3530.jrc | Y | 0x0b7ae02f | 0x0b7ae02f | 0x06 |
0x01 | 0x3f | 0x3f
>
-- cut --
Appended is the TCK patch I'm using. Without it ... nothing
detected on Beagle, even after resetting. With it ... nothing detected
on "openocd" startup, but after "reset" command it came up with the
expected JTAG id.
I don't consider this patch worth merging. What merges should work
right from server startup.
- Dave
---
src/jtag/core.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -458,6 +458,10 @@ void jtag_add_tlr(void)
{
jtag_prelude(TAP_RESET);
jtag_set_error(interface_jtag_add_tlr());
+ /* Add a bunch of clocks after TLR entry to be sure ICEpick
+ * power domain switches on.
+ */
+ jtag_set_error(interface_jtag_add_runtest(100, TAP_RESET));
jtag_call_event_callbacks(JTAG_TRST_ASSERTED);
}
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development