pytest-embedded-jtag

class pytest_embedded_jtag.gdb.Gdb(gdb_prog_path: Optional[str] = None, gdb_cli_args: Optional[str] = None, **kwargs)

Bases: DuplicateStdoutPopen

GDB_DEFAULT_ARGS = '--quiet'
GDB_PROG_PATH = 'xtensa-esp32-elf-gdb'
REDIRECT_CLS = None
SOURCE = 'GDB'
write(s: AnyStr, non_blocking: bool = False, timeout: float = 30) Optional[str]

Write to stdin via stdin.write.

  • If the input is str, will encode to bytes and add a b’\n’ automatically in the end.

  • If the input is bytes, will pass this directly.

Parameters:

s – bytes or str

class pytest_embedded_jtag.openocd.OpenOcd(openocd_prog_path: Optional[str] = None, openocd_cli_args: Optional[str] = None, port_offset: int = 0, **kwargs)

Bases: DuplicateStdoutPopen

Class to communicate to OpenOCD

GDB_BASE_PORT = 3333
OPENOCD_DEFAULT_ARGS = '-f board/esp32-wrover-kit-3.3v.cfg'
OPENOCD_PROG_PATH = 'openocd'
REDIRECT_CLS = None
SOURCE = 'OPENOCD'
TCL_BASE_PORT = 6666
TELNET_BASE_PORT = 4444
write(s: AnyStr) str

Write to stdin via stdin.write.

  • If the input is str, will encode to bytes and add a b’\n’ automatically in the end.

  • If the input is bytes, will pass this directly.

Parameters:

s – bytes or str