zephyr/scripts/west_commands/runners
George White f54e1eddbe runners: bossac: Arduino bootloader reset on macOS
Fixes compatibility with the Arduino bootloader reset mechanism when
using `west flash` on Darwin hosts.

stty is used to set the serial port in the bossac runner to 1200 baud on
Arduino ATSAMD21 bootloaders. The `-F` argument to stty is a GNU
coreutils addition, and thus it is missing from Darwin's BSD stty, so
change the flag to `-f` when we're not running on Linux.

On Darwin, set DEFAULT_BOSSAC_PORT to None and ask the user to select
one from a list of IOCalloutDevices reported by ioreg, modelled on the
get_board_snr from the nrfjprog runner. This is because serial port TTYs
are generated by the device driver, and therefore there is no safe
default.

Tested with an Arduino Nano 33 IoT board.

Signed-off-by: George White <me@galexite.uk>
2021-05-13 22:05:17 -04:00
..
__init__.py scripts: runners: handle failure to import individual runners 2021-03-17 11:30:45 +01:00
blackmagicprobe.py
bossac.py runners: bossac: Arduino bootloader reset on macOS 2021-05-13 22:05:17 -04:00
canopen_program.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00
core.py runners: core: add thread_info_enabled property 2021-05-03 09:55:33 -05:00
dediprog.py scripts: west_commands: runners: Remove need to match device capacity 2021-03-16 10:02:57 +01:00
dfu.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00
esp32.py scripts: esp32.py: Do not convert ELF to bin 2021-05-05 19:49:38 -04:00
hifive1.py
intel_s1000.py
jlink.py runners: jlink: support thread_info_enabled 2021-05-03 09:55:33 -05:00
mdb.py cleanup: rename sanitycheck references to twister 2021-01-14 07:50:52 -06:00
misc.py
nios2.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00
nrfjprog.py scripts: re-work BuildConfiguration boolean handling 2021-05-03 09:55:33 -05:00
nsim.py runners: nsim: allow to use runner if gdb is missing 2020-12-27 18:19:10 +01:00
openocd.py runners: fix openocd with --use-elf 2021-02-03 16:26:27 -05:00
pyocd.py west commands: runners: support for including config file in pyocd 2021-03-16 20:01:53 -04:00
qemu.py
stm32cubeprogrammer.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00
stm32flash.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00
xtensa.py