From: Edward Fewell Date: Mon, 2 Mar 2020 18:22:12 +0000 (-0600) Subject: tcl/target: Use sysresetreq for MSP432 targets X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=76ba9bd0b373e0bddfe944e411550b0a0304b238;p=fw%2Fopenocd tcl/target: Use sysresetreq for MSP432 targets Confirmed that sysresetreq is supported and works better for MSP432P4 and MSP432E4 targets than srst that was previously being used. Tested on MSP432P4111, MSP432P401R, and MSP432E401Y Launchpads. Change-Id: I1454c3379b9300bc133f82a766daeaefb98dbaac Signed-off-by: Edward Fewell Reviewed-on: http://openocd.zylin.com/5488 Tested-by: jenkins Reviewed-by: Antonio Borneo --- diff --git a/tcl/target/ti_msp432.cfg b/tcl/target/ti_msp432.cfg index 146e7ee21..77f81da69 100644 --- a/tcl/target/ti_msp432.cfg +++ b/tcl/target/ti_msp432.cfg @@ -42,10 +42,10 @@ if { [info exists WORKAREASIZE] } { set _WORKAREASIZE 0x4000 } + $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0 set _FLASHNAME $_CHIPNAME.flash flash bank $_FLASHNAME msp432 0 0 0 0 $_TARGETNAME -reset_config srst_only -adapter srst delay 100 +cortex_m reset_config sysresetreq