Segger JLink
Features
Cheat Sheet
# Connect to J-Link device
JLinkExe.exe
# Connect to a target device (select device from pop up window)
connect
# Halt the target CPU
halt
# Reset the target CPU
r # or 'reset'
# Reset and halt the CPU
reset halt
# Read memory at a specified address
mem32 <address> <count> # Reads 32-bit words from memory
#Read complete flash and save it
savebin <filename.bin> <start address> <size>
# Write memory to a specified address
w1 <address> <value> # Write 1 byte
w2 <address> <value> # Write 2 bytes
w4 <address> <value> # Write 4 bytes
# Load a binary file into the target device memory
loadbin <file> <address>
# Dump memory to a binary file
savebin <file> <address> <size>
savebin flash_dump.bin 0x08000000 0x00040000 #example
# Set a breakpoint
setbp <address>
# Clear a breakpoint
clrbp <address>
# Step through instructions
step
# Continue execution
go
# Exit J-Link Commander
q # or 'exit'Example Commands to Dump a Flash Chip Using J-Link


Successful cJTAG connection
Resources
Last updated