rockbox/utils/stm32tools/gdbinit
Aidan MacDonald 6fc87143df stm32: add sample files for OpenOCD and GDB usage
Change-Id: I674ebab9c25a8dcd69bcebf665dc8d749c380b42
2025-04-21 18:15:15 -04:00

13 lines
382 B
Text

## 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"