projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tcl/target: replace event trace-config
[fw/openocd]
/
tcl
/
target
/
stm32f4x.cfg
diff --git
a/tcl/target/stm32f4x.cfg
b/tcl/target/stm32f4x.cfg
index 5be0cf505b2952e17617496b5a5dd0b40d150f45..befd28863410264f02bba4a7aa098d7bebc4b1d0 100644
(file)
--- a/
tcl/target/stm32f4x.cfg
+++ b/
tcl/target/stm32f4x.cfg
@@
-40,8
+40,6
@@
if { [info exists CPUTAPID] } {
swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
-tpiu create $_CHIPNAME.tpiu -dap $_CHIPNAME.dap -ap-num 0 -baseaddr 0xE0040000
-
if {[using_jtag]} {
jtag newtap $_CHIPNAME bs -irlen 5
}
if {[using_jtag]} {
jtag newtap $_CHIPNAME bs -irlen 5
}
@@
-93,7
+91,10
@@
$_TARGETNAME configure -event examine-end {
mmw 0xE0042008 0x00001800 0
}
mmw 0xE0042008 0x00001800 0
}
-proc proc_post_enable {_chipname} {
+tpiu create $_CHIPNAME.tpiu -dap $_CHIPNAME.dap -ap-num 0 -baseaddr 0xE0040000
+
+lappend _telnet_autocomplete_skip _proc_pre_enable_$_CHIPNAME.tpiu
+proc _proc_pre_enable_$_CHIPNAME.tpiu {_chipname} {
targets $_chipname.cpu
if { [$_chipname.tpiu cget -protocol] eq "sync" } {
targets $_chipname.cpu
if { [$_chipname.tpiu cget -protocol] eq "sync" } {
@@
-122,7
+123,7
@@
proc proc_post_enable {_chipname} {
}
}
}
}
-$_CHIPNAME.tpiu configure -event p
ost-enable "proc_post_enable
$_CHIPNAME"
+$_CHIPNAME.tpiu configure -event p
re-enable "_proc_pre_enable_$_CHIPNAME.tpiu
$_CHIPNAME"
$_TARGETNAME configure -event reset-init {
# Configure PLL to boost clock to HSI x 4 (64 MHz)
$_TARGETNAME configure -event reset-init {
# Configure PLL to boost clock to HSI x 4 (64 MHz)