From 8366c945925a223dfb38786d4336394e5efc7114 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 26 Oct 2017 22:10:03 +0000 Subject: common openocd: use -s to find files from test dirs. The sourcing of the common.cfg and the optional local files was failing when invoked from a test directory. Use -s and properly use [find ...] to search paths nicely. --- openocd/openocd.stm32l053disco.cfg | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 openocd/openocd.stm32l053disco.cfg (limited to 'openocd/openocd.stm32l053disco.cfg') diff --git a/openocd/openocd.stm32l053disco.cfg b/openocd/openocd.stm32l053disco.cfg new file mode 100644 index 0000000..83c592b --- /dev/null +++ b/openocd/openocd.stm32l053disco.cfg @@ -0,0 +1,14 @@ +source [find interface/stlink-v2-1.cfg] +set WORKAREASIZE 0x1000 +source [find target/stm32l0.cfg] + +source [find openocd.common.cfg] +optional_local "openocd.stm32l053disco.local.cfg" + +# no trace on cm0 +#tpiu config internal swodump.stm32f4disco.log uart off 168000000 + +# Uncomment to reset on connect, for grabbing under WFI et al +reset_config srst_only srst_nogate +# reset_config srst_only srst_nogate connect_assert_srst + -- cgit