|
@@ -4,6 +4,7 @@ |
|
|
# |
|
|
# |
|
|
|
|
|
|
|
|
source [find target/swj-dp.tcl] |
|
|
source [find target/swj-dp.tcl] |
|
|
|
|
|
source [find mem_helper.tcl] |
|
|
|
|
|
|
|
|
if { [info exists CHIPNAME] } { |
|
|
if { [info exists CHIPNAME] } { |
|
|
set _CHIPNAME $CHIPNAME |
|
|
set _CHIPNAME $CHIPNAME |
|
@@ -75,3 +76,12 @@ $_TARGETNAME configure -event reset-init { |
|
|
$_TARGETNAME configure -event reset-start { |
|
|
$_TARGETNAME configure -event reset-start { |
|
|
adapter_khz 300 |
|
|
adapter_khz 300 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$_TARGETNAME configure -event examine-end { |
|
|
|
|
|
# DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP |
|
|
|
|
|
mmw 0x40015804 0x00000007 0 |
|
|
|
|
|
|
|
|
|
|
|
# Stop watchdog counters during halt |
|
|
|
|
|
# DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP |
|
|
|
|
|
mmw 0x40015808 0x00001800 0 |
|
|
|
|
|
} |