From e0682a527ba6563c8ff75b37e29a75cc5ded8181 Mon Sep 17 00:00:00 2001 From: Ivan Olenichev <> Date: Fri, 23 Jul 2021 15:52:57 +0600 Subject: [PATCH] firmware_update --- OpenOCD_scripts/README | 9 +++++++++ OpenOCD_scripts/board/OpenOCD_USG_v1.0.cfg | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 OpenOCD_scripts/README create mode 100644 OpenOCD_scripts/board/OpenOCD_USG_v1.0.cfg diff --git a/OpenOCD_scripts/README b/OpenOCD_scripts/README new file mode 100644 index 0000000..8913e8a --- /dev/null +++ b/OpenOCD_scripts/README @@ -0,0 +1,9 @@ +The OpenOCD scripts in ./board/ are used in-place by the Eclipse debug configurations. You +don't need to copy them anywhere. + +If your OpenOCD version is <= 0.8, you will need to copy ./target/stm32f4x.cfg to your OpenOCD +installation's /scripts/target/ folder, replacing the version currently there. +If you have OpenOCD >= 0.9, this is not necessary. + +More info for Eclipse OpenOCD configuration: +http://gnuarmeclipse.github.io/debug/openocd/ diff --git a/OpenOCD_scripts/board/OpenOCD_USG_v1.0.cfg b/OpenOCD_scripts/board/OpenOCD_USG_v1.0.cfg new file mode 100644 index 0000000..8e76e08 --- /dev/null +++ b/OpenOCD_scripts/board/OpenOCD_USG_v1.0.cfg @@ -0,0 +1,12 @@ +# Default work area for the STM32F4x is 64K. We'll just leave it at that. +# set WORKAREASIZE 0x10000 + +source [find target/stm32f4x.cfg] + + +# Use SRST to synchronously reset both micros +#reset_config srst_only connect_assert_srst +reset_config none separate + +# Not necessary: +#cortex_m reset_config srst