Instead of having committed files containing a single developer's serials, use optional includes to include a local config file for each board. If you have only a single board connected, simply: $ make -f Makefile.<board> clean all flash If you have multiple boards connected, make sure to fill in the appropriate hla_serial in your openocd.<board>.local.cfg file, and then run the same commands.
16 lines
486 B
INI
16 lines
486 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]
|
|
|
|
source openocd.common.cfg
|
|
optional_local "openocd.stm32f103-generic.local.cfg"
|
|
|
|
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
|
|
|