debugging older boards
This commit is contained in:
parent
7fa2e2800e
commit
da804b5b05
|
@ -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"
|
||||
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue