projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jtag/cmsis_dap: switch to command 'adapter serial'
[fw/openocd]
/
tcl
/
target
/
lpc3131.cfg
diff --git
a/tcl/target/lpc3131.cfg
b/tcl/target/lpc3131.cfg
index 5c6aa3ce869bccea7a5686f1405d1622b46bc521..89bbf0265fda0a4a45e53165b3c951f08297a8df 100644
(file)
--- a/
tcl/target/lpc3131.cfg
+++ b/
tcl/target/lpc3131.cfg
@@
-3,28
+3,28
@@
######################################
if { [info exists CHIPNAME] } {
######################################
if { [info exists CHIPNAME] } {
- set
_CHIPNAME $CHIPNAME
+ set _CHIPNAME $CHIPNAME
} else {
} else {
- set
_CHIPNAME lpc3131
+ set _CHIPNAME lpc3131
}
if { [info exists ENDIAN] } {
}
if { [info exists ENDIAN] } {
- set
_ENDIAN $ENDIAN
+ set _ENDIAN $ENDIAN
} else {
} else {
- set
_ENDIAN little
+ set _ENDIAN little
}
# ARM926EJS core
}
# ARM926EJS core
-if { [info exists CPUTAPID
] } {
+if { [info exists CPUTAPID] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x07926f0f
}
# Scan Tap
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x07926f0f
}
# Scan Tap
-# Wired to sep
erate STDO pin on the lpc3131, externally muxed to TDO on ea3131 module
+# Wired to sep
arate STDO pin on the lpc3131, externally muxed to TDO on ea3131 module
# JTAGSEL pin must be 0 to activate, which reassigns arm tdo to a pass through.
# JTAGSEL pin must be 0 to activate, which reassigns arm tdo to a pass through.
-if { [info exists SJCTAPID
] } {
+if { [info exists SJCTAPID] } {
set _SJCTAPID $SJCTAPID
} else {
set _SJCTAPID 0x1541E02B
set _SJCTAPID $SJCTAPID
} else {
set _SJCTAPID 0x1541E02B
@@
-52,11
+52,11
@@
dict set lpc313x wdt 0x13002400
# Target configuration
##################################################################
# Target configuration
##################################################################
-
jtag_nsrst_
delay 1000
+
adapter srst
delay 1000
jtag_ntrst_delay 0
set _TARGETNAME $_CHIPNAME.cpu
jtag_ntrst_delay 0
set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
+target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
$_TARGETNAME invoke-event halted
$_TARGETNAME invoke-event halted
@@
-66,7
+66,7
@@
$_TARGETNAME configure -event reset-init {
echo "\nRunning reset init script for LPC3131\n"
halt
wait_halt
echo "\nRunning reset init script for LPC3131\n"
halt
wait_halt
- reg cpsr 0xa00000d3 #Supervisor mode
+ reg cpsr 0xa00000d3
;
#Supervisor mode
reg pc 0x11029000
poll
sleep 500
reg pc 0x11029000
poll
sleep 500