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> |
||
|---|---|---|
| .. | ||
| nrfjprog | ||
| conftest.py | ||
| test_blackmagicprobe.py | ||
| test_bossac.py | ||
| test_build.py | ||
| test_canopen_program.py | ||
| test_dediprog.py | ||
| test_dfu_util.py | ||
| test_gd32isp.py | ||
| test_imports.py | ||
| test_mdb.py | ||
| test_nrfjprog.py | ||
| test_pyocd.py | ||
| test_stm32cubeprogrammer.py | ||
| test_stm32flash.py | ||
| test_twister.py | ||