aboutsummaryrefslogtreecommitdiff
path: root/stmhal/boards/openocd_stm32l4.cfg
diff options
context:
space:
mode:
authorDamien George2017-09-06 13:40:51 +1000
committerDamien George2017-09-06 13:40:51 +1000
commit01dd7804b87d60b2deab16712eccb3b97351a9b7 (patch)
tree1aa21f38a872b8e62a3d4e4f74f68033c6f827e4 /stmhal/boards/openocd_stm32l4.cfg
parenta9862b30068fc9df1022f08019fb35aaa5085f64 (diff)
ports: Make new ports/ sub-directory and move all ports there.
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
Diffstat (limited to 'stmhal/boards/openocd_stm32l4.cfg')
-rw-r--r--stmhal/boards/openocd_stm32l4.cfg42
1 files changed, 0 insertions, 42 deletions
diff --git a/stmhal/boards/openocd_stm32l4.cfg b/stmhal/boards/openocd_stm32l4.cfg
deleted file mode 100644
index 59e98de03..000000000
--- a/stmhal/boards/openocd_stm32l4.cfg
+++ /dev/null
@@ -1,42 +0,0 @@
-# This script configures OpenOCD for use with an ST-Link V2 programmer/debugger
-# and an STM32L4 target microcontroller.
-#
-# To flash your firmware:
-#
-# $ openocd -f openocd_stm32l4.cfg \
-# -c "stm_flash build-BOARD/firmware0.bin 0x08000000 build-BOARD/firmware1.bin 0x08004000"
-#
-# For a gdb server on port 3333:
-#
-# $ openocd -f openocd_stm32l4.cfg
-
-
-source [find interface/stlink-v2-1.cfg]
-transport select hla_swd
-source [find target/stm32l4x.cfg]
-reset_config srst_only
-init
-
-proc stm_flash { BIN0 ADDR0 BIN1 ADDR1 } {
- reset halt
- sleep 100
- wait_halt 2
- flash write_image erase $BIN0 $ADDR0
- sleep 100
- verify_image $BIN0 $ADDR0
- sleep 100
- flash write_image erase $BIN1 $ADDR1
- sleep 100
- verify_image $BIN1 $ADDR1
- sleep 100
- reset run
- shutdown
-}
-
-proc stm_erase {} {
- reset halt
- sleep 100
- stm32l4x mass_erase 0
- sleep 100
- shutdown
-}