C:\Users\86188\Desktop\test> pyocd cmd --command help
Commands:
--------
break ADDR Set a breakpoint address
cmp, compare ADDR [LEN] FILENAME Compare a memory range against a binary file.
core [NUM] Select CPU core by number or print selected core
d, disasm [-c/--center] ADDR [LEN] Disassemble instructions at an address
erase [ADDR] [COUNT] Erase internal flash sectors (performs mass erase if no arguments given)
exit, quit Quit pyocd-tool
fill [SIZE] ADDR LEN PATTERN Fill a range of memory with a pattern
find ADDR LEN BYTE... Search for a value in memory within the given address range.
gdbserver ACTION Start or stop the gdbserver.
c, continue, g, go Resume execution of the target
h, halt Halt the target
?, help [CMD] Show help for commands
initdp Init DP and power up debug.
list Show available targets
load FILENAME [ADDR] Load a binary, hex, or elf file with optional base address
loadmem ADDR FILENAME Load a binary file to an address in memory (RAM or flash)
lsbreak List breakpoints
lswatch List watchpoints
makeap APSEL Creates a new AP object for the given APSEL.
r16, read16, rh ADDR [LEN] Read 16-bit halfwords
r32, read32, rw ADDR [LEN] Read 32-bit words
r, rb, read, read8 ADDR [LEN] Read 8-bit bytes
rap, readap [APSEL] ADDR Read AP register
rdp, readdp ADDR Read DP register
reg [-f] [REG] Print core or peripheral register(s).
reinit Reinitialize the target object
reset [-h/--halt] Reset the target
rmbreak ADDR Remove a breakpoint
rmwatch ADDR Remove a watchpoint
savemem ADDR LEN FILENAME Save a range of memory to a binary file
set NAME VALUE Set an option value
show INFO Report info about the target
st, stat, status Show the target's current state
s, step Step one instruction
symbol NAME Show a symbol's value.
unlock Unlock security on the target
watch ADDR [r|w|rw] [1|2|4] Set a watchpoint address, and optional access type (default rw) and size (4).
where [ADDR] Show symbol, file, and line for address.
wreg [-r] REG VALUE Set the value of a core or peripheral register.
w16, wh, write16 ADDR DATA... Write 16-bit halfwords to memory (RAM or flash). The address may be unaligned. Flash writes are subject to minimum write size and alignment.
w32, write32, ww ADDR DATA... Write 32-bit words to memory (RAM or flash). The address may be unaligned. Flash writes are subject to minimum write size and alignment.
w, wb, write, write8 ADDR DATA... Write 8-bit bytes to memory (RAM or flash). Flash writes are subject to minimum write size and alignment.
wap, writeap [APSEL] ADDR DATA Write AP register
wdp, writedp ADDR DATA Write DP register
All register names are also available as commands that print the register's value.
Any ADDR or LEN argument will accept a register name.
Prefix line with $ to execute a Python expression.
Prefix line with ! to execute a shell command.
Info:
----
cores Information about CPU cores in the target.
fault Fault status information.
graph Print the target object graph.
hnonsec Display the current HNONSEC value used by the selected MEM-AP.
hprot Display the current HPROT value used by the selected MEM-AP.
locked Report whether the target is locked.
map Target memory map.
mem-ap Display the currently selected MEM-AP used for memory read/write commands.
nreset Current nRESET signal state.
option Show the current value of one or more user options.
peripherals List of target peripheral instances.
si, step-into-interrupt Display whether interrupts are enabled when single stepping.
target General target information.
uid Target's unique ID
vc, vector-catch Show current vector catch settings.
Options:
-------
clock Set SWD or JTAG clock frequency in Hertz. A case-insensitive metric scale suffix of either 'k' or 'm' is allowed, as well as a trailing "Hz". There must be no space between the frequency and the suffix. For example, "2.5MHz" sets the clock to 2.5 MHz.
hnonsec Set the current HNONSEC value used by the selected MEM-AP.
hprot Set the current HPROT value used by the selected MEM-AP.
log Set log level to one of debug, info, warning, error, critical
mem-ap Select the MEM-AP used for memory read/write commands.
nreset Set nRESET signal state. Accepts a value of 0 or 1.
option Change the value of one or more user options.
si, step-into-interrupt Set whether to enable or disable interrupts when single stepping. Set to 1 to enable.
vc, vector-catch Control enabled vector catch sources.