debugging older boards

This commit is contained in:
rusefi 2017-08-26 19:02:38 -04:00
parent 7fa2e2800e
commit da804b5b05
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#
# STMicroelectronics ST-LINK/V2 in-circuit debugger/programmer
#
interface hla
hla_layout stlink
hla_device_desc "ST-LINK/V2"
hla_vid_pid 0x0483 0x3748
# Optionally specify the serial number of ST-LINK/V2 usb device. ST-LINK/V2
# devices seem to have serial numbers with unreadable characters. ST-LINK/V2
# firmware version >= V2.J21.S4 recommended to avoid issues with adapter serial
# number reset issues.
# eg.
#hla_serial "\xaa\xbc\x6e\x06\x50\x75\xff\x55\x17\x42\x19\x3f"

View File

@ -0,0 +1,10 @@
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp
source [find openocd/stlink-v2.cfg]
transport select hla_swd
source [find openocd/stm32f4x.cfg]
reset_config srst_only

View File

@ -0,0 +1,5 @@
rem if you have an older Rev C discovery please update to latest Rev D firmware
rem As of March 2017 this enabled GDB debugging using ARM Eclipse plug-in
openocd\openocd.exe -f openocd/stm32f4discovery.cfg -c init -c reset