<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/index.php?title=Omap3530.cfg&amp;feed=atom&amp;action=history</id>
		<title>Omap3530.cfg - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=Omap3530.cfg&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Omap3530.cfg&amp;action=history"/>
		<updated>2013-06-19T09:52:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.22alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=Omap3530.cfg&amp;diff=127652&amp;oldid=prev</id>
		<title>Wmat: omap3530.cfg</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Omap3530.cfg&amp;diff=127652&amp;oldid=prev"/>
				<updated>2012-05-08T15:50:27Z</updated>
		
		<summary type="html">&lt;p&gt;omap3530.cfg&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight code=&amp;quot;tcl&amp;quot;&amp;gt;&lt;br /&gt;
# TI OMAP3530&lt;br /&gt;
# http://focus.ti.com/docs/prod/folders/print/omap3530.html&lt;br /&gt;
# Other OMAP3 chips remove DSP and/or the OpenGL support&lt;br /&gt;
&lt;br /&gt;
if { [info exists CHIPNAME] } {&lt;br /&gt;
   set _CHIPNAME $CHIPNAME&lt;br /&gt;
} else {&lt;br /&gt;
   set _CHIPNAME omap3530&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# ICEpick-C ... used to route Cortex, DSP, and more not shown here&lt;br /&gt;
source [find target/icepick.cfg]&lt;br /&gt;
&lt;br /&gt;
# Subsidiary TAP: C64x+ DSP ... must enable via ICEpick&lt;br /&gt;
jtag newtap $_CHIPNAME dsp -irlen 38 -ircapture 0x25 -irmask 0x3f -disable&lt;br /&gt;
&lt;br /&gt;
# Subsidiary TAP: CoreSight Debug Access Port (DAP)&lt;br /&gt;
if { [info exists DAP_TAPID] } {&lt;br /&gt;
   set _DAP_TAPID $DAP_TAPID&lt;br /&gt;
} else {&lt;br /&gt;
   set _DAP_TAPID 0x0b6d602f&lt;br /&gt;
}&lt;br /&gt;
jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf \&lt;br /&gt;
	-expected-id $_DAP_TAPID -disable&lt;br /&gt;
jtag configure $_CHIPNAME.dap -event tap-enable \&lt;br /&gt;
	&amp;quot;icepick_c_tapenable $_CHIPNAME.jrc 3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Primary TAP: ICEpick-C (JTAG route controller) and boundary scan&lt;br /&gt;
if { [info exists JRC_TAPID] } {&lt;br /&gt;
   set _JRC_TAPID $JRC_TAPID&lt;br /&gt;
} else {&lt;br /&gt;
   set _JRC_TAPID 0x0b7ae02f&lt;br /&gt;
}&lt;br /&gt;
jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0x3f \&lt;br /&gt;
	-expected-id $_JRC_TAPID&lt;br /&gt;
&lt;br /&gt;
# GDB target: Cortex-A8, using DAP&lt;br /&gt;
set _TARGETNAME $_CHIPNAME.cpu&lt;br /&gt;
target create $_TARGETNAME cortex_a8 -chain-position $_CHIPNAME.dap&lt;br /&gt;
&lt;br /&gt;
# SRAM: 64K at 0x4020.0000; use the first 16K&lt;br /&gt;
$_TARGETNAME configure -work-area-phys 0x40200000 -work-area-size 0x4000&lt;br /&gt;
&lt;br /&gt;
###################&lt;br /&gt;
&lt;br /&gt;
# the reset sequence is event-driven&lt;br /&gt;
# and kind of finicky...&lt;br /&gt;
&lt;br /&gt;
# some TCK tycles are required to activate the DEBUG power domain&lt;br /&gt;
jtag configure $_CHIPNAME.jrc -event post-reset &amp;quot;runtest 100&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# have the DAP &amp;quot;always&amp;quot; be active&lt;br /&gt;
jtag configure $_CHIPNAME.jrc -event setup &amp;quot;jtag tapenable $_CHIPNAME.dap&amp;quot;&lt;br /&gt;
&lt;br /&gt;
proc omap3_dbginit {target} {&lt;br /&gt;
     # General Cortex A8 debug initialisation&lt;br /&gt;
     cortex_a8 dbginit&lt;br /&gt;
     # Enable DBGU signal for OMAP353x&lt;br /&gt;
     $target mww phys 0x5401d030 0x00002000&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# be absolutely certain the JTAG clock will work with the worst-case&lt;br /&gt;
# 16.8MHz/2 = 8.4MHz core clock, even before a bootloader kicks in.&lt;br /&gt;
# OK to speed up *after* PLL and clock tree setup.&lt;br /&gt;
jtag_rclk 1000&lt;br /&gt;
$_TARGETNAME configure -event &amp;quot;reset-start&amp;quot; { jtag_rclk 1000 }&lt;br /&gt;
&lt;br /&gt;
# Assume SRST is unavailable (e.g. TI-14 JTAG), so we must assert reset&lt;br /&gt;
# ourselves using PRM_RSTCTRL.  RST_GS (2) is a warm reset, like ICEpick&lt;br /&gt;
# would issue.  RST_DPLL3 (4) is a cold reset.&lt;br /&gt;
set PRM_RSTCTRL 0x48307250&lt;br /&gt;
$_TARGETNAME configure -event reset-assert &amp;quot;$_TARGETNAME mww $PRM_RSTCTRL 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
$_TARGETNAME configure -event reset-assert-post &amp;quot;omap3_dbginit $_TARGETNAME&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:OpenOCD]]&lt;br /&gt;
[[Category:Debugging]]&lt;br /&gt;
[[Category:TinCanTools]]&lt;/div&gt;</summary>
		<author><name>Wmat</name></author>	</entry>

	</feed>