cfg: Don't check BS TAP IDCODE in STM32 configs
Instead of updating these regularly we can just accept any IDCODE for the boundary scan TAP. The only downside might be that it's not immediately obvious if you source a config for the wrong type of STM32. Change-Id: I96d4d81699a491b3a46de3f0d3fd078ffddad4e4 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/3385 Tested-by: jenkins
This commit is contained in:
committed by
Freddie Chopin
parent
058ed7a43f
commit
d3445cd146
@@ -50,27 +50,8 @@ if { [info exists CPUTAPID] } {
|
||||
|
||||
swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
||||
|
||||
if { [info exists BSTAPID] } {
|
||||
set _BSTAPID $BSTAPID
|
||||
} else {
|
||||
# STM Document RM0316 rev 5 for STM32F302/303 B/C size
|
||||
set _BSTAPID1 0x06422041
|
||||
# STM Document RM0313 rev 3 for STM32F37x
|
||||
set _BSTAPID2 0x06432041
|
||||
# STM Document RM364 rev 1 for STM32F334
|
||||
set _BSTAPID3 0x06438041
|
||||
# STM Document RM316 rev 5 for STM32F303 6/8 size
|
||||
# STM Document RM365 rev 3 for STM32F302 6/8 size
|
||||
# STM Document RM366 rev 2 for STM32F301 6/8 size
|
||||
set _BSTAPID4 0x06439041
|
||||
# STM Document RM016 rev 5 for STM32F303 D/E size
|
||||
set _BSTAPID5 0x06446041
|
||||
}
|
||||
|
||||
if {[using_jtag]} {
|
||||
swj_newdap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1 \
|
||||
-expected-id $_BSTAPID2 -expected-id $_BSTAPID3 \
|
||||
-expected-id $_BSTAPID4 -expected-id $_BSTAPID5
|
||||
jtag newtap $_CHIPNAME bs -irlen 5
|
||||
}
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
|
||||
Reference in New Issue
Block a user