Merge pull request #9760 from MrKevinWeiss/pr/bluepill/openocdfix

boards/stm32f103c8: fix openocd config
This commit is contained in:
Peter Kietzmann 2018-08-30 09:24:58 +02:00 committed by GitHub
commit daf2532c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View File

@ -32,5 +32,9 @@ else
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
# call a 'reset halt' command before starting the debugger
# it is required as `connect_assert_srst` is set
export OPENOCD_DBG_START_CMD = -c 'reset halt'
include $(RIOTMAKE)/tools/openocd.inc.mk
endif

View File

@ -1,4 +1,21 @@
set WORKAREASIZE 0x5000
set CHIPNAME STM32F103C8Tx
# 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 4000
# use hardware reset, connect under reset
# connect_assert_srst needed if low power mode application running (WFI...)
reset_config srst_only srst_nogate connect_assert_srst
set CONNECT_UNDER_RESET 1
source [find target/stm32f1x.cfg]
reset_config none separate
$_TARGETNAME configure -rtos auto