tcl/target/stm32(f7/h7)x: do not assume presence of the reset
do not force the presence of the reset line, since some custom boards may do not contain the reset line. Change-Id: I031ab34012b34a1b49def9db16461f9de0ae29cc Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reported-by: Fleck <fleckz@users.sourceforge.net> Fixes: https://sourceforge.net/p/openocd/tickets/316/ Reviewed-on: https://review.openocd.org/c/openocd/+/6506 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Tested-by: jenkins
This commit is contained in:
parent
b61a280860
commit
fc74ccda52
|
@ -8,3 +8,5 @@
|
|||
set WORKAREASIZE 0x40000
|
||||
|
||||
source [find target/stm32f7x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
|
|
@ -14,6 +14,8 @@ set QUADSPI 1
|
|||
|
||||
source [find target/stm32f7x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
# QUADSPI initialization
|
||||
proc qspi_init { } {
|
||||
global a
|
||||
|
|
|
@ -14,6 +14,8 @@ set QUADSPI 1
|
|||
|
||||
source [find target/stm32f7x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
# QUADSPI initialization
|
||||
proc qspi_init { } {
|
||||
global a
|
||||
|
|
|
@ -14,6 +14,8 @@ set QUADSPI 1
|
|||
|
||||
source [find target/stm32f7x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
# QUADSPI initialization
|
||||
proc qspi_init { } {
|
||||
global a
|
||||
|
|
|
@ -10,3 +10,5 @@ transport select hla_swd
|
|||
set WORKAREASIZE 0x40000
|
||||
|
||||
source [find target/stm32f7x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
|
|
@ -17,6 +17,8 @@ if {![info exists OCTOSPI1]} {
|
|||
|
||||
source [find target/stm32h7x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
# OCTOSPI initialization
|
||||
# octo: 8-line mode
|
||||
proc octospi_init { octo } {
|
||||
|
|
|
@ -16,6 +16,8 @@ if {![info exists QUADSPI]} {
|
|||
|
||||
source [find target/stm32h7x_dual_bank.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
source [find board/stm32h7x_dual_qspi.cfg]
|
||||
|
||||
$_CHIPNAME.cpu0 configure -event reset-init {
|
||||
|
|
|
@ -16,6 +16,8 @@ if {![info exists QUADSPI]} {
|
|||
|
||||
source [find target/stm32h7x_dual_bank.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
# QUADSPI initialization
|
||||
# qpi: 4-line mode
|
||||
proc qspi_init { qpi } {
|
||||
|
|
|
@ -16,6 +16,8 @@ if {![info exists QUADSPI]} {
|
|||
|
||||
source [find target/stm32h7x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
source [find board/stm32h7x_dual_qspi.cfg]
|
||||
|
||||
$_CHIPNAME.cpu0 configure -event reset-init {
|
||||
|
|
|
@ -17,6 +17,8 @@ if {![info exists OCTOSPI1]} {
|
|||
|
||||
source [find target/stm32h7x_dual_bank.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
# OCTOSPI initialization
|
||||
# octo: 8-line mode
|
||||
proc octospi_init { octo } {
|
||||
|
|
|
@ -82,7 +82,7 @@ if {[using_jtag]} {
|
|||
#
|
||||
# This target is compatible with connect_assert_srst, which may be set in a
|
||||
# board file.
|
||||
reset_config srst_only srst_nogate
|
||||
reset_config srst_nogate
|
||||
|
||||
if {![using_hla]} {
|
||||
# if srst is not fitted use SYSRESETREQ to
|
||||
|
|
|
@ -142,7 +142,7 @@ if {[using_jtag]} {
|
|||
# usage does not work with HLA, so is not done by default. That change could be
|
||||
# made in a local configuration file if connect_assert_srst mode is needed for
|
||||
# a specific application and a non-HLA adapter is in use.
|
||||
reset_config srst_only srst_nogate
|
||||
reset_config srst_nogate
|
||||
|
||||
if {![using_hla]} {
|
||||
# if srst is not fitted use SYSRESETREQ to
|
||||
|
|
Loading…
Reference in New Issue