From b375052c58a4ef9b855ce9aa119cc1abf432d0c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20=C4=8Capek?= Date: Wed, 25 Jan 2017 10:11:48 +0100 Subject: [PATCH] tcl STM32L0xx - add support for dual banked targets and for Nucleo-64 STM32L073 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - stm32l0_dual_bank.cfg - implement dual bank configuration - st_nucleo_l073rz.cfg - implement new board script Change-Id: Ie8063e5bec45069a63d414d81b2068fe3cc7e4d7 Signed-off-by: Jan Čapek Reviewed-on: http://openocd.zylin.com/3957 Reviewed-by: Cezary Gapiński Reviewed-by: Karl Palsson Tested-by: jenkins Reviewed-by: Aurelio Lucchesi Reviewed-by: Freddie Chopin --- tcl/board/st_nucleo_l073rz.cfg | 12 ++++++++++++ tcl/target/stm32l0_dual_bank.cfg | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 tcl/board/st_nucleo_l073rz.cfg create mode 100644 tcl/target/stm32l0_dual_bank.cfg diff --git a/tcl/board/st_nucleo_l073rz.cfg b/tcl/board/st_nucleo_l073rz.cfg new file mode 100644 index 00000000..fa9dc87c --- /dev/null +++ b/tcl/board/st_nucleo_l073rz.cfg @@ -0,0 +1,12 @@ +# This is an ST NUCLEO-L073RZ board with single STM32L073RZ chip. +# http://www.st.com/en/evaluation-tools/nucleo-l073rz.html +source [find interface/stlink-v2-1.cfg] + +transport select hla_swd + +set WORKAREASIZE 0x2000 + +source [find target/stm32l0_dual_bank.cfg] + +# There is only system reset line and JTAG/SWD command can be issued when SRST +reset_config srst_only diff --git a/tcl/target/stm32l0_dual_bank.cfg b/tcl/target/stm32l0_dual_bank.cfg new file mode 100644 index 00000000..f9f1a4e7 --- /dev/null +++ b/tcl/target/stm32l0_dual_bank.cfg @@ -0,0 +1,5 @@ +source [find target/stm32l0.cfg] + +# Add the second flash bank. +set _FLASHNAME $_CHIPNAME.flash1 +flash bank $_FLASHNAME stm32lx 0 0 0 0 $_TARGETNAME -- 2.39.5