| 1 | --- |
| 2 | title: Command reference |
| 3 | --- |
| 4 | |
| 5 | PyOCD has a simple command processor that is accessible from the console via the commander subcommand, |
| 6 | or from gdb as remote monitor commands. |
| 7 | |
| 8 | The syntax for the commands is straightforward. The command line is first split into individual |
| 9 | commands separated by `;` (semicolon). Each command is then split into words separated by |
| 10 | whitespace. The whitespace characters are space, tab, CR, and LF. Words can be quoted with either a |
| 11 | single or double quote to include whitespace (or quotes) in the word. |
| 12 | |
| 13 | Any prefix of a command name is accepted as long as it is unique. If a command prefix is entered |
| 14 | that ambiguous because it matches multiple commands, an error will be reported showing the matched |
| 15 | command names. In addition, commonly used commands often have a short alias. The alias takes |
| 16 | precedence even when it is a prefix of multiple other commands. |
| 17 | |
| 18 | <!-- |
| 19 | Maintainer note: the following is auto-generated. Edit the command class INFO dict source material, |
| 20 | then run ./scripts/generate_command_help.py. |
| 21 | --> |
| 22 | |
| 23 | All commands |
| 24 | ------------ |
| 25 | |
| 26 | <table> |
| 27 | |
| 28 | <tr><th>Command</th><th>Arguments</th><th>Description</th></tr> |
| 29 | |
| 30 | <tr><td colspan="3"><b>Breakpoints</b></td></tr> |
| 31 | |
| 32 | <tr><td> |
| 33 | <a href="#break"><tt>break</tt></a> |
| 34 | </td><td> |
| 35 | ADDR |
| 36 | </td><td> |
| 37 | Set a breakpoint address. |
| 38 | </td></tr> |
| 39 | |
| 40 | <tr><td> |
| 41 | <a href="#lsbreak"><tt>lsbreak</tt></a> |
| 42 | </td><td> |
| 43 | </td><td> |
| 44 | List breakpoints. |
| 45 | </td></tr> |
| 46 | |
| 47 | <tr><td> |
| 48 | <a href="#lswatch"><tt>lswatch</tt></a> |
| 49 | </td><td> |
| 50 | </td><td> |
| 51 | List watchpoints. |
| 52 | </td></tr> |
| 53 | |
| 54 | <tr><td> |
| 55 | <a href="#rmbreak"><tt>rmbreak</tt></a> |
| 56 | </td><td> |
| 57 | ADDR |
| 58 | </td><td> |
| 59 | Remove a breakpoint. |
| 60 | </td></tr> |
| 61 | |
| 62 | <tr><td> |
| 63 | <a href="#rmwatch"><tt>rmwatch</tt></a> |
| 64 | </td><td> |
| 65 | ADDR [r|w|rw] [1|2|4] |
| 66 | </td><td> |
| 67 | Remove watchpoint(s). |
| 68 | </td></tr> |
| 69 | |
| 70 | <tr><td> |
| 71 | <a href="#watch"><tt>watch</tt></a> |
| 72 | </td><td> |
| 73 | ADDR [r|w|rw] [1|2|4] |
| 74 | </td><td> |
| 75 | Set a watchpoint address, and optional access type (default rw) and size (4). |
| 76 | </td></tr> |
| 77 | |
| 78 | <tr><td colspan="3"><b>Bringup</b></td></tr> |
| 79 | |
| 80 | <tr><td> |
| 81 | <a href="#initdp"><tt>initdp</tt></a> |
| 82 | </td><td> |
| 83 | </td><td> |
| 84 | Init DP and power up debug. |
| 85 | </td></tr> |
| 86 | |
| 87 | <tr><td> |
| 88 | <a href="#makeap"><tt>makeap</tt></a> |
| 89 | </td><td> |
| 90 | APSEL |
| 91 | </td><td> |
| 92 | Creates a new AP object for the given APSEL. |
| 93 | </td></tr> |
| 94 | |
| 95 | <tr><td> |
| 96 | <a href="#reinit"><tt>reinit</tt></a> |
| 97 | </td><td> |
| 98 | </td><td> |
| 99 | Reinitialize the target object. |
| 100 | </td></tr> |
| 101 | |
| 102 | <tr><td colspan="3"><b>Commander</b></td></tr> |
| 103 | |
| 104 | <tr><td> |
| 105 | <a href="#exit"><tt>exit</tt></a>, |
| 106 | <a href="#exit"><tt>quit</tt></a> |
| 107 | </td><td> |
| 108 | </td><td> |
| 109 | Quit pyocd commander. |
| 110 | </td></tr> |
| 111 | |
| 112 | <tr><td> |
| 113 | <a href="#list"><tt>list</tt></a> |
| 114 | </td><td> |
| 115 | </td><td> |
| 116 | Show available targets. |
| 117 | </td></tr> |
| 118 | |
| 119 | <tr><td colspan="3"><b>Core</b></td></tr> |
| 120 | |
| 121 | <tr><td> |
| 122 | <a href="#continue"><tt>continue</tt></a>, |
| 123 | <a href="#continue"><tt>c</tt></a>, |
| 124 | <a href="#continue"><tt>go</tt></a>, |
| 125 | <a href="#continue"><tt>g</tt></a> |
| 126 | </td><td> |
| 127 | </td><td> |
| 128 | Resume execution of the target. |
| 129 | </td></tr> |
| 130 | |
| 131 | <tr><td> |
| 132 | <a href="#core"><tt>core</tt></a> |
| 133 | </td><td> |
| 134 | [NUMBER | NAME] |
| 135 | </td><td> |
| 136 | Select CPU core by number or name, or print selected core. |
| 137 | </td></tr> |
| 138 | |
| 139 | <tr><td> |
| 140 | <a href="#halt"><tt>halt</tt></a>, |
| 141 | <a href="#halt"><tt>h</tt></a> |
| 142 | </td><td> |
| 143 | </td><td> |
| 144 | Halt the target. |
| 145 | </td></tr> |
| 146 | |
| 147 | <tr><td> |
| 148 | <a href="#step"><tt>step</tt></a>, |
| 149 | <a href="#step"><tt>s</tt></a> |
| 150 | </td><td> |
| 151 | [COUNT] |
| 152 | </td><td> |
| 153 | Step one or more instructions. |
| 154 | </td></tr> |
| 155 | |
| 156 | <tr><td colspan="3"><b>Dap</b></td></tr> |
| 157 | |
| 158 | <tr><td> |
| 159 | <a href="#readap"><tt>readap</tt></a>, |
| 160 | <a href="#readap"><tt>rap</tt></a> |
| 161 | </td><td> |
| 162 | [APSEL] ADDR |
| 163 | </td><td> |
| 164 | Read AP register. |
| 165 | </td></tr> |
| 166 | |
| 167 | <tr><td> |
| 168 | <a href="#readdp"><tt>readdp</tt></a>, |
| 169 | <a href="#readdp"><tt>rdp</tt></a> |
| 170 | </td><td> |
| 171 | ADDR |
| 172 | </td><td> |
| 173 | Read DP register. |
| 174 | </td></tr> |
| 175 | |
| 176 | <tr><td> |
| 177 | <a href="#writeap"><tt>writeap</tt></a>, |
| 178 | <a href="#writeap"><tt>wap</tt></a> |
| 179 | </td><td> |
| 180 | [APSEL] ADDR DATA |
| 181 | </td><td> |
| 182 | Write AP register. |
| 183 | </td></tr> |
| 184 | |
| 185 | <tr><td> |
| 186 | <a href="#writedp"><tt>writedp</tt></a>, |
| 187 | <a href="#writedp"><tt>wdp</tt></a> |
| 188 | </td><td> |
| 189 | ADDR DATA |
| 190 | </td><td> |
| 191 | Write DP register. |
| 192 | </td></tr> |
| 193 | |
| 194 | <tr><td colspan="3"><b>Device</b></td></tr> |
| 195 | |
| 196 | <tr><td> |
| 197 | <a href="#reset"><tt>reset</tt></a> |
| 198 | </td><td> |
| 199 | [halt|-halt|-h] [TYPE] |
| 200 | </td><td> |
| 201 | Reset the target, optionally with halt and/or specifying the reset type. |
| 202 | </td></tr> |
| 203 | |
| 204 | <tr><td> |
| 205 | <a href="#unlock"><tt>unlock</tt></a> |
| 206 | </td><td> |
| 207 | </td><td> |
| 208 | Unlock security on the target. |
| 209 | </td></tr> |
| 210 | |
| 211 | <tr><td colspan="3"><b>Gdbserver</b></td></tr> |
| 212 | |
| 213 | <tr><td> |
| 214 | <a href="#exit"><tt>exit</tt></a> |
| 215 | </td><td> |
| 216 | </td><td> |
| 217 | Terminate running gdbservers in this session. |
| 218 | </td></tr> |
| 219 | |
| 220 | <tr><td colspan="3"><b>General</b></td></tr> |
| 221 | |
| 222 | <tr><td> |
| 223 | <a href="#help"><tt>help</tt></a>, |
| 224 | <a href="#help"><tt>?</tt></a> |
| 225 | </td><td> |
| 226 | [CMD] |
| 227 | </td><td> |
| 228 | Show help for commands. |
| 229 | </td></tr> |
| 230 | |
| 231 | <tr><td colspan="3"><b>Memory</b></td></tr> |
| 232 | |
| 233 | <tr><td> |
| 234 | <a href="#compare"><tt>compare</tt></a>, |
| 235 | <a href="#compare"><tt>cmp</tt></a> |
| 236 | </td><td> |
| 237 | ADDR [LEN] FILENAME |
| 238 | </td><td> |
| 239 | Compare a memory range against a binary file. |
| 240 | </td></tr> |
| 241 | |
| 242 | <tr><td> |
| 243 | <a href="#disasm"><tt>disasm</tt></a>, |
| 244 | <a href="#disasm"><tt>d</tt></a> |
| 245 | </td><td> |
| 246 | [-c/--center] ADDR [LEN] |
| 247 | </td><td> |
| 248 | Disassemble instructions at an address. |
| 249 | </td></tr> |
| 250 | |
| 251 | <tr><td> |
| 252 | <a href="#erase"><tt>erase</tt></a> |
| 253 | </td><td> |
| 254 | [ADDR] [COUNT] |
| 255 | </td><td> |
| 256 | Erase all internal flash or a range of sectors. |
| 257 | </td></tr> |
| 258 | |
| 259 | <tr><td> |
| 260 | <a href="#fill"><tt>fill</tt></a> |
| 261 | </td><td> |
| 262 | [SIZE] ADDR LEN PATTERN |
| 263 | </td><td> |
| 264 | Fill a range of memory with a pattern. |
| 265 | </td></tr> |
| 266 | |
| 267 | <tr><td> |
| 268 | <a href="#find"><tt>find</tt></a> |
| 269 | </td><td> |
| 270 | [-n] ADDR LEN BYTE+ |
| 271 | </td><td> |
| 272 | Search for a value in memory within the given address range. |
| 273 | </td></tr> |
| 274 | |
| 275 | <tr><td> |
| 276 | <a href="#load"><tt>load</tt></a> |
| 277 | </td><td> |
| 278 | FILENAME [ADDR] |
| 279 | </td><td> |
| 280 | Load a binary, hex, or elf file with optional base address. |
| 281 | </td></tr> |
| 282 | |
| 283 | <tr><td> |
| 284 | <a href="#loadmem"><tt>loadmem</tt></a> |
| 285 | </td><td> |
| 286 | ADDR FILENAME |
| 287 | </td><td> |
| 288 | Load a binary file to an address in memory (RAM or flash). |
| 289 | </td></tr> |
| 290 | |
| 291 | <tr><td> |
| 292 | <a href="#read16"><tt>read16</tt></a>, |
| 293 | <a href="#read16"><tt>rh</tt></a> |
| 294 | </td><td> |
| 295 | ADDR [LEN] |
| 296 | </td><td> |
| 297 | Read 16-bit halfwords. |
| 298 | </td></tr> |
| 299 | |
| 300 | <tr><td> |
| 301 | <a href="#read32"><tt>read32</tt></a>, |
| 302 | <a href="#read32"><tt>rw</tt></a> |
| 303 | </td><td> |
| 304 | ADDR [LEN] |
| 305 | </td><td> |
| 306 | Read 32-bit words. |
| 307 | </td></tr> |
| 308 | |
| 309 | <tr><td> |
| 310 | <a href="#read64"><tt>read64</tt></a>, |
| 311 | <a href="#read64"><tt>rd</tt></a> |
| 312 | </td><td> |
| 313 | ADDR [LEN] |
| 314 | </td><td> |
| 315 | Read 64-bit words. |
| 316 | </td></tr> |
| 317 | |
| 318 | <tr><td> |
| 319 | <a href="#read8"><tt>read8</tt></a>, |
| 320 | <a href="#read8"><tt>rb</tt></a> |
| 321 | </td><td> |
| 322 | ADDR [LEN] |
| 323 | </td><td> |
| 324 | Read 8-bit bytes. |
| 325 | </td></tr> |
| 326 | |
| 327 | <tr><td> |
| 328 | <a href="#savemem"><tt>savemem</tt></a> |
| 329 | </td><td> |
| 330 | ADDR LEN FILENAME |
| 331 | </td><td> |
| 332 | Save a range of memory to a binary file. |
| 333 | </td></tr> |
| 334 | |
| 335 | <tr><td> |
| 336 | <a href="#write16"><tt>write16</tt></a>, |
| 337 | <a href="#write16"><tt>wh</tt></a> |
| 338 | </td><td> |
| 339 | ADDR DATA+ |
| 340 | </td><td> |
| 341 | Write 16-bit halfwords to memory. |
| 342 | </td></tr> |
| 343 | |
| 344 | <tr><td> |
| 345 | <a href="#write32"><tt>write32</tt></a>, |
| 346 | <a href="#write32"><tt>ww</tt></a> |
| 347 | </td><td> |
| 348 | ADDR DATA+ |
| 349 | </td><td> |
| 350 | Write 32-bit words to memory. |
| 351 | </td></tr> |
| 352 | |
| 353 | <tr><td> |
| 354 | <a href="#write64"><tt>write64</tt></a>, |
| 355 | <a href="#write64"><tt>wd</tt></a> |
| 356 | </td><td> |
| 357 | ADDR DATA... |
| 358 | </td><td> |
| 359 | Write 64-bit double-words to memory. |
| 360 | </td></tr> |
| 361 | |
| 362 | <tr><td> |
| 363 | <a href="#write8"><tt>write8</tt></a>, |
| 364 | <a href="#write8"><tt>wb</tt></a> |
| 365 | </td><td> |
| 366 | ADDR DATA+ |
| 367 | </td><td> |
| 368 | Write 8-bit bytes to memory. |
| 369 | </td></tr> |
| 370 | |
| 371 | <tr><td colspan="3"><b>Nrf91</b></td></tr> |
| 372 | |
| 373 | <tr><td> |
| 374 | <a href="#nrf91-update-modem-fw"><tt>nrf91-update-modem-fw</tt></a> |
| 375 | </td><td> |
| 376 | [-f] mfw_nrf91xx_x.x.x.zip |
| 377 | </td><td> |
| 378 | Update modem firmware for an nRF91 target. |
| 379 | </td></tr> |
| 380 | |
| 381 | <tr><td colspan="3"><b>Openocd_compatibility</b></td></tr> |
| 382 | |
| 383 | <tr><td> |
| 384 | <a href="#init"><tt>init</tt></a> |
| 385 | </td><td> |
| 386 | </td><td> |
| 387 | Ignored; for OpenOCD compatibility. |
| 388 | </td></tr> |
| 389 | |
| 390 | <tr><td colspan="3"><b>Probe</b></td></tr> |
| 391 | |
| 392 | <tr><td> |
| 393 | <a href="#flushprobe"><tt>flushprobe</tt></a> |
| 394 | </td><td> |
| 395 | </td><td> |
| 396 | Ensure all debug probe requests have been completed. |
| 397 | </td></tr> |
| 398 | |
| 399 | <tr><td colspan="3"><b>Registers</b></td></tr> |
| 400 | |
| 401 | <tr><td> |
| 402 | <a href="#reg"><tt>reg</tt></a>, |
| 403 | <a href="#reg"><tt>rr</tt></a> |
| 404 | </td><td> |
| 405 | [-p] [-f] [REG...] |
| 406 | </td><td> |
| 407 | Print core or peripheral register(s). |
| 408 | </td></tr> |
| 409 | |
| 410 | <tr><td> |
| 411 | <a href="#wreg"><tt>wreg</tt></a>, |
| 412 | <a href="#wreg"><tt>wr</tt></a> |
| 413 | </td><td> |
| 414 | [-r] [-p] [-f] REG VALUE |
| 415 | </td><td> |
| 416 | Set the value of a core or peripheral register. |
| 417 | </td></tr> |
| 418 | |
| 419 | <tr><td colspan="3"><b>Rtt</b></td></tr> |
| 420 | |
| 421 | <tr><td> |
| 422 | <a href="#rtt"><tt>rtt</tt></a> |
| 423 | </td><td> |
| 424 | rtt {setup,start,stop,channels,server} |
| 425 | </td><td> |
| 426 | Control SEGGER RTT compatible interface. |
| 427 | </td></tr> |
| 428 | |
| 429 | <tr><td colspan="3"><b>Semihosting</b></td></tr> |
| 430 | |
| 431 | <tr><td> |
| 432 | <a href="#arm"><tt>arm</tt></a> |
| 433 | </td><td> |
| 434 | semihosting {enable,disable} |
| 435 | </td><td> |
| 436 | Enable or disable semihosting. |
| 437 | </td></tr> |
| 438 | |
| 439 | <tr><td colspan="3"><b>Servers</b></td></tr> |
| 440 | |
| 441 | <tr><td> |
| 442 | <a href="#gdbserver"><tt>gdbserver</tt></a> |
| 443 | </td><td> |
| 444 | {start,stop,status} |
| 445 | </td><td> |
| 446 | Control the gdbserver for the selected core. |
| 447 | </td></tr> |
| 448 | |
| 449 | <tr><td> |
| 450 | <a href="#probeserver"><tt>probeserver</tt></a> |
| 451 | </td><td> |
| 452 | {start,stop,status} |
| 453 | </td><td> |
| 454 | Control the debug probe server. |
| 455 | </td></tr> |
| 456 | |
| 457 | <tr><td colspan="3"><b>Symbols</b></td></tr> |
| 458 | |
| 459 | <tr><td> |
| 460 | <a href="#symbol"><tt>symbol</tt></a> |
| 461 | </td><td> |
| 462 | NAME |
| 463 | </td><td> |
| 464 | Show a symbol's value. |
| 465 | </td></tr> |
| 466 | |
| 467 | <tr><td> |
| 468 | <a href="#where"><tt>where</tt></a> |
| 469 | </td><td> |
| 470 | [ADDR] |
| 471 | </td><td> |
| 472 | Show symbol, file, and line for address. |
| 473 | </td></tr> |
| 474 | |
| 475 | <tr><td colspan="3"><b>Target</b></td></tr> |
| 476 | |
| 477 | <tr><td> |
| 478 | <a href="#status"><tt>status</tt></a>, |
| 479 | <a href="#status"><tt>st</tt></a> |
| 480 | </td><td> |
| 481 | </td><td> |
| 482 | Show the target's current state. |
| 483 | </td></tr> |
| 484 | |
| 485 | <tr><td colspan="3"><b>Threads</b></td></tr> |
| 486 | |
| 487 | <tr><td> |
| 488 | <a href="#threads"><tt>threads</tt></a> |
| 489 | </td><td> |
| 490 | {flush,enable,disable,status} |
| 491 | </td><td> |
| 492 | Control thread awareness. |
| 493 | </td></tr> |
| 494 | |
| 495 | <tr><td colspan="3"><b>Utility</b></td></tr> |
| 496 | |
| 497 | <tr><td> |
| 498 | <a href="#sleep"><tt>sleep</tt></a> |
| 499 | </td><td> |
| 500 | MILLISECONDS |
| 501 | </td><td> |
| 502 | Sleep for a number of milliseconds before continuing. |
| 503 | </td></tr> |
| 504 | |
| 505 | <tr><td colspan="3"><b>Values</b></td></tr> |
| 506 | |
| 507 | <tr><td> |
| 508 | <a href="#set"><tt>set</tt></a> |
| 509 | </td><td> |
| 510 | NAME VALUE |
| 511 | </td><td> |
| 512 | Set a value. |
| 513 | </td></tr> |
| 514 | |
| 515 | <tr><td> |
| 516 | <a href="#show"><tt>show</tt></a> |
| 517 | </td><td> |
| 518 | NAME |
| 519 | </td><td> |
| 520 | Display a value. |
| 521 | </td></tr> |
| 522 | |
| 523 | |
| 524 | </table> |
| 525 | |
| 526 | |
| 527 | All values |
| 528 | ---------- |
| 529 | |
| 530 | Values represent a setting or piece of information that can be read and/or changed. They are accessed with |
| 531 | the [`show`](#show) and [`set`](#set) commands. The "Access" column of the table below shows whether the |
| 532 | command can be read, written, or both. |
| 533 | |
| 534 | <table> |
| 535 | |
| 536 | <tr><th>Value</th><th>Access</th><th>Description</th></tr> |
| 537 | |
| 538 | <tr><td> |
| 539 | <a href="#accessible-pins"><tt>accessible-pins</tt></a> |
| 540 | </td><td> |
| 541 | read-write |
| 542 | </td><td> |
| 543 | Display which debug probe pins can be read and written with the 'pins' value. |
| 544 | </td></tr> |
| 545 | |
| 546 | <tr><td> |
| 547 | <a href="#aps"><tt>aps</tt></a> |
| 548 | </td><td> |
| 549 | read-only |
| 550 | </td><td> |
| 551 | List discovered Access Ports. |
| 552 | </td></tr> |
| 553 | |
| 554 | <tr><td> |
| 555 | <a href="#cores"><tt>cores</tt></a> |
| 556 | </td><td> |
| 557 | read-only |
| 558 | </td><td> |
| 559 | Information about CPU cores in the target. |
| 560 | </td></tr> |
| 561 | |
| 562 | <tr><td> |
| 563 | <a href="#debug-sequences"><tt>debug-sequences</tt></a> |
| 564 | </td><td> |
| 565 | read-only |
| 566 | </td><td> |
| 567 | Show the available debug sequences from the target's DFP. |
| 568 | </td></tr> |
| 569 | |
| 570 | <tr><td> |
| 571 | <a href="#fault"><tt>fault</tt></a> |
| 572 | </td><td> |
| 573 | read-only |
| 574 | </td><td> |
| 575 | Fault status information. |
| 576 | </td></tr> |
| 577 | |
| 578 | <tr><td> |
| 579 | <a href="#frequency"><tt>frequency</tt></a> |
| 580 | </td><td> |
| 581 | write-only |
| 582 | </td><td> |
| 583 | Set SWD or JTAG clock frequency in Hertz. |
| 584 | </td></tr> |
| 585 | |
| 586 | <tr><td> |
| 587 | <a href="#graph"><tt>graph</tt></a> |
| 588 | </td><td> |
| 589 | read-only |
| 590 | </td><td> |
| 591 | Print the target object graph. |
| 592 | </td></tr> |
| 593 | |
| 594 | <tr><td> |
| 595 | <a href="#hnonsec"><tt>hnonsec</tt></a> |
| 596 | </td><td> |
| 597 | read-write |
| 598 | </td><td> |
| 599 | The current HNONSEC attribute value used by the selected MEM-AP. |
| 600 | </td></tr> |
| 601 | |
| 602 | <tr><td> |
| 603 | <a href="#hprot"><tt>hprot</tt></a>, |
| 604 | <a href="#hprot"><tt>memap_attr</tt></a> |
| 605 | </td><td> |
| 606 | read-write |
| 607 | </td><td> |
| 608 | The current memory transfer attributes value used by the selected MEM-AP. |
| 609 | </td></tr> |
| 610 | |
| 611 | <tr><td> |
| 612 | <a href="#locked"><tt>locked</tt></a> |
| 613 | </td><td> |
| 614 | read-only |
| 615 | </td><td> |
| 616 | Report whether the target is locked. |
| 617 | </td></tr> |
| 618 | |
| 619 | <tr><td> |
| 620 | <a href="#log"><tt>log</tt></a> |
| 621 | </td><td> |
| 622 | write-only |
| 623 | </td><td> |
| 624 | Set log level to one of 'debug', 'info', 'warning', 'error', 'critical'. |
| 625 | </td></tr> |
| 626 | |
| 627 | <tr><td> |
| 628 | <a href="#map"><tt>map</tt></a> |
| 629 | </td><td> |
| 630 | read-only |
| 631 | </td><td> |
| 632 | Target memory map. |
| 633 | </td></tr> |
| 634 | |
| 635 | <tr><td> |
| 636 | <a href="#mem-ap"><tt>mem-ap</tt></a> |
| 637 | </td><td> |
| 638 | read-write |
| 639 | </td><td> |
| 640 | The currently selected MEM-AP used for memory read/write commands. |
| 641 | </td></tr> |
| 642 | |
| 643 | <tr><td> |
| 644 | <a href="#nreset"><tt>nreset</tt></a> |
| 645 | </td><td> |
| 646 | read-write |
| 647 | </td><td> |
| 648 | Current nRESET signal state. |
| 649 | </td></tr> |
| 650 | |
| 651 | <tr><td> |
| 652 | <a href="#option"><tt>option</tt></a> |
| 653 | </td><td> |
| 654 | read-write |
| 655 | </td><td> |
| 656 | The current value of one or more session options. |
| 657 | </td></tr> |
| 658 | |
| 659 | <tr><td> |
| 660 | <a href="#peripherals"><tt>peripherals</tt></a> |
| 661 | </td><td> |
| 662 | read-only |
| 663 | </td><td> |
| 664 | List of target peripheral instances. |
| 665 | </td></tr> |
| 666 | |
| 667 | <tr><td> |
| 668 | <a href="#pins"><tt>pins</tt></a> |
| 669 | </td><td> |
| 670 | read-write |
| 671 | </td><td> |
| 672 | Current debug probe protocol I/O pin states. |
| 673 | </td></tr> |
| 674 | |
| 675 | <tr><td> |
| 676 | <a href="#probe-uid"><tt>probe-uid</tt></a>, |
| 677 | <a href="#probe-uid"><tt>uid</tt></a> |
| 678 | </td><td> |
| 679 | read-only |
| 680 | </td><td> |
| 681 | Target's unique ID. |
| 682 | </td></tr> |
| 683 | |
| 684 | <tr><td> |
| 685 | <a href="#register-groups"><tt>register-groups</tt></a> |
| 686 | </td><td> |
| 687 | read-only |
| 688 | </td><td> |
| 689 | Display available register groups for the selected core. |
| 690 | </td></tr> |
| 691 | |
| 692 | <tr><td> |
| 693 | <a href="#reset-type"><tt>reset-type</tt></a> |
| 694 | </td><td> |
| 695 | read-write |
| 696 | </td><td> |
| 697 | Show reset configuration and all available reset types for each core. Set current reset type. |
| 698 | </td></tr> |
| 699 | |
| 700 | <tr><td> |
| 701 | <a href="#step-into-interrupts"><tt>step-into-interrupts</tt></a>, |
| 702 | <a href="#step-into-interrupts"><tt>si</tt></a> |
| 703 | </td><td> |
| 704 | read-write |
| 705 | </td><td> |
| 706 | Display whether interrupts are enabled when single stepping. |
| 707 | </td></tr> |
| 708 | |
| 709 | <tr><td> |
| 710 | <a href="#target"><tt>target</tt></a> |
| 711 | </td><td> |
| 712 | read-only |
| 713 | </td><td> |
| 714 | General target information. |
| 715 | </td></tr> |
| 716 | |
| 717 | <tr><td> |
| 718 | <a href="#vector-catch"><tt>vector-catch</tt></a>, |
| 719 | <a href="#vector-catch"><tt>vc</tt></a> |
| 720 | </td><td> |
| 721 | read-write |
| 722 | </td><td> |
| 723 | Show current vector catch settings. |
| 724 | </td></tr> |
| 725 | |
| 726 | |
| 727 | </table> |
| 728 | |
| 729 | |
| 730 | Command details |
| 731 | --------------- |
| 732 | |
| 733 | ### Breakpoints |
| 734 | |
| 735 | ##### `break` |
| 736 | |
| 737 | **Usage**: break ADDR \ |
| 738 | Set a breakpoint address. |
| 739 | |
| 740 | |
| 741 | ##### `lsbreak` |
| 742 | |
| 743 | **Usage**: lsbreak \ |
| 744 | List breakpoints. |
| 745 | |
| 746 | |
| 747 | ##### `lswatch` |
| 748 | |
| 749 | **Usage**: lswatch \ |
| 750 | List watchpoints. |
| 751 | |
| 752 | |
| 753 | ##### `rmbreak` |
| 754 | |
| 755 | **Usage**: rmbreak ADDR \ |
| 756 | Remove a breakpoint. |
| 757 | |
| 758 | |
| 759 | ##### `rmwatch` |
| 760 | |
| 761 | **Usage**: rmwatch ADDR [r|w|rw] [1|2|4] \ |
| 762 | Remove watchpoint(s). Access type and size are optional. All watchpoints matching the specified parameters will be removed. |
| 763 | |
| 764 | |
| 765 | ##### `watch` |
| 766 | |
| 767 | **Usage**: watch ADDR [r|w|rw] [1|2|4] \ |
| 768 | Set a watchpoint address, and optional access type (default rw) and size (4). |
| 769 | |
| 770 | |
| 771 | ### Bringup |
| 772 | These commands are meant to be used when starting up Commander in no-init mode. They are primarily useful for low-level debugging of debug infrastructure on a new chip. |
| 773 | |
| 774 | ##### `initdp` |
| 775 | |
| 776 | **Usage**: initdp \ |
| 777 | Init DP and power up debug. |
| 778 | |
| 779 | |
| 780 | ##### `makeap` |
| 781 | |
| 782 | **Usage**: makeap APSEL \ |
| 783 | Creates a new AP object for the given APSEL. The type of AP, MEM-AP or generic, is autodetected. |
| 784 | |
| 785 | |
| 786 | ##### `reinit` |
| 787 | |
| 788 | **Usage**: reinit \ |
| 789 | Reinitialize the target object. |
| 790 | |
| 791 | |
| 792 | ### Commander |
| 793 | |
| 794 | ##### `exit` |
| 795 | |
| 796 | **Aliases**: `quit` \ |
| 797 | **Usage**: exit \ |
| 798 | Quit pyocd commander. |
| 799 | |
| 800 | |
| 801 | ##### `list` |
| 802 | |
| 803 | **Usage**: list \ |
| 804 | Show available targets. |
| 805 | |
| 806 | |
| 807 | ### Core |
| 808 | |
| 809 | ##### `continue` |
| 810 | |
| 811 | **Aliases**: `c`, `go`, `g` \ |
| 812 | **Usage**: continue \ |
| 813 | Resume execution of the target. The target's state is read back after resuming. If the target is not running, then it's state is reported. For instance, if the target is halted immediately after resuming, a debug event such as a breakpoint most likely occurred. |
| 814 | |
| 815 | |
| 816 | ##### `core` |
| 817 | |
| 818 | **Usage**: core [NUMBER | NAME] \ |
| 819 | Select CPU core by number or name, or print selected core. |
| 820 | |
| 821 | |
| 822 | ##### `halt` |
| 823 | |
| 824 | **Aliases**: `h` \ |
| 825 | **Usage**: halt \ |
| 826 | Halt the target. |
| 827 | |
| 828 | |
| 829 | ##### `step` |
| 830 | |
| 831 | **Aliases**: `s` \ |
| 832 | **Usage**: step [COUNT] \ |
| 833 | Step one or more instructions. |
| 834 | |
| 835 | |
| 836 | ### Dap |
| 837 | |
| 838 | ##### `readap` |
| 839 | |
| 840 | **Aliases**: `rap` \ |
| 841 | **Usage**: readap [APSEL] ADDR \ |
| 842 | Read AP register. |
| 843 | |
| 844 | |
| 845 | ##### `readdp` |
| 846 | |
| 847 | **Aliases**: `rdp` \ |
| 848 | **Usage**: readdp ADDR \ |
| 849 | Read DP register. |
| 850 | |
| 851 | |
| 852 | ##### `writeap` |
| 853 | |
| 854 | **Aliases**: `wap` \ |
| 855 | **Usage**: writeap [APSEL] ADDR DATA \ |
| 856 | Write AP register. |
| 857 | |
| 858 | |
| 859 | ##### `writedp` |
| 860 | |
| 861 | **Aliases**: `wdp` \ |
| 862 | **Usage**: writedp ADDR DATA \ |
| 863 | Write DP register. |
| 864 | |
| 865 | |
| 866 | ### Device |
| 867 | |
| 868 | ##### `reset` |
| 869 | |
| 870 | **Usage**: reset [halt|-halt|-h] [TYPE] \ |
| 871 | Reset the target, optionally with halt and/or specifying the reset type. The reset type must be one of 'default', 'hardware', 'system', 'core', 'n_srst', 'sysresetreq', 'vectreset' or 'emulated'. |
| 872 | |
| 873 | |
| 874 | ##### `unlock` |
| 875 | |
| 876 | **Usage**: unlock \ |
| 877 | Unlock security on the target. |
| 878 | |
| 879 | |
| 880 | ### Gdbserver |
| 881 | |
| 882 | ##### `exit` |
| 883 | |
| 884 | **Usage**: exit \ |
| 885 | Terminate running gdbservers in this session. For the pyocd gdbserver subcommand, terminating gdbservers will cause the process to exit. The effect when the gdbserver(s) are running in a different environment depends on that program. Note that gdb will still believe the connection to be valid after this command completes, so executing the 'disconnect' command is a necessity. |
| 886 | |
| 887 | |
| 888 | ### General |
| 889 | |
| 890 | ##### `help` |
| 891 | |
| 892 | **Aliases**: `?` \ |
| 893 | **Usage**: help [CMD] \ |
| 894 | Show help for commands. |
| 895 | |
| 896 | |
| 897 | ### Memory |
| 898 | |
| 899 | ##### `compare` |
| 900 | |
| 901 | **Aliases**: `cmp` \ |
| 902 | **Usage**: compare ADDR [LEN] FILENAME \ |
| 903 | Compare a memory range against a binary file. If the length is not provided, then the length of the file is used. |
| 904 | |
| 905 | |
| 906 | ##### `disasm` |
| 907 | |
| 908 | **Aliases**: `d` \ |
| 909 | **Usage**: disasm [-c/--center] ADDR [LEN] \ |
| 910 | Disassemble instructions at an address. The length argument is in bytes and is optional, with a default of 6. If the -c option is used, the disassembly is centered on the given address. Otherwise the disassembly begins at the given address. |
| 911 | |
| 912 | |
| 913 | ##### `erase` |
| 914 | |
| 915 | **Usage**: erase [ADDR] [COUNT] \ |
| 916 | Erase all internal flash or a range of sectors. |
| 917 | |
| 918 | |
| 919 | ##### `fill` |
| 920 | |
| 921 | **Usage**: fill [SIZE] ADDR LEN PATTERN \ |
| 922 | Fill a range of memory with a pattern. The optional SIZE parameter must be one of 8, 16, or 32. If not provided, the size is determined by the pattern value's most significant set bit. Only RAM regions may be filled. |
| 923 | |
| 924 | |
| 925 | ##### `find` |
| 926 | |
| 927 | **Usage**: find [-n] ADDR LEN BYTE+ \ |
| 928 | Search for a value in memory within the given address range. A pattern of any number of bytes can be searched for. Each BYTE parameter must be an 8-bit value. If the -n argument is passed, the search is negated and looks for the first set of bytes that does not match the provided values. |
| 929 | |
| 930 | |
| 931 | ##### `load` |
| 932 | |
| 933 | **Usage**: load FILENAME [ADDR] \ |
| 934 | Load a binary, hex, or elf file with optional base address. |
| 935 | |
| 936 | |
| 937 | ##### `loadmem` |
| 938 | |
| 939 | **Usage**: loadmem ADDR FILENAME \ |
| 940 | Load a binary file to an address in memory (RAM or flash). This command is deprecated in favour of the more flexible 'load'. |
| 941 | |
| 942 | |
| 943 | ##### `read16` |
| 944 | |
| 945 | **Aliases**: `rh` \ |
| 946 | **Usage**: read16 ADDR [LEN] \ |
| 947 | Read 16-bit halfwords. Optional length parameter is the number of bytes (not half-words) to read. It must be divisible by 2. If the length is not provided, one halfword is read. The address may be unaligned. |
| 948 | |
| 949 | |
| 950 | ##### `read32` |
| 951 | |
| 952 | **Aliases**: `rw` \ |
| 953 | **Usage**: read32 ADDR [LEN] \ |
| 954 | Read 32-bit words. Optional length parameter is the number of bytes (not words) to read. It must be divisible by 4. If the length is not provided, one word is read. The address may be unaligned. |
| 955 | |
| 956 | |
| 957 | ##### `read64` |
| 958 | |
| 959 | **Aliases**: `rd` \ |
| 960 | **Usage**: read64 ADDR [LEN] \ |
| 961 | Read 64-bit words. Optional length parameter is the number of bytes (not double-words!) to read. It must be divisible by 8. If the length is not provided, one word is read. The address may be unaligned. |
| 962 | |
| 963 | |
| 964 | ##### `read8` |
| 965 | |
| 966 | **Aliases**: `rb` \ |
| 967 | **Usage**: read8 ADDR [LEN] \ |
| 968 | Read 8-bit bytes. Optional length parameter is the number of bytes to read. If the length is not provided, one byte is read. |
| 969 | |
| 970 | |
| 971 | ##### `savemem` |
| 972 | |
| 973 | **Usage**: savemem ADDR LEN FILENAME \ |
| 974 | Save a range of memory to a binary file. |
| 975 | |
| 976 | |
| 977 | ##### `write16` |
| 978 | |
| 979 | **Aliases**: `wh` \ |
| 980 | **Usage**: write16 ADDR DATA+ \ |
| 981 | Write 16-bit halfwords to memory. The data arguments are 16-bit halfwords in big-endian format and are written as little-endian. The address may be unaligned. Can write to both RAM and flash. Flash writes are subject to minimum write size and alignment, and the flash page must have been previously erased. |
| 982 | |
| 983 | |
| 984 | ##### `write32` |
| 985 | |
| 986 | **Aliases**: `ww` \ |
| 987 | **Usage**: write32 ADDR DATA+ \ |
| 988 | Write 32-bit words to memory. The data arguments are 32-bit words in big-endian format and are written as little-endian. The address may be unaligned. Can write to both RAM and flash. Flash writes are subject to minimum write size and alignment, and the flash page must have been previously erased. |
| 989 | |
| 990 | |
| 991 | ##### `write64` |
| 992 | |
| 993 | **Aliases**: `wd` \ |
| 994 | **Usage**: write64 ADDR DATA... \ |
| 995 | Write 64-bit double-words to memory. The data arguments are 64-bit words in big-endian format and are written as little-endian. The address may be unaligned. Can write to both RAM and flash. Flash writes are subject to minimum write size and alignment, and the flash page must have been previously erased. |
| 996 | |
| 997 | |
| 998 | ##### `write8` |
| 999 | |
| 1000 | **Aliases**: `wb` \ |
| 1001 | **Usage**: write8 ADDR DATA+ \ |
| 1002 | Write 8-bit bytes to memory. The data arguments are 8-bit bytes. Can write to both RAM and flash. Flash writes are subject to minimum write size and alignment, and the flash page must have been previously erased. |
| 1003 | |
| 1004 | |
| 1005 | ### Nrf91 |
| 1006 | |
| 1007 | ##### `nrf91-update-modem-fw` |
| 1008 | |
| 1009 | **Usage**: nrf91-update-modem-fw [-f] mfw_nrf91xx_x.x.x.zip \ |
| 1010 | Update modem firmware for an nRF91 target. If -f is specified, modem firmware is written to the device, even if the correct version is already present. |
| 1011 | |
| 1012 | |
| 1013 | ### Openocd compatibility |
| 1014 | |
| 1015 | ##### `init` |
| 1016 | |
| 1017 | **Usage**: init \ |
| 1018 | Ignored; for OpenOCD compatibility. |
| 1019 | |
| 1020 | |
| 1021 | ### Probe |
| 1022 | |
| 1023 | ##### `flushprobe` |
| 1024 | |
| 1025 | **Usage**: flushprobe \ |
| 1026 | Ensure all debug probe requests have been completed. |
| 1027 | |
| 1028 | |
| 1029 | ### Registers |
| 1030 | |
| 1031 | ##### `reg` |
| 1032 | |
| 1033 | **Aliases**: `rr` \ |
| 1034 | **Usage**: reg [-p] [-f] [REG...] \ |
| 1035 | Print core or peripheral register(s). If no arguments are provided, the 'general' core register group will be printed. Either a core register name, the name of a peripheral, or a peripheral.register can be provided. When a peripheral name is provided without a register, all registers in the peripheral will be printed. The -p option forces evaluating the register name as a peripheral register name. If the -f option is passed, then individual fields of peripheral registers will be printed in addition to the full value. |
| 1036 | |
| 1037 | |
| 1038 | ##### `wreg` |
| 1039 | |
| 1040 | **Aliases**: `wr` \ |
| 1041 | **Usage**: wreg [-r] [-p] [-f] REG VALUE \ |
| 1042 | Set the value of a core or peripheral register. The REG parameter must be a core register name or a peripheral.register. When a peripheral register is written, if the -r option is passed then it is read back and the updated value printed. The -p option forces evaluating the register name as a peripheral register name. If the -f option is passed, then individual fields of peripheral registers will be printed in addition to the full value. |
| 1043 | |
| 1044 | |
| 1045 | ### Rtt |
| 1046 | |
| 1047 | ##### `rtt` |
| 1048 | |
| 1049 | **Usage**: rtt rtt {setup,start,stop,channels,server} \ |
| 1050 | Control SEGGER RTT compatible interface. |
| 1051 | |
| 1052 | |
| 1053 | ### Semihosting |
| 1054 | |
| 1055 | ##### `arm` |
| 1056 | |
| 1057 | **Usage**: arm semihosting {enable,disable} \ |
| 1058 | Enable or disable semihosting. Provided for compatibility with OpenOCD. The same functionality can be achieved by setting the 'enable_semihosting' session option. |
| 1059 | |
| 1060 | |
| 1061 | ### Servers |
| 1062 | |
| 1063 | ##### `gdbserver` |
| 1064 | |
| 1065 | **Usage**: gdbserver {start,stop,status} \ |
| 1066 | Control the gdbserver for the selected core. The action argument should be either 'start', 'stop', or 'status'. Use the 'gdbserver_port' and 'telnet_port' session options to control the ports the gdbserver uses. |
| 1067 | |
| 1068 | |
| 1069 | ##### `probeserver` |
| 1070 | |
| 1071 | **Usage**: probeserver {start,stop,status} \ |
| 1072 | Control the debug probe server. The action argument should be either 'start', 'stop', or 'status. Use the 'probeserver.port' option to control the TCP port the server uses. |
| 1073 | |
| 1074 | |
| 1075 | ### Symbols |
| 1076 | These commands require an ELF to be set. |
| 1077 | |
| 1078 | ##### `symbol` |
| 1079 | |
| 1080 | **Usage**: symbol NAME \ |
| 1081 | Show a symbol's value. An ELF file must have been specified with the --elf option. |
| 1082 | |
| 1083 | |
| 1084 | ##### `where` |
| 1085 | |
| 1086 | **Usage**: where [ADDR] \ |
| 1087 | Show symbol, file, and line for address. The symbol name, source file path, and line number are displayed for the specified address. If no address is given then current PC is used. An ELF file must have been specified with the --elf option. |
| 1088 | |
| 1089 | |
| 1090 | ### Target |
| 1091 | |
| 1092 | ##### `status` |
| 1093 | |
| 1094 | **Aliases**: `st` \ |
| 1095 | **Usage**: status \ |
| 1096 | Show the target's current state. |
| 1097 | |
| 1098 | |
| 1099 | ### Threads |
| 1100 | |
| 1101 | ##### `threads` |
| 1102 | |
| 1103 | **Usage**: threads {flush,enable,disable,status} \ |
| 1104 | Control thread awareness. |
| 1105 | |
| 1106 | |
| 1107 | ### Utility |
| 1108 | |
| 1109 | ##### `sleep` |
| 1110 | |
| 1111 | **Usage**: sleep MILLISECONDS \ |
| 1112 | Sleep for a number of milliseconds before continuing. |
| 1113 | |
| 1114 | |
| 1115 | ### Values |
| 1116 | |
| 1117 | ##### `set` |
| 1118 | |
| 1119 | **Usage**: set NAME VALUE \ |
| 1120 | Set a value. |
| 1121 | |
| 1122 | |
| 1123 | ##### `show` |
| 1124 | |
| 1125 | **Usage**: show NAME \ |
| 1126 | Display a value. |
| 1127 | |
| 1128 | |
| 1129 | |
| 1130 | Value details |
| 1131 | ------------- |
| 1132 | |
| 1133 | ##### `accessible-pins` |
| 1134 | |
| 1135 | **Access**: read-write \ |
| 1136 | **Usage**: show accessible-pins, set accessible-pins VALUE \ |
| 1137 | Display which debug probe pins can be read and written with the 'pins' value. |
| 1138 | |
| 1139 | ##### `aps` |
| 1140 | |
| 1141 | **Access**: read-only \ |
| 1142 | **Usage**: show aps \ |
| 1143 | List discovered Access Ports. |
| 1144 | |
| 1145 | ##### `cores` |
| 1146 | |
| 1147 | **Access**: read-only \ |
| 1148 | **Usage**: show cores \ |
| 1149 | Information about CPU cores in the target. |
| 1150 | |
| 1151 | ##### `debug-sequences` |
| 1152 | |
| 1153 | **Access**: read-only \ |
| 1154 | **Usage**: show debug-sequences \ |
| 1155 | Show the available debug sequences from the target's DFP. Only available for CMSIS-Pack based targets. |
| 1156 | |
| 1157 | ##### `fault` |
| 1158 | |
| 1159 | **Access**: read-only \ |
| 1160 | **Usage**: show fault \ |
| 1161 | Fault status information. By default, only asserted fields are shown. Add -a to command to show all fields. |
| 1162 | |
| 1163 | ##### `frequency` |
| 1164 | |
| 1165 | **Access**: write-only \ |
| 1166 | **Usage**: set frequency VALUE \ |
| 1167 | 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. |
| 1168 | |
| 1169 | ##### `graph` |
| 1170 | |
| 1171 | **Access**: read-only \ |
| 1172 | **Usage**: show graph \ |
| 1173 | Print the target object graph. |
| 1174 | |
| 1175 | ##### `hnonsec` |
| 1176 | |
| 1177 | **Access**: read-write \ |
| 1178 | **Usage**: show hnonsec, set hnonsec VALUE \ |
| 1179 | The current HNONSEC attribute value used by the selected MEM-AP. This value controls whether memory transactions are secure or nonsecure. The value is an integer, either 0 or secure or 1 for nonsecure. |
| 1180 | |
| 1181 | ##### `hprot` |
| 1182 | |
| 1183 | **Aliases**: `memap_attr` \ |
| 1184 | **Access**: read-write \ |
| 1185 | **Usage**: show hprot, set hprot VALUE \ |
| 1186 | The current memory transfer attributes value used by the selected MEM-AP. This integer value controls attributes of memory transfers. It is a direct mapping of the AHB |
| 1187 | or AXI attribute settings, depending on the type of MEM-AP. For AHB-APs, the value is HPROT[4:0]. |
| 1188 | For AXI-APs, the value is {AxPROT[2:0}, AxCACHE[3:0]}, e.g. AxPROT in bits 6-4 and AxCACHE in |
| 1189 | its 3-0. Not all MEM-AP implementations support all attributes. See the Arm Technical Reference |
| 1190 | Manual for your device's MEM-AP for details. |
| 1191 | |
| 1192 | ##### `locked` |
| 1193 | |
| 1194 | **Access**: read-only \ |
| 1195 | **Usage**: show locked \ |
| 1196 | Report whether the target is locked. |
| 1197 | |
| 1198 | ##### `log` |
| 1199 | |
| 1200 | **Access**: write-only \ |
| 1201 | **Usage**: set log VALUE \ |
| 1202 | Set log level to one of 'debug', 'info', 'warning', 'error', 'critical'. If pyocd module names are provided as arguments after the log level then only those modules will have their log level changed. |
| 1203 | |
| 1204 | ##### `map` |
| 1205 | |
| 1206 | **Access**: read-only \ |
| 1207 | **Usage**: show map \ |
| 1208 | Target memory map. |
| 1209 | |
| 1210 | ##### `mem-ap` |
| 1211 | |
| 1212 | **Access**: read-write \ |
| 1213 | **Usage**: show mem-ap, set mem-ap VALUE \ |
| 1214 | The currently selected MEM-AP used for memory read/write commands. When the selected core is changed by the 'core' command, the selected MEM-AP is changed to match. This overrides a user-selected MEM-AP if different from the AP for the newly selected core. |
| 1215 | |
| 1216 | ##### `nreset` |
| 1217 | |
| 1218 | **Access**: read-write \ |
| 1219 | **Usage**: show nreset, set nreset VALUE \ |
| 1220 | Current nRESET signal state. Accepts a value of 0 or 1. |
| 1221 | |
| 1222 | ##### `option` |
| 1223 | |
| 1224 | **Access**: read-write \ |
| 1225 | **Usage**: show option, set option VALUE \ |
| 1226 | The current value of one or more session options. When setting, each argument should follow the form "NAME[=VALUE]". |
| 1227 | |
| 1228 | ##### `peripherals` |
| 1229 | |
| 1230 | **Access**: read-only \ |
| 1231 | **Usage**: show peripherals \ |
| 1232 | List of target peripheral instances. |
| 1233 | |
| 1234 | ##### `pins` |
| 1235 | |
| 1236 | **Access**: read-write \ |
| 1237 | **Usage**: show pins, set pins VALUE \ |
| 1238 | Current debug probe protocol I/O pin states. The pins value is a mask containing the state of all accessible protocol pins. See the `accessible-pins` value for protocol pins that can be read and written by the connected debug probe. |
| 1239 | |
| 1240 | ##### `probe-uid` |
| 1241 | |
| 1242 | **Aliases**: `uid` \ |
| 1243 | **Access**: read-only \ |
| 1244 | **Usage**: show probe-uid \ |
| 1245 | Target's unique ID. |
| 1246 | |
| 1247 | ##### `register-groups` |
| 1248 | |
| 1249 | **Access**: read-only \ |
| 1250 | **Usage**: show register-groups \ |
| 1251 | Display available register groups for the selected core. |
| 1252 | |
| 1253 | ##### `reset-type` |
| 1254 | |
| 1255 | **Access**: read-write \ |
| 1256 | **Usage**: show reset-type, set reset-type VALUE \ |
| 1257 | Show reset configuration and all available reset types for each core. Set current reset type. |
| 1258 | |
| 1259 | ##### `step-into-interrupts` |
| 1260 | |
| 1261 | **Aliases**: `si` \ |
| 1262 | **Access**: read-write \ |
| 1263 | **Usage**: show step-into-interrupts, set step-into-interrupts VALUE \ |
| 1264 | Display whether interrupts are enabled when single stepping. Set to 1 to enable. |
| 1265 | |
| 1266 | ##### `target` |
| 1267 | |
| 1268 | **Access**: read-only \ |
| 1269 | **Usage**: show target \ |
| 1270 | General target information. |
| 1271 | |
| 1272 | ##### `vector-catch` |
| 1273 | |
| 1274 | **Aliases**: `vc` \ |
| 1275 | **Access**: read-write \ |
| 1276 | **Usage**: show vector-catch, set vector-catch VALUE \ |
| 1277 | Show current vector catch settings. When setting, the alue is a concatenation of one letter per enabled source in any order, or 'all' or 'none'. (h=hard fault, b=bus fault, m=mem fault, i=irq err, s=state err, c=check err, p=nocp, r=reset, a=all, n=none). |