blackmagic/tests/gadget-zero/openocd.stm32f103-generic.cfg
Karl Palsson 58d5de26f3 tests: gadget0: add stm32f103 target
There's no F1 discovery style board with usb device, so this is for a "generic"
device.  The USB portion should be safe, but there's a led used for bootup that
is board specific, and of course the clock source is board specific.

Related, the openocd config file is rather custom to my own setup, but shows
what you need to customize for your test environment.

Further, as the F1 usb core doesn't include support for soft disconnect, use
the very hacky method of dragging the pin low to force reenumeration on reset.
Very very useful for development purposes!
2015-10-03 01:18:17 +00:00

16 lines
487 B
INI

# Unfortunately, with no f103 disco, we're currently
# using a separate disco board
source [find interface/stlink-v2.cfg]
set WORKAREASIZE 0x2000
source [find target/stm32f1x.cfg]
# Serial of my l1 disco used as stlink here.
hla_serial "S?l\x06H?WQ%\x10\x18?"
tpiu config internal swodump.stm32f103-generic.log uart off 72000000
# Uncomment to reset on connect, for grabbing under WFI et al
reset_config srst_only srst_nogate
# reset_config srst_only srst_nogate connect_assert_srst