mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 23:46:04 +08:00
[stm32] flashing: use /dev/bmp-gdb if found, fallback to /dev/ttyACM0
This commit is contained in:
committed by
Gautier Hattenberger
parent
cd548f17d3
commit
4c2ba5e1d8
@@ -118,7 +118,7 @@ upload: $(OBJDIR)/$(TARGET).hex
|
||||
#
|
||||
# JTAG flash mode (with Black Magic Probe)
|
||||
else ifeq ($(FLASH_MODE),JTAG_BMP)
|
||||
BMP_PORT ?= /dev/ttyACM0
|
||||
BMP_PORT ?= $(shell ls /dev/bmp-gdb 2>/dev/null || echo /dev/ttyACM0)
|
||||
BMP_UPLOAD_SCRIPT ?= $(PAPARAZZI_SRC)/sw/tools/flash_scripts/bmp_jtag_flash.scr
|
||||
upload: $(OBJDIR)/$(TARGET).elf
|
||||
@echo "Assuming luftboot bootloader: $(ASSUMING_LUFTBOOT)"
|
||||
@@ -134,7 +134,7 @@ upload: $(OBJDIR)/$(TARGET).elf
|
||||
# SWD flash mode (with Black Magic Probe)
|
||||
else ifeq ($(FLASH_MODE),SWD)
|
||||
# only works if BMP_PORT is defined
|
||||
BMP_PORT ?= /dev/ttyACM0
|
||||
BMP_PORT ?= $(shell ls /dev/bmp-gdb 2>/dev/null || echo /dev/ttyACM0)
|
||||
BMP_UPLOAD_SCRIPT ?= $(PAPARAZZI_SRC)/sw/tools/flash_scripts/bmp_swd_flash.scr
|
||||
upload: $(OBJDIR)/$(TARGET).elf
|
||||
@echo "Assuming luftboot bootloader: $(ASSUMING_LUFTBOOT)"
|
||||
|
||||
Reference in New Issue
Block a user