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