-# This is for all ST NUCLEO with any STM32F0. Know Boards at the moment:
+# This is for all ST NUCLEO with any STM32F0. Known boards at the moment:
# STM32F030R8
# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259997
# NUCLEO-F072RB
source [find target/stm32f0x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f1x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f3x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
-# This is for all ST NUCLEO with any STM32F. Know Boards at the moment:
+# This is for all ST NUCLEO with any STM32F4. Known boards at the moment:
# STM32F401RET6
# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260000
# STM32F411RET6
source [find target/stm32f4x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f0x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f2x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f4x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f4x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f4x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
set WORKAREASIZE 0x2000
source [find target/stm32f0x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f3x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f4x.cfg]
-# use hardware reset, connect under reset supported
-reset_config srst_only srst_nogate
+reset_config srst_only
source [find target/stm32f4x.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
set WORKAREASIZE 0x2000
source [find target/stm32l0.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
set WORKAREASIZE 0x4000
source [find target/stm32l1.cfg]
-# use hardware reset, connect under reset
-reset_config srst_only srst_nogate
+reset_config srst_only
set WORKAREASIZE 0x2000
source [find target/stm32f1x.cfg]
+reset_config srst_only
target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.cpu
-$_CHIPNAME.cpu configure -event examine-start { puts "START..." ; }
-$_CHIPNAME.cpu configure -event examine-end { puts "END..." ; }
+reset_config srst_nogate
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.cpu
-$_CHIPNAME.cpu configure -event examine-start { puts "START..." ; }
-$_CHIPNAME.cpu configure -event examine-end { puts "END..." ; }
+reset_config srst_nogate
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# specifies up to 1MHz for VLPR mode.
adapter_khz 1000
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset
adapter_nsrst_delay 100
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset
jtag_ntrst_delay 100
}
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stm32f2x 0 0 0 0 $_TARGETNAME
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stm32f1x 0 0 0 0 $_TARGETNAME
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset
jtag_ntrst_delay 100
}
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stm32lx 0x08000000 0 0 0 $_TARGETNAME
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stm32lx 0x08000000 0 0 0 $_TARGETNAME
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset
# 64k (0x10000) of flash
flash bank $_FLASHNAME em357 0x08000000 0x10000 0 0 $_TARGETNAME
+reset_config srst_nogate
+
if {![using_hla]} {
cortex_m reset_config sysresetreq
}