fix: auto_erase/verif?

This commit is contained in:
2024-12-14 13:46:49 +06:00
parent 0071f68cb6
commit a0072d3d3a
5 changed files with 110 additions and 48 deletions

View File

@@ -1,4 +1,7 @@
source [find target/swj-dp.tcl]
source [find interface/jlink.cfg]
adapter driver jlink
transport select swd
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
@@ -33,11 +36,8 @@ target create $_TARGETNAME cortex_m -endian $_ENDIAN -dap $_CHIPNAME.dap
# todo: get work area from makefile
$_TARGETNAME configure -work-area-phys 0x10001500 -work-area-size $_WORKAREASIZE -work-area-backup 0
adapter speed 4000
adapter speed 3000
adapter srst delay 100
if {![using_hla]} {
cortex_m reset_config sysresetreq
}
cortex_m reset_config vectreset
$_TARGETNAME configure -event reset-init {amebaz_init}