Open On-Chip Debugger 0.12.0+dev-00308-g18281b0c4-dirty (2023-09-06-13:26)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : using default value max bank size
adapter
      adapter command group (command valid any time)
  adapter assert |deassert [srst|trst [assert|deassert srst|trst]]
        Controls SRST and TRST lines.
  adapter deassert |assert [srst|trst [deassert|assert srst|trst]]
        Controls SRST and TRST lines.
  adapter driver driver_name
        Select a debug adapter driver (configuration command)
  adapter gpio [
            
            do|tdi|tms|tck|trst|swdio|swdio_dir|swclk|srst|led[gpio_number]
            [-chip chip_number] [-active-high|-active-low]
            [-push-pull|-open-drain|-open-source]

            e|-pull-up|-pull-down][-init-inactive|-init-active|-init-input]
            ]
        gpio adapter command group (configuration command)
  adapter list
        List all built-in debug adapter drivers (command valid any time)
  adapter name
        Returns the name of the currently selected adapter (driver)
        (command valid any time)
  adapter serial serial_string
        Set the serial number of the adapter (configuration command)
  adapter speed [khz]
        With an argument, change to the specified maximum jtag speed.  For
        JTAG, 0 KHz signifies adaptive clocking. With or without argument,
        display current setting. (command valid any time)
  adapter srst
        srst adapter command group (command valid any time)
    adapter srst delay [milliseconds]
          delay after deasserting SRST in ms (command valid any time)
    adapter srst pulse_width [milliseconds]
          SRST assertion pulse width in ms (command valid any time)
  adapter transports transport ...
        Declare transports the adapter supports. (configuration command)
  adapter usb
        usb adapter command group (command valid any time)
    adapter usb location [<bus>-port[.port]...]
          display or set the USB bus location of the USB device
          (configuration command)
add_help_text command_name helptext_string
      Add new command help text; Command can be multiple tokens. (command
      valid any time)
add_script_search_dir <directory>
      dir to search for config files and scripts (command valid any time)
add_usage_text command_name usage_string
      Add new command usage text; command can be multiple tokens. (command
      valid any time)
arm
      ARM command group (command valid any time)
  arm core_state ['arm'|'thumb']
        display/change ARM core state
  arm disassemble address [count ['thumb']]
        disassemble instructions
  arm semihosting ['enable'|'disable']
        activate support for semihosting operations
  arm semihosting_basedir [dir]
        set the base directory for semihosting I/O operations
  arm semihosting_cmdline arguments
        command line arguments to be passed to program
  arm semihosting_fileio ['enable'|'disable']
        activate support for semihosting fileio operations
  arm semihosting_read_user_param
        read parameters in semihosting-user-cmd-0x10X callbacks
  arm semihosting_redirect (disable | tcp <port> ['debug'|'stdio'|'all'])
        redirect semihosting IO
  arm semihosting_resexit ['enable'|'disable']
        activate support for semihosting resumable exit
bindto [name]
      Specify address by name on which to listen for incoming TCP/IP
      connections (configuration command)
capture command
      Capture progress output and return as tcl return value. If the
      progress output was empty, return tcl return value. (command valid
      any time)
command
      core command group (introspection) (command valid any time)
  command mode [command_name ...]
        Returns the command modes allowed by a command: 'any', 'config', or
        'exec'. If no command is specified, returns the current command
        mode. Returns 'unknown' if an unknown command is given. Command can
        be multiple tokens. (command valid any time)
cortex_m
      Cortex-M command group
  cortex_m maskisr ['auto'|'on'|'off'|'steponly']
        mask cortex_m interrupts
  cortex_m reset_config ['sysresetreq'|'vectreset']
        configure software reset handling (command valid any time)
  cortex_m smp [on|off]
        smp handling
  cortex_m smp_gdb
        display/fix current core played to gdb
  cortex_m vector_catch ['all'|'none'|('bus_err'|'chk_err'|...)*]
        configure hardware vectors to trigger debug entry
cti
      CTI commands (configuration command)
  cti create name '-chain-position' name [options ...]
        Creates a new CTI object (command valid any time)
  cti names
        Lists all registered CTI objects by name (command valid any time)
cx32l003.cpu
      target command group (command valid any time)
  cx32l003.cpu arm
        ARM command group (command valid any time)
    cx32l003.cpu arm core_state ['arm'|'thumb']
          display/change ARM core state
    cx32l003.cpu arm disassemble address [count ['thumb']]
          disassemble instructions
    cx32l003.cpu arm semihosting ['enable'|'disable']
          activate support for semihosting operations
    cx32l003.cpu arm semihosting_basedir [dir]
          set the base directory for semihosting I/O operations
    cx32l003.cpu arm semihosting_cmdline arguments
          command line arguments to be passed to program
    cx32l003.cpu arm semihosting_fileio ['enable'|'disable']
          activate support for semihosting fileio operations
    cx32l003.cpu arm semihosting_read_user_param
          read parameters in semihosting-user-cmd-0x10X callbacks
    cx32l003.cpu arm semihosting_redirect (disable | tcp <port>
              ['debug'|'stdio'|'all'])
          redirect semihosting IO
    cx32l003.cpu arm semihosting_resexit ['enable'|'disable']
          activate support for semihosting resumable exit
  cx32l003.cpu arp_examine ['allow-defer']
        used internally for reset processing
  cx32l003.cpu arp_halt
        used internally for reset processing
  cx32l003.cpu arp_halt_gdb
        used internally for reset processing to halt GDB
  cx32l003.cpu arp_poll
        used internally for reset processing
  cx32l003.cpu arp_reset 'assert'|'deassert' halt
        used internally for reset processing
  cx32l003.cpu arp_waitstate statename timeoutmsecs
        used internally for reset processing
  cx32l003.cpu array2mem arrayname bitwidth address count
        Writes Tcl array of 8/16/32 bit numbers to target memory
  cx32l003.cpu cget target_attribute
        returns the specified target attribute (command valid any time)
  cx32l003.cpu configure [target_attribute ...]
        configure a new target for use (command valid any time)
  cx32l003.cpu cortex_m
        Cortex-M command group
    cx32l003.cpu cortex_m maskisr ['auto'|'on'|'off'|'steponly']
          mask cortex_m interrupts
    cx32l003.cpu cortex_m reset_config ['sysresetreq'|'vectreset']
          configure software reset handling (command valid any time)
    cx32l003.cpu cortex_m smp [on|off]
          smp handling
    cx32l003.cpu cortex_m smp_gdb
          display/fix current core played to gdb
    cx32l003.cpu cortex_m vector_catch
              ['all'|'none'|('bus_err'|'chk_err'|...)*]
          configure hardware vectors to trigger debug entry
  cx32l003.cpu curstate
        displays the current state of this target
  cx32l003.cpu eventlist
        displays a table of events defined for this target
  cx32l003.cpu examine_deferred
        used internally for reset processing
  cx32l003.cpu get_reg list
        Get register values from the target
  cx32l003.cpu invoke-event event_name
        invoke handler for specified event
  cx32l003.cpu itm
        itm command group (command valid any time)
    cx32l003.cpu itm port <port> (0|1|on|off)
          Enable or disable ITM stimulus port (command valid any time)
    cx32l003.cpu itm ports (0|1|on|off)
          Enable or disable all ITM stimulus ports (command valid any time)
  cx32l003.cpu mdb address [count]
        Display target memory as 8-bit bytes
  cx32l003.cpu mdd address [count]
        Display target memory as 64-bit words
  cx32l003.cpu mdh address [count]
        Display target memory as 16-bit half-words
  cx32l003.cpu mdw address [count]
        Display target memory as 32-bit words
  cx32l003.cpu mem2array arrayname bitwidth address count
        Loads Tcl array of 8/16/32 bit numbers from target memory
  cx32l003.cpu mwb address data [count]
        Write byte(s) to target memory
  cx32l003.cpu mwd address data [count]
        Write 64-bit word(s) to target memory
  cx32l003.cpu mwh address data [count]
        Write 16-bit half-word(s) to target memory
  cx32l003.cpu mww address data [count]
        Write 32-bit word(s) to target memory
  cx32l003.cpu read_memory address width count ['phys']
        Read Tcl list of 8/16/32/64 bit numbers from target memory
  cx32l003.cpu rtt
        RTT target commands
    cx32l003.cpu rtt channellist
          list available channels
    cx32l003.cpu rtt channels
          list available channels
    cx32l003.cpu rtt polling_interval [interval]
          show or set polling interval in ms
    cx32l003.cpu rtt setup <address> <size> <ID>
          setup RTT (command valid any time)
    cx32l003.cpu rtt start
          start RTT
    cx32l003.cpu rtt stop
          stop RTT
  cx32l003.cpu set_reg dict
        Set target register values
  cx32l003.cpu tpiu
        tpiu command group
    cx32l003.cpu tpiu config (disable | ((external | internal (<filename> |
              <:port> | -)) (sync <port width> | ((manchester | uart)
              <formatter enable>)) <TRACECLKIN freq> [<trace freq>]))
          Configure TPIU features, DEPRECATED, use 'tpiu create' (command
          valid any time)
  cx32l003.cpu was_examined
        used internally for reset processing
  cx32l003.cpu write_memory address width data ['phys']
        Write Tcl list of 8/16/32/64 bit numbers to target memory
cx32l003.dap
      dap instance command group (command valid any time)
  cx32l003.dap apcsw [value [mask]]
        Set CSW default bits (command valid any time)
  cx32l003.dap apid [ap_num]
        return ID register from AP (default currently selected AP)
  cx32l003.dap apreg ap_num reg [value]
        read/write a register from AP (reg is byte address of a word
        register, like 0 4 8...)
  cx32l003.dap apsel [ap_num]
        Set the currently selected AP (default 0) and display the result
        (command valid any time)
  cx32l003.dap baseaddr [ap_num]
        return debug base address from MEM-AP (default currently selected
        AP)
  cx32l003.dap dpreg reg [value]
        read/write a register from DP (reg is byte address (bank << 4 |
        reg) of a word register, like 0 4 8...)
  cx32l003.dap info [ap_num | 'root']
        display ROM table for specified MEM-AP (default currently selected
        AP) or the ADIv6 root ROM table
  cx32l003.dap memaccess [cycles]
        set/get number of extra tck for MEM-AP memory bus access [0-255]
  cx32l003.dap nu_npcx_quirks [enable]
        set/get quirks mode for Nuvoton NPCX controllers (configuration
        command)
  cx32l003.dap ti_be_32_quirks [enable]
        set/get quirks mode for TI TMS450/TMS570 processors (configuration
        command)
dap
      DAP commands (configuration command)
  dap create name '-chain-position' name
        Creates a new DAP instance (command valid any time)
  dap info [ap_num | 'root']
        display ROM table for specified MEM-AP (default MEM-AP of current
        target) or the ADIv6 root ROM table of current target's DAP
  dap init
        Initialize all registered DAP instances (command valid any time)
  dap names
        Lists all registered DAP instances by name (command valid any time)
debug_level number
      Sets the verbosity level of debugging output. 0 shows errors only; 1
      adds warnings; 2 (default) adds other info; 3 adds debugging; 4 adds
      extra verbose debugging. (command valid any time)
echo [-n] string
      Logs a message at "user" priority. Option "-n" suppresses trailing
      newline (command valid any time)
exit
      exit telnet session
find <file>
      print full path to file according to OpenOCD search rules (command
      valid any time)
flash
      NOR flash command group (command valid any time)
  flash bank bank_id driver_name base_address size_bytes chip_width_bytes
            bus_width_bytes target [driver_options ...]
        Define a new bank with the given name, using the specified NOR
        flash driver. (configuration command)
  flash banks
        Display table with information about flash banks. (command valid
        any time)
  flash init
        Initialize flash devices. (configuration command)
  flash list
        Returns a list of details about the flash banks. (command valid any
        time)
gdb_breakpoint_override ('hard'|'soft'|'disable')
      Display or specify type of breakpoint to be used by gdb 'break'
      commands. (command valid any time)
gdb_flash_program ('enable'|'disable')
      enable or disable flash program (configuration command)
gdb_memory_map ('enable'|'disable')
      enable or disable memory map (configuration command)
gdb_port [port_num]
      Normally gdb listens to a TCP/IP port. Each subsequent GDB server
      listens for the next port number after the base port number
      specified. No arguments reports GDB port. "pipe" means listen to
      stdin output to stdout, an integer is base port number, "disabled"
      disables port. Any other string is are interpreted as named pipe to
      listen to. Output pipe is the same name as input pipe, but with 'o'
      appended. (configuration command)
gdb_report_data_abort ('enable'|'disable')
      enable or disable reporting data aborts (configuration command)
gdb_report_register_access_error ('enable'|'disable')
      enable or disable reporting register access errors (configuration
      command)
gdb_save_tdesc
      Save the target description file
gdb_sync
      next stepi will return immediately allowing GDB to fetch register
      state without affecting target state (command valid any time)
gdb_target_description ('enable'|'disable')
      enable or disable target description (configuration command)
help [command_name]
      Show full command help; command can be multiple tokens. (command
      valid any time)
init
      Initializes configured targets and servers.  Changes command mode
      from CONFIG to EXEC.  Unless 'noinit' is called, this command is
      called automatically at the end of startup. (command valid any time)
itm
      itm command group (command valid any time)
  itm port <port> (0|1|on|off)
        Enable or disable ITM stimulus port (command valid any time)
  itm ports (0|1|on|off)
        Enable or disable all ITM stimulus ports (command valid any time)
jlink
      perform jlink management (command valid any time)
  jlink config [<cmd>]
        access the device configuration. If no argument is given this will
        show the device configuration
    jlink config ip [A.B.C.D[/E] [F.G.H.I]]
          set the IP address, where A.B.C.D is the IP address, E the bit of
          the subnet mask, F.G.H.I the subnet mask
    jlink config mac [ff:ff:ff:ff:ff:ff]
          set the MAC Address
    jlink config reset
          undo configuration changes
    jlink config targetpower [on|off]
          set the target power supply
    jlink config usb [0-3]
          set the USB address
    jlink config write
          write configuration to the device
  jlink emucom
        access EMUCOM channel
    jlink emucom read <channel> <length>
          read from a channel
    jlink emucom write <channel> <data>
          write to a channel
  jlink freemem
        show free device memory
  jlink hwstatus
        show the hardware status
  jlink jtag [2|3]
        select the JTAG command version
  jlink targetpower <on|off>
        set the target power supply
  jlink usb <0-3>
        set the USB address of the device that should be used
        (configuration command)
jsp_port [port_num]
      Specify port on which to listen for incoming JSP telnet connections.
      (command valid any time)
log_output [file_name | "default"]
      redirect logging to a file (default: stderr) (command valid any time)
measure_clk
      Runs a test to measure the JTAG clk. Useful with RCLK / RTCK.
      (command valid any time)
mmw address setbits clearbits
      Modify word in memory. new_val = (old_val & ~clearbits) | setbits;
      (command valid any time)
mrb address
      Returns value of byte in memory. (command valid any time)
mrh address
      Returns value of halfword in memory. (command valid any time)
mrw address
      Returns value of word in memory. (command valid any time)
ms
      Returns ever increasing milliseconds. Used to calculate differences
      in time. (command valid any time)
nand
      NAND flash command group (command valid any time)
  nand device bank_id driver target [driver_options ...]
        defines a new NAND bank (configuration command)
  nand drivers
        lists available NAND drivers (command valid any time)
  nand init
        initialize NAND devices (configuration command)
noinit
      Prevent 'init' from being called at startup. (configuration command)
ocd_find file
      find full path to file (command valid any time)
pld
      programmable logic device commands (command valid any time)
  pld create name.pld driver_name [driver_args ... ]
        create a PLD device (configuration command)
  pld init
        initialize PLD devices (configuration command)
poll_period
      set the servers polling period (command valid any time)
power_restore
      Overridable procedure run when power restore is detected. Runs 'reset
      init' by default. (command valid any time)
program <filename> [address] [pre-verify] [verify] [reset] [exit]
      write an image to flash, address is only required for binary images.
      verify, reset, exit are optional (command valid any time)
reset_config [none|trst_only|srst_only|trst_and_srst]
          [srst_pulls_trst|trst_pulls_srst|combined|separate]
          [srst_gates_jtag|srst_nogate] [trst_push_pull|trst_open_drain]
          [srst_push_pull|srst_open_drain]
          [connect_deassert_srst|connect_assert_srst]
      configure adapter reset behavior (command valid any time)
rtt
      RTT (command valid any time)
  rtt channellist
        list available channels
  rtt channels
        list available channels
  rtt polling_interval [interval]
        show or set polling interval in ms
  rtt server
        RTT server (command valid any time)
    rtt server start <port> <channel>
          Start a RTT server (command valid any time)
    rtt server stop <port>
          Stop a RTT server (command valid any time)
  rtt setup <address> <size> <ID>
        setup RTT (command valid any time)
  rtt start
        start RTT
  rtt stop
        stop RTT
script <file>
      filename of OpenOCD script (tcl) to run (command valid any time)
shutdown
      shut the server down (command valid any time)
sleep milliseconds ['busy']
      Sleep for specified number of milliseconds.  "busy" will busy wait
      instead (avoid this). (command valid any time)
srst_deasserted
      Overridable procedure run when srst deassert is detected. Runs 'reset
      init' by default. (command valid any time)
swd
      SWD command group (command valid any time)
  swd newdap basename dap_type ['-irlen' count] ['-enable'|'-disable']
            ['-expected_id' number] ['-ignore-version'] ['-ignore-bypass']
            ['-ircapture' number] ['-mask' number]
        declare a new SWD DAP (configuration command)
swo
      swo command group
  swo create name [-dap dap] [-ap-num num] [-baseaddr baseaddr]
        Creates a new TPIU or SWO object (command valid any time)
  swo init
        Initialize TPIU and SWO
  swo names
        Lists all registered TPIU and SWO objects by name (command valid
        any time)
target
      configure target (configuration command)
  target create name type '-chain-position' name [options ...]
        Creates and selects a new target (configuration command)
  target current
        Returns the currently selected target (command valid any time)
  target init
        initialize targets (configuration command)
  target names
        Returns the names of all targets as a list of strings (command
        valid any time)
  target smp targetname1 targetname2 ...
        gather several target in a smp list (command valid any time)
  target types
        Returns the available target types as a list of strings (command
        valid any time)
targets [target]
      change current default target (one parameter) or prints table of all
      targets (no parameters) (command valid any time)
tcl_notifications [on|off]
      Target Notification output
tcl_port [port_num]
      Specify port on which to listen for incoming Tcl syntax.  Read help
      on 'gdb_port'. (configuration command)
tcl_trace [on|off]
      Target trace output
telnet_port [port_num]
      Specify port on which to listen for incoming telnet connections. 
      Read help on 'gdb_port'. (configuration command)
tpiu
      tpiu command group
  tpiu config (disable | ((external | internal (<filename> | <:port> | -))
            (sync <port width> | ((manchester | uart) <formatter enable>))
            <TRACECLKIN freq> [<trace freq>]))
        Configure TPIU features, DEPRECATED, use 'tpiu create' (command
        valid any time)
  tpiu create name [-dap dap] [-ap-num num] [-baseaddr baseaddr]
        Creates a new TPIU or SWO object (command valid any time)
  tpiu init
        Initialize TPIU and SWO
  tpiu names
        Lists all registered TPIU and SWO objects by name (command valid
        any time)
transport
      Transport command group (command valid any time)
  transport init
        Initialize this session's transport (command valid any time)
  transport list
        list all built-in transports (command valid any time)
  transport select [transport_name]
        Select this session's transport (command valid any time)
usage [command_name]
      Show basic command usage; command can be multiple tokens. (command
      valid any time)
version [git]
      show program version (command valid any time)
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : J-Link STLink V2 compiled Aug 12 2019 10:28:03
Info : Hardware version: 1.00
Info : VTarget = 3.300 V
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x0bc11477
Info : [cx32l003.cpu] Cortex-M0+ r0p1 processor detected
Info : [cx32l003.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for cx32l003.cpu on 3333
Info : Listening on port 3333 for gdb connections
shutdown command invoked
