From e98b77ba457c525d955085b7c575aaa04ae49841 Mon Sep 17 00:00:00 2001 From: TonyZhang Date: Sat, 24 Feb 2024 19:26:09 +0800 Subject: [PATCH] add cmsis-dap config file --- config/cmsis-dap.cfg | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 config/cmsis-dap.cfg diff --git a/config/cmsis-dap.cfg b/config/cmsis-dap.cfg new file mode 100644 index 00000000..3f773ebc --- /dev/null +++ b/config/cmsis-dap.cfg @@ -0,0 +1,22 @@ +source [find interface/cmsis-dap.cfg] + +set WORKAREASIZE 0x8000 + +transport select swd + +# Enable debug when in low power modes +set ENABLE_LOW_POWER 1 + +# Stop Watchdog counters when halt +set STOP_WATCHDOG 1 + +# STLink Debug clock frequency +set CLOCK_FREQ 1800 + +# Use software system reset +reset_config trst_only combined +set CONNECT_UNDER_RESET 0 + +source [find target/stm32f4x.cfg] + +stm32f4x.cpu configure -rtos chibios \ No newline at end of file