Debug Probe

lager debug

Lager debug commands

lager debug [OPTIONS] COMMAND [ARGS]...

connect

lager debug connect [OPTIONS]

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU to connect

--force, --no-force

Disconnect debugger before reconnecting. If not set, connect will fail if debugger is already connected. Cannot be used with --ignore-if-connected

Default:

True

--ignore-if-connected

If debugger is already connected, skip connection attempt and exit with success. Cannot be used with --force

Default:

False

--halt, --no-halt

Halt the device when connecting

Default:

True

disconnect

lager debug disconnect [OPTIONS]

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU to disconnect

erase

lager debug erase [OPTIONS] [START_ADDR] [LENGTH]

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU to erase

Arguments

START_ADDR

Optional argument

LENGTH

Optional argument

flash

lager debug flash [OPTIONS]

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU to disconnect

--hexfile <hexfile>

Hexfile to flash.

--binfile <binfile>

Binfile(s) to flash. Syntax: --binfile <filename>,<address> May be passed multiple times; files will be flashed in order.

gdbserver

Establish a proxy to GDB server on gateway.

lager debug gdbserver [OPTIONS]

Options

--dut <dut>

ID of DUT

--host <host>

interface for gdbserver to bind.

Default:

'localhost'

--port <port>

Port for gdbserver

Default:

3333

--local

Connect to gateway via local network

Default:

False

memrd

lager debug memrd [OPTIONS] START_ADDR LENGTH

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU to erase

Arguments

START_ADDR

Required argument

LENGTH

Required argument

memwr

lager debug memwr [OPTIONS] START_ADDR DATA

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU to erase

--size <size>

Required Number of bytes to write

Options:

1 | 2 | 4

Arguments

START_ADDR

Required argument

DATA

Required argument

reset

lager debug reset [OPTIONS]

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU number

--halt, --no-halt

Halt the DUT after reset. Default: do not halt

Default:

False

rtt

lager debug rtt [OPTIONS]

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU number

--host <host>

interface for telnet to bind. Use --host '*' to bind to all interfaces.

Default:

'localhost'

status

lager debug status [OPTIONS]

Options

--dut <dut>

ID of DUT

--mcu <mcu>

MCU to query