26 lines
542 B
INI
26 lines
542 B
INI
# common/gdb/openocd-stm32f1-chibios.cfg
|
|
# STM32F1x CPU with ChibiOS RTOS support
|
|
#debug_level 1
|
|
|
|
source [find interface/stlink-v2.cfg]
|
|
|
|
hla_serial "\x57\x3f\x6c\x06\x51\x77\x51\x51\x22\x52\x09\x3f"
|
|
transport select hla_swd
|
|
|
|
source [find target/stm32l0.cfg]
|
|
|
|
adapter_khz 2000
|
|
|
|
# use hardware reset, connect under reset
|
|
reset_config trst_and_srst trst_pulls_srst srst_nogate connect_assert_srst
|
|
|
|
$_TARGETNAME configure -rtos auto
|
|
|
|
$_TARGETNAME configure -event gdb-attach {
|
|
halt
|
|
}
|
|
|
|
$_TARGETNAME configure -event gdb-attach {
|
|
reset init
|
|
}
|