<?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=Aduc702x.cfg&amp;feed=atom&amp;action=history</id>
		<title>Aduc702x.cfg - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=Aduc702x.cfg&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Aduc702x.cfg&amp;action=history"/>
		<updated>2013-05-21T08:09:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=Aduc702x.cfg&amp;diff=127700&amp;oldid=prev</id>
		<title>Wmat: board cfg</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Aduc702x.cfg&amp;diff=127700&amp;oldid=prev"/>
				<updated>2012-05-08T18:18:24Z</updated>
		
		<summary type="html">&lt;p&gt;board 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;
if { [info exists CHIPNAME] } {&lt;br /&gt;
   set _CHIPNAME $CHIPNAME&lt;br /&gt;
} else {&lt;br /&gt;
   set _CHIPNAME aduc702x&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
if { [info exists ENDIAN] } {&lt;br /&gt;
   set _ENDIAN $ENDIAN&lt;br /&gt;
} else {&lt;br /&gt;
   # This config file was defaulting to big endian..&lt;br /&gt;
   set _ENDIAN little&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
if { [info exists CPUTAPID] } {&lt;br /&gt;
   set _CPUTAPID $CPUTAPID&lt;br /&gt;
} else {&lt;br /&gt;
   set _CPUTAPID 0x3f0f0f0f&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
adapter_nsrst_delay 200&lt;br /&gt;
jtag_ntrst_delay 200&lt;br /&gt;
&lt;br /&gt;
## JTAG scan chain&lt;br /&gt;
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)&lt;br /&gt;
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID&lt;br /&gt;
&lt;br /&gt;
##&lt;br /&gt;
## Target configuration&lt;br /&gt;
##&lt;br /&gt;
set _TARGETNAME $_CHIPNAME.cpu&lt;br /&gt;
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME&lt;br /&gt;
&lt;br /&gt;
# allocate the entire SRAM as working area&lt;br /&gt;
$_TARGETNAME configure -work-area-phys 0x10000 -work-area-size 0x2000&lt;br /&gt;
&lt;br /&gt;
## flash configuration&lt;br /&gt;
# only target number is needed&lt;br /&gt;
set _FLASHNAME $_CHIPNAME.flash&lt;br /&gt;
flash bank $_FLASHNAME aduc702x 0 0 0 0 $_TARGETNAME&lt;br /&gt;
&lt;br /&gt;
## If you use the watchdog, the following code makes sure that the board&lt;br /&gt;
## doesn't reboot when halted via JTAG.  Yes, on the older generation&lt;br /&gt;
## AdUC702x, timer3 continues running even when the CPU is halted.&lt;br /&gt;
&lt;br /&gt;
proc watchdog_service {} {&lt;br /&gt;
    global watchdog_hdl&lt;br /&gt;
    mww 0xffff036c 0&lt;br /&gt;
#    echo &amp;quot;watchdog!!&amp;quot;&lt;br /&gt;
    set watchdog_hdl [after 500 watchdog_service]&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$_TARGETNAME configure -event reset-halt-post {  watchdog_service }&lt;br /&gt;
$_TARGETNAME configure -event old-pre_resume { global watchdog_hdl; after cancel $watchdog_hdl }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:OpenOCD]]&lt;br /&gt;
[[Category:Debugging]]&lt;/div&gt;</summary>
		<author><name>Wmat</name></author>	</entry>

	</feed>