summaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorLuca Ellero <lroluk@gmail.com>2011-02-17 20:51:32 +0000
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-02-18 08:08:31 +0100
commit578294dbdd93ab79a6ecc1561c52a974d1b588af (patch)
tree0fc0d52f80f4fed5a516c73e98284407d9b5c801 /tcl
parentfa93174a56c0aca1201bebf88795d6fe31c18aa1 (diff)
downloadopenocd_libswd-578294dbdd93ab79a6ecc1561c52a974d1b588af.tar.gz
openocd_libswd-578294dbdd93ab79a6ecc1561c52a974d1b588af.tar.bz2
openocd_libswd-578294dbdd93ab79a6ecc1561c52a974d1b588af.tar.xz
openocd_libswd-578294dbdd93ab79a6ecc1561c52a974d1b588af.zip
stm32: add ID for medium density device Rev Z
stm32-discovery evaluation board (STM32F100RBTB6): reading device id register (0xE0042000) returns 0x10010420 Signed-off-by: Luca Ellero <lroluk@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/stm32.cfg9
1 files changed, 5 insertions, 4 deletions
diff --git a/tcl/target/stm32.cfg b/tcl/target/stm32.cfg
index eef12699..9879c045 100644
--- a/tcl/target/stm32.cfg
+++ b/tcl/target/stm32.cfg
@@ -48,17 +48,18 @@ if { [info exists BSTAPID ] } {
set _BSTAPID2 0x06410041
# Medium density devices, Rev B and Rev Z
set _BSTAPID3 0x16410041
+ set _BSTAPID4 0x06420041
# High density devices, Rev A
- set _BSTAPID4 0x06414041
+ set _BSTAPID5 0x06414041
# Connectivity line devices, Rev A and Rev Z
- set _BSTAPID5 0x06418041
+ set _BSTAPID6 0x06418041
# XL line devices, Rev A
- set _BSTAPID6 0x06430041
+ set _BSTAPID7 0x06430041
}
jtag newtap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1 \
-expected-id $_BSTAPID2 -expected-id $_BSTAPID3 \
-expected-id $_BSTAPID4 -expected-id $_BSTAPID5 \
- -expected-id $_BSTAPID6
+ -expected-id $_BSTAPID6 -expected-id $_BSTAPID7
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME