From 4177bd299f61270c110c5900b539725df54b9ca6 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 23 Feb 2021 19:11:18 -0500 Subject: [PATCH] H7 compilation #2284 --- firmware/flash_openocd_h7.bat | 9 +++++++++ misc/install/openocd/st_nucleo_h743zi.cfg | 4 ++-- misc/install/openocd/stm32h7x_dual_bank.cfg | 6 ++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 firmware/flash_openocd_h7.bat create mode 100644 misc/install/openocd/stm32h7x_dual_bank.cfg diff --git a/firmware/flash_openocd_h7.bat b/firmware/flash_openocd_h7.bat new file mode 100644 index 0000000000..167dc87fdf --- /dev/null +++ b/firmware/flash_openocd_h7.bat @@ -0,0 +1,9 @@ +echo I am flash_openocd_h7.bat + +cd ../misc/install + +if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND +if not exist openocd/openocd.exe exit -1 + +openocd\openocd -f openocd/st_nucleo_h743zi.cfg -c "program ../../firmware/build/rusefi.bin verify reset exit 0x08000000" + diff --git a/misc/install/openocd/st_nucleo_h743zi.cfg b/misc/install/openocd/st_nucleo_h743zi.cfg index cfe2cda1b5..85588609ce 100644 --- a/misc/install/openocd/st_nucleo_h743zi.cfg +++ b/misc/install/openocd/st_nucleo_h743zi.cfg @@ -1,10 +1,10 @@ # This is an ST NUCLEO-H743ZI board with single STM32H743ZI chip. # http://www.st.com/en/evaluation-tools/nucleo-h743zi.html -source [find interface/stlink.cfg] +source [find openocd/stlink.cfg] transport select hla_swd -source [find target/stm32h7x_dual_bank.cfg] +source [find openocd/stm32h7x_dual_bank.cfg] reset_config srst_only diff --git a/misc/install/openocd/stm32h7x_dual_bank.cfg b/misc/install/openocd/stm32h7x_dual_bank.cfg new file mode 100644 index 0000000000..0a23e5f10e --- /dev/null +++ b/misc/install/openocd/stm32h7x_dual_bank.cfg @@ -0,0 +1,6 @@ +# script for stm32h7x family (dual flash bank) + +# STM32H7xxxI 2Mo have a dual bank flash. +set DUAL_BANK 1 + +source [find openocd/stm32h7x.cfg] \ No newline at end of file