diff --git a/boards/b-l072z-lrwan1/Makefile.include b/boards/b-l072z-lrwan1/Makefile.include index dfa4ccfdf1..c175f5c87a 100644 --- a/boards/b-l072z-lrwan1/Makefile.include +++ b/boards/b-l072z-lrwan1/Makefile.include @@ -5,6 +5,9 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink +# Add openocd as supported programmer +PROGRAMMERS_SUPPORTED += openocd + # this board can become un-flashable after a hardfault, # use connect_assert_srst to always be able to flash or reset the board. OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 diff --git a/boards/b-l475e-iot01a/Makefile.include b/boards/b-l475e-iot01a/Makefile.include index cda79dc6a0..a13523caa7 100644 --- a/boards/b-l475e-iot01a/Makefile.include +++ b/boards/b-l475e-iot01a/Makefile.include @@ -5,6 +5,9 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink +# Add openocd as supported programmer +PROGRAMMERS_SUPPORTED += openocd + # The board can become un-flashable after some execution, # use connect_assert_srst to always be able to flash or reset the board. OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 diff --git a/boards/fox/Makefile.include b/boards/fox/Makefile.include index 306b36fe73..200c4867ba 100644 --- a/boards/fox/Makefile.include +++ b/boards/fox/Makefile.include @@ -7,3 +7,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*))) # this board uses openocd PROGRAMMER ?= openocd + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/i-nucleo-lrwan1/Makefile.include b/boards/i-nucleo-lrwan1/Makefile.include index db8d239278..e42f142148 100644 --- a/boards/i-nucleo-lrwan1/Makefile.include +++ b/boards/i-nucleo-lrwan1/Makefile.include @@ -10,3 +10,5 @@ OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 # this board uses openocd PROGRAMMER ?= openocd +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/im880b/Makefile.include b/boards/im880b/Makefile.include index d6da09df5b..c1aa8c2438 100644 --- a/boards/im880b/Makefile.include +++ b/boards/im880b/Makefile.include @@ -10,4 +10,7 @@ CFLAGS+=-DSX127X_RX_SWITCH # this board uses openocd PROGRAMMER ?= openocd +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd + OPENOCD_DEBUG_ADAPTER ?= stlink diff --git a/boards/limifrog-v1/Makefile.include b/boards/limifrog-v1/Makefile.include index 27e2d23834..11a51b9180 100644 --- a/boards/limifrog-v1/Makefile.include +++ b/boards/limifrog-v1/Makefile.include @@ -9,3 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink STLINK_VERSION ?= 2 + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/lobaro-lorabox/Makefile.include b/boards/lobaro-lorabox/Makefile.include index f13abe9e72..a04377df9e 100644 --- a/boards/lobaro-lorabox/Makefile.include +++ b/boards/lobaro-lorabox/Makefile.include @@ -14,3 +14,6 @@ PROGRAMMER ?= stm32loader STM32LOADER_FLAGS ?= -u -S -l 0x1ff PYTERMFLAGS += --set-rts 0 + +# stm32loader programmer is supported +PROGRAMMERS_SUPPORTED += stm32loader diff --git a/boards/lsn50/Makefile.include b/boards/lsn50/Makefile.include index 0dc3200ec3..34b701bdd7 100644 --- a/boards/lsn50/Makefile.include +++ b/boards/lsn50/Makefile.include @@ -8,3 +8,6 @@ PROGRAMMER ?= openocd OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 # By default, flash this board using an ST-link adapter OPENOCD_DEBUG_ADAPTER ?= stlink + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/maple-mini/Makefile.include b/boards/maple-mini/Makefile.include index 0d40a6f290..a82e8b894f 100644 --- a/boards/maple-mini/Makefile.include +++ b/boards/maple-mini/Makefile.include @@ -4,3 +4,6 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include # this board uses openocd with st-link PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/nz32-sc151/Makefile.include b/boards/nz32-sc151/Makefile.include index e482672d5d..955a8ee607 100644 --- a/boards/nz32-sc151/Makefile.include +++ b/boards/nz32-sc151/Makefile.include @@ -9,3 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) PROGRAMMER ?= dfu-util DFU_USB_ID = 0483:df11 DFU_USE_DFUSE = 1 + +# dfu-util programmer is supported +PROGRAMMERS_SUPPORTED += dfu-util diff --git a/boards/opencm904/Makefile.include b/boards/opencm904/Makefile.include index 96c1876bc8..f711631972 100644 --- a/boards/opencm904/Makefile.include +++ b/boards/opencm904/Makefile.include @@ -3,6 +3,7 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include # custom flasher to use with the bootloader PROGRAMMER ?= robotis-loader +PROGRAMMERS_SUPPORTED += robotis-loader # Skip the space needed by the embedded bootloader ROM_OFFSET ?= 0x3000 diff --git a/boards/p-l496g-cell02/Makefile.include b/boards/p-l496g-cell02/Makefile.include index bcb8ababf4..b6361fdaae 100644 --- a/boards/p-l496g-cell02/Makefile.include +++ b/boards/p-l496g-cell02/Makefile.include @@ -4,3 +4,6 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include # this board uses openocd with st-link PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink + +# Only openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/pyboard/Makefile.include b/boards/pyboard/Makefile.include index 83b4a93f75..a0f16db3f3 100644 --- a/boards/pyboard/Makefile.include +++ b/boards/pyboard/Makefile.include @@ -7,5 +7,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) # this board is flashed using DFU PROGRAMMER ?= dfu-util +PROGRAMMERS_SUPPORTED += dfu-util DFU_USB_ID = 1d50:607f DFU_USE_DFUSE = 1 diff --git a/boards/stm32f0discovery/Makefile.include b/boards/stm32f0discovery/Makefile.include index f65270401a..7bf9af1e3f 100644 --- a/boards/stm32f0discovery/Makefile.include +++ b/boards/stm32f0discovery/Makefile.include @@ -9,3 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink STLINK_VERSION ?= 2 + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/stm32f3discovery/Makefile.include b/boards/stm32f3discovery/Makefile.include index f0a61abbb4..0de5d6bd05 100644 --- a/boards/stm32f3discovery/Makefile.include +++ b/boards/stm32f3discovery/Makefile.include @@ -13,3 +13,6 @@ STLINK_VERSION ?= 2 # The board can become un-flashable after some execution, # use connect_assert_srst to always be able to flash or reset the board. OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/stm32f429i-disc1/Makefile.include b/boards/stm32f429i-disc1/Makefile.include index 78f07632fc..b932c4f457 100644 --- a/boards/stm32f429i-disc1/Makefile.include +++ b/boards/stm32f429i-disc1/Makefile.include @@ -5,3 +5,6 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include PROGRAMMER ?= openocd # this board has an on-board ST-link adapter OPENOCD_DEBUG_ADAPTER ?= stlink + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/stm32f4discovery/Makefile.include b/boards/stm32f4discovery/Makefile.include index 34a774d39c..39dd1d7221 100644 --- a/boards/stm32f4discovery/Makefile.include +++ b/boards/stm32f4discovery/Makefile.include @@ -12,3 +12,6 @@ STLINK_VERSION ?= 2 # Tell renode on which UART stdio is available RENODE_SYSBUS_UART ?= sysbus.uart2 + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/stm32f723e-disco/Makefile.include b/boards/stm32f723e-disco/Makefile.include index a117a96e26..7a34de18d6 100644 --- a/boards/stm32f723e-disco/Makefile.include +++ b/boards/stm32f723e-disco/Makefile.include @@ -6,3 +6,6 @@ PROGRAMMER ?= openocd # this board has an on-board ST-link adapter OPENOCD_DEBUG_ADAPTER ?= stlink + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/stm32f769i-disco/Makefile.include b/boards/stm32f769i-disco/Makefile.include index 0564a223c3..ba4b128d6f 100644 --- a/boards/stm32f769i-disco/Makefile.include +++ b/boards/stm32f769i-disco/Makefile.include @@ -6,3 +6,6 @@ PROGRAMMER ?= openocd # this board has an on-board ST-link adapter OPENOCD_DEBUG_ADAPTER ?= stlink + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/stm32l0538-disco/Makefile.include b/boards/stm32l0538-disco/Makefile.include index 16d7ebec80..0f0dcc4c3a 100644 --- a/boards/stm32l0538-disco/Makefile.include +++ b/boards/stm32l0538-disco/Makefile.include @@ -9,3 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/stm32l476g-disco/Makefile.include b/boards/stm32l476g-disco/Makefile.include index c6d70cf420..a5887aac83 100644 --- a/boards/stm32l476g-disco/Makefile.include +++ b/boards/stm32l476g-disco/Makefile.include @@ -8,3 +8,6 @@ OPENOCD_DEBUG_ADAPTER ?= stlink # This board can become un-flashable after a hardfault, # use connect_assert_srst to always be able to flash or reset the board. OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd diff --git a/boards/ublox-c030-u201/Makefile.include b/boards/ublox-c030-u201/Makefile.include index d4255951f2..7d7dc1c749 100644 --- a/boards/ublox-c030-u201/Makefile.include +++ b/boards/ublox-c030-u201/Makefile.include @@ -6,3 +6,6 @@ PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink STLINK_VERSION ?= 2-1 + +# openocd programmer is supported +PROGRAMMERS_SUPPORTED += openocd