OpenOCD
Theory
Cheat Sheet
# Install OpenOCD on Linux
sudo apt-get install openocd
# Start OpenOCD with JLink debugger and STM32 target configuration
openocd -f interface/jlink.cfg -f stm32h7x.cfg
# Connect to OpenOCD via telnet
telnet 127.0.0.1 4444
#Connect to OpenOCD via gdb
gdb
(gdb) target extended-remote localhost:3333
(gdb) monitor reset halt
(gdb) load
(gdb) continue
# Halt the CPU
halt
# Reset and initialize the CPU
reset init
# Get flash memory information
halt; flash info 0
# Dump the flash memory to a file
halt; dump_image flashdump.bin 0x00000000 0xF90600Usage
Resources
Last updated