33 lines
745 B
Plaintext
33 lines
745 B
Plaintext
# NOTE: main firmware.elf file provided on command line, see Makefile
|
|
add-symbol-file mk4-bootloader/bootloader.elf 0x8000000
|
|
|
|
# hex for all numbers
|
|
set output-radix 16
|
|
|
|
# kill X repeats N times, which interfer w/ cut-n-paste into python of dumps
|
|
set print repeats 128
|
|
|
|
# Use ST-Link (st-utils)
|
|
#target extended-remote :4242
|
|
|
|
# Connect to the OpenOCD gdb server (needs to be already connected)
|
|
#
|
|
# openocd -f openocd-mk4.cfg
|
|
#
|
|
target extended-remote :3333
|
|
|
|
# NOTE: other types of reset don't work (OpenOCD)
|
|
define reset
|
|
mon reset init
|
|
end
|
|
|
|
# Complete chip wipe, even DFU area?
|
|
# TODO: see README for sequence, but needs timing gaps, etc.
|
|
define CHIP_WIPE
|
|
mon halt
|
|
mon stm32l4x unlock 0
|
|
mon reset halt
|
|
mon halt
|
|
mon stm32l4x mass_erase 0
|
|
end
|