forked from auracaster/openocd
target: stm32c0x: drop swj on swd only target
The datasheets for all STM32C0xx devices report that only SWD is supported. No TDI/TDO pin is present. Drop swj support. Add swd transport. Remove swd transport from the associated board files. Change-Id: If6e630858aa64fbb3938a520604748f3f0ff7356 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9423 Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-by: Ahmed Haoues <ahmed.haoues@st.com> Tested-by: jenkins
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
source [find interface/stlink.cfg]
|
||||
|
||||
transport select swd
|
||||
|
||||
source [find target/stm32c0x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#
|
||||
# stm32c0 devices support SWD transports only.
|
||||
#
|
||||
transport select swd
|
||||
|
||||
source [find target/swj-dp.tcl]
|
||||
source [find mem_helper.tcl]
|
||||
|
||||
if { [info exists CHIPNAME] } {
|
||||
@@ -32,7 +32,7 @@ if { [info exists CPUTAPID] } {
|
||||
set _CPUTAPID 0x0bc11477
|
||||
}
|
||||
|
||||
swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
||||
swd newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
|
||||
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
|
||||
Reference in New Issue
Block a user