aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-04-20 17:29:46 +0200
committerFreddie Chopin <freddie.chopin@gmail.com>2013-04-21 07:19:35 +0000
commit79d6d3cda90c6694343bde909978069994049ab7 (patch)
tree3173f8d4d08458d798d42b417dd30b2006963dec
parent9695564e6321b24edfc03cac555a914dcc7154f6 (diff)
stm32f30x: Add boundary scan TAP ID to match silicon
Change-Id: I74ef3cfc437540aedd99da46ac3e0c6cd9c5cd8d Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1354 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
-rw-r--r--tcl/target/stm32f3x.cfg9
1 files changed, 5 insertions, 4 deletions
diff --git a/tcl/target/stm32f3x.cfg b/tcl/target/stm32f3x.cfg
index 1f051434..31993ff8 100644
--- a/tcl/target/stm32f3x.cfg
+++ b/tcl/target/stm32f3x.cfg
@@ -44,11 +44,12 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
if { [info exists BSTAPID] } {
set _BSTAPID $BSTAPID
} else {
- # See STM Document RM0316
- # Section 29.6.2
- set _BSTAPID 0x06432041
+ # STM Document RM0316 rev 2 Section 30.6.2 says 0x06432041
+ # but STM32F303VCT6 rev Y has 0x06422041
+ set _BSTAPID1 0x06422041
+ set _BSTAPID2 0x06432041
}
-jtag newtap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID
+jtag newtap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1 -expected-id $_BSTAPID2
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME