tcl/target/klx, ke0x: drop swj on swd only targets
Historically swj_newdap was necessary to handle HLA properly.
Since commit 60f104f450 ("hla_transport: split command
registration per transport") there is no point in using
swj_newdap on SWD only devices.
No board files referring these targets select swd transport.
Change-Id: I002ce7029936f56b1d8b41505bca8dc771c33187
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/9434
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
2374db956b
commit
a7d31c87e1
@@ -3,8 +3,8 @@
|
|||||||
#
|
#
|
||||||
# Freescale Kinetis KE0x and KEAx series devices
|
# Freescale Kinetis KE0x and KEAx series devices
|
||||||
#
|
#
|
||||||
|
# Devices support SWD transport only
|
||||||
source [find target/swj-dp.tcl]
|
transport select swd
|
||||||
|
|
||||||
if { [info exists CHIPNAME] } {
|
if { [info exists CHIPNAME] } {
|
||||||
set _CHIPNAME $CHIPNAME
|
set _CHIPNAME $CHIPNAME
|
||||||
@@ -26,7 +26,7 @@ if { [info exists CPUTAPID] } {
|
|||||||
set _CPUTAPID 0x0bc11477
|
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
|
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
|
||||||
|
|
||||||
set _TARGETNAME $_CHIPNAME.cpu
|
set _TARGETNAME $_CHIPNAME.cpu
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
# NXP (former Freescale) Kinetis KL series devices
|
# NXP (former Freescale) Kinetis KL series devices
|
||||||
# Also used for Cortex-M0+ equipped members of KVx and KE1xZ series
|
# Also used for Cortex-M0+ equipped members of KVx and KE1xZ series
|
||||||
#
|
#
|
||||||
|
# Devices support SWD transport only
|
||||||
source [find target/swj-dp.tcl]
|
transport select swd
|
||||||
|
|
||||||
if { [info exists CHIPNAME] } {
|
if { [info exists CHIPNAME] } {
|
||||||
set _CHIPNAME $CHIPNAME
|
set _CHIPNAME $CHIPNAME
|
||||||
@@ -27,7 +27,7 @@ if { [info exists CPUTAPID] } {
|
|||||||
set _CPUTAPID 0x0bc11477
|
set _CPUTAPID 0x0bc11477
|
||||||
}
|
}
|
||||||
|
|
||||||
swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
|
swd newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
|
||||||
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
|
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
|
||||||
|
|
||||||
set _TARGETNAME $_CHIPNAME.cpu
|
set _TARGETNAME $_CHIPNAME.cpu
|
||||||
|
|||||||
Reference in New Issue
Block a user