tcl/target/ti/mspm0.cfg: drop swj on swd only target
The MSPM0 devices support only SWD. Drop swj support, add swd support. This also gets rid of the following warnings: Warn : DEPRECATED: auto-selecting transport "swd". Use 'transport ... Warn : Transport "swd" was already selected Tested by programming/verifying firmware on LP-MSPM0G3519 dev board. Change-Id: Ieafd9c4691343124b2dfb2daa1c0d3a96b13e485 Signed-off-by: Mikhail Iakhiaev <iakhiaev@google.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9413 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
committed by
Tomas Vanek
parent
6eaf951b20
commit
078a6b1f9f
@@ -14,26 +14,17 @@ if { [info exists CHIPNAME] } {
|
||||
set _CHIPNAME mspm0x
|
||||
}
|
||||
|
||||
if { [info exists CPUTAPID] } {
|
||||
set _DAP_TAPID $CPUTAPID
|
||||
} else {
|
||||
set _DAP_TAPID 0x4ba00477
|
||||
}
|
||||
|
||||
# Note, some targets use "CPUTAPID" variable for this purpose.
|
||||
if { [info exists DAP_SWD_ID] } {
|
||||
set _DAP_SWD_ID $DAP_SWD_ID
|
||||
} else {
|
||||
set _DAP_SWD_ID 0x2ba01477
|
||||
}
|
||||
|
||||
source [find target/swj-dp.tcl]
|
||||
|
||||
# MSPM0 only supports swd, so set it here and save a line for custom boards
|
||||
# MSPM0 only supports swd
|
||||
transport select swd
|
||||
|
||||
set _DAP_ID $_DAP_SWD_ID
|
||||
|
||||
swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_DAP_ID
|
||||
swd newdap $_CHIPNAME cpu -expected-id $_DAP_SWD_ID
|
||||
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
|
||||
Reference in New Issue
Block a user