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.
15 lines
414 B
INI
15 lines
414 B
INI
source [find interface/stlink-v2.cfg]
|
|
set WORKAREASIZE 0x4000
|
|
source [find target/stm32f0x.cfg]
|
|
|
|
source openocd.common.cfg
|
|
optional_local "openocd.stm32f072disco.local.cfg"
|
|
|
|
# no trace on cm0
|
|
#tpiu config internal swodump.stm32f4disco.log uart off 168000000
|
|
|
|
# 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
|
|
|