X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tcl%2Ftarget%2Fswm050.cfg;h=6cc5f6dccb4e819594eff0ec5e9a7641e8cc31ab;hb=e6505b04892ccacf75603c3d173616f5d92809e7;hp=a819f9c426f19aa86bd0442c3d701068cb2874bc;hpb=5a235226f0db67e85f9c71288dcd015e7081c37b;p=fw%2Fopenocd diff --git a/tcl/target/swm050.cfg b/tcl/target/swm050.cfg index a819f9c42..6cc5f6dcc 100644 --- a/tcl/target/swm050.cfg +++ b/tcl/target/swm050.cfg @@ -1,5 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # Synwit SWM050 +source [find target/swj-dp.tcl] + if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { @@ -16,10 +20,10 @@ if { [info exists WORKAREASIZE] } { if { [info exists CPUTAPID] } { set _CPUTAPID $CPUTAPID } else { - set _CPUTAPID 0x410CC200 + set _CPUTAPID 0x0bb11477 } -swd newdap $_CHIPNAME cpu -expected-id $_CPUTAPID +swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap @@ -27,6 +31,7 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE set _FLASHNAME $_CHIPNAME.flash flash bank $_FLASHNAME swm050 0x0 0x2000 0 0 $_TARGETNAME +adapter speed 1000 $_TARGETNAME configure -event reset-init { # Stop the watchdog, just to be safe