summaryrefslogtreecommitdiffstats
path: root/utils/stm32tools/gdbinit
blob: 41ebfb2c8ebae987306f9b62899a707d7eaa44cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
## Example GDB script for loading a bootloader binary using OpenOCD

# Set target binary and connect to OpenOCD
file "./bootloader.elf"
target extended-remote localhost:3333

# Reset target and flush register cache since GDB is apparently
# not smart enough to do this itself.
monitor reset halt
maintenance flush register-cache

# Download binary to target
load "./bootloader.elf"