diff --git a/tcl/target/numicro.cfg b/tcl/target/numicro.cfg index 29077f39f..e492fa160 100644 --- a/tcl/target/numicro.cfg +++ b/tcl/target/numicro.cfg @@ -2,8 +2,7 @@ # script for Nuvoton MuMicro Cortex-M0 Series -# Adapt based on what transport is active. -source [find target/swj-dp.tcl] +transport select swd # Set Chipname if { [info exists CHIPNAME] } { @@ -29,7 +28,7 @@ if { [info exists WORKAREASIZE] } { # Debug Adapter Target Settings -swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUDAPID +swd newdap $_CHIPNAME cpu -expected-id $_CPUDAPID dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap diff --git a/tcl/target/numicro_m4.cfg b/tcl/target/numicro_m4.cfg index 1302515d3..ac242c417 100644 --- a/tcl/target/numicro_m4.cfg +++ b/tcl/target/numicro_m4.cfg @@ -2,7 +2,7 @@ # script for Nuvoton MuMicro Cortex-M4 Series -source [find target/swj-dp.tcl] +transport select swd # Set Chipname if { [info exists CHIPNAME] } { @@ -28,7 +28,7 @@ if { [info exists WORKAREASIZE] } { # Debug Adapter Target Settings -swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUDAPID +swd newdap $_CHIPNAME cpu -expected-id $_CPUDAPID dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap