zephyr/scripts/west_commands/runners
Fabio Baltieri 79856e7637 west: runners: blackmagicprobe: guess the gdb port based on the OS
Add some logic in blackmagicprobe.py to guess the GDB serial port based
on the OS instead of just trying the flag or /dev/ttyACM0.

The new logic explicitly looks for the well known path for BMP on Linux
(/dev/ttyBmpGdb), so that we can remove it from the board files that
have it set explicitly right now. At the same time it still allows
setting the port from the flag and also checks an environment variable,
so that it can be used for systems with multiple probes.

As a fallback, it looks for a valid serial port, picking the first one
(the probe creates two, the GDB one is the first one), and raise an
exception if nothing is found.

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
2023-01-19 10:16:00 +01:00
..
__init__.py scripts: west: introduce Lauterbach TRACE32 runner 2022-10-14 09:51:14 +02:00
blackmagicprobe.py west: runners: blackmagicprobe: guess the gdb port based on the OS 2023-01-19 10:16:00 +01:00
bossac.py
canopen_program.py scripts: west: runners: canopen: add SDO block transfer support 2023-01-11 09:39:57 +01:00
core.py west: runners: add file argument 2022-12-01 06:53:58 -08:00
dediprog.py
dfu.py
esp32.py
ezflashcli.py scripts: Add ezFlashCLI runner 2022-08-31 20:32:03 +02:00
gd32isp.py
hifive1.py
intel_adsp.py runner: intel_adsp: no need to specify host in --pty if no port assign 2022-08-16 22:51:53 -07:00
intel_cyclonev.py
jlink.py west: runners: add file argument 2022-12-01 06:53:58 -08:00
mdb.py
misc.py
nios2.py
nrfjprog.py scripts: west_commands: runners: remove deprecated options 2022-11-30 14:15:30 +01:00
nsim.py
openocd.py scripts: west_commands: openocd: Use 'reset init' by default 2022-10-07 12:19:46 -07:00
pyocd.py scripts: west_commands: runners: remove deprecated options 2022-11-30 14:15:30 +01:00
qemu.py
spi_burn.py
stm32cubeprogrammer.py scripts: west: runners: stm32cubeprogrammer: enable exec from PATH 2022-08-29 17:31:56 +02:00
stm32flash.py
trace32.py runners: trace32: mypy fixes 2022-11-09 11:10:09 -05:00
xtensa.py