boards/stm32: set openocd as only supported programmer

This commit is contained in:
Alexandre Abadie 2021-02-11 14:21:17 +01:00
parent 1ddf61a0c5
commit b53d750029
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
22 changed files with 61 additions and 0 deletions

View File

@ -5,6 +5,9 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# Add openocd as supported programmer
PROGRAMMERS_SUPPORTED += openocd
# this board can become un-flashable after a hardfault, # this board can become un-flashable after a hardfault,
# use connect_assert_srst to always be able to flash or reset the board. # use connect_assert_srst to always be able to flash or reset the board.
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1

View File

@ -5,6 +5,9 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# Add openocd as supported programmer
PROGRAMMERS_SUPPORTED += openocd
# The board can become un-flashable after some execution, # The board can become un-flashable after some execution,
# use connect_assert_srst to always be able to flash or reset the board. # use connect_assert_srst to always be able to flash or reset the board.
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1

View File

@ -7,3 +7,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
# this board uses openocd # this board uses openocd
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -10,3 +10,5 @@ OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
# this board uses openocd # this board uses openocd
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -10,4 +10,7 @@ CFLAGS+=-DSX127X_RX_SWITCH
# this board uses openocd # this board uses openocd
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink

View File

@ -9,3 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
STLINK_VERSION ?= 2 STLINK_VERSION ?= 2
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -14,3 +14,6 @@ PROGRAMMER ?= stm32loader
STM32LOADER_FLAGS ?= -u -S -l 0x1ff STM32LOADER_FLAGS ?= -u -S -l 0x1ff
PYTERMFLAGS += --set-rts 0 PYTERMFLAGS += --set-rts 0
# stm32loader programmer is supported
PROGRAMMERS_SUPPORTED += stm32loader

View File

@ -8,3 +8,6 @@ PROGRAMMER ?= openocd
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
# By default, flash this board using an ST-link adapter # By default, flash this board using an ST-link adapter
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -4,3 +4,6 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include
# this board uses openocd with st-link # this board uses openocd with st-link
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -9,3 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
PROGRAMMER ?= dfu-util PROGRAMMER ?= dfu-util
DFU_USB_ID = 0483:df11 DFU_USB_ID = 0483:df11
DFU_USE_DFUSE = 1 DFU_USE_DFUSE = 1
# dfu-util programmer is supported
PROGRAMMERS_SUPPORTED += dfu-util

View File

@ -3,6 +3,7 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include
# custom flasher to use with the bootloader # custom flasher to use with the bootloader
PROGRAMMER ?= robotis-loader PROGRAMMER ?= robotis-loader
PROGRAMMERS_SUPPORTED += robotis-loader
# Skip the space needed by the embedded bootloader # Skip the space needed by the embedded bootloader
ROM_OFFSET ?= 0x3000 ROM_OFFSET ?= 0x3000

View File

@ -4,3 +4,6 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include
# this board uses openocd with st-link # this board uses openocd with st-link
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# Only openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -7,5 +7,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# this board is flashed using DFU # this board is flashed using DFU
PROGRAMMER ?= dfu-util PROGRAMMER ?= dfu-util
PROGRAMMERS_SUPPORTED += dfu-util
DFU_USB_ID = 1d50:607f DFU_USB_ID = 1d50:607f
DFU_USE_DFUSE = 1 DFU_USE_DFUSE = 1

View File

@ -9,3 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
STLINK_VERSION ?= 2 STLINK_VERSION ?= 2
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -13,3 +13,6 @@ STLINK_VERSION ?= 2
# The board can become un-flashable after some execution, # The board can become un-flashable after some execution,
# use connect_assert_srst to always be able to flash or reset the board. # use connect_assert_srst to always be able to flash or reset the board.
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -5,3 +5,6 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
# this board has an on-board ST-link adapter # this board has an on-board ST-link adapter
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -12,3 +12,6 @@ STLINK_VERSION ?= 2
# Tell renode on which UART stdio is available # Tell renode on which UART stdio is available
RENODE_SYSBUS_UART ?= sysbus.uart2 RENODE_SYSBUS_UART ?= sysbus.uart2
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -6,3 +6,6 @@ PROGRAMMER ?= openocd
# this board has an on-board ST-link adapter # this board has an on-board ST-link adapter
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -6,3 +6,6 @@ PROGRAMMER ?= openocd
# this board has an on-board ST-link adapter # this board has an on-board ST-link adapter
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -9,3 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
PROGRAMMER ?= openocd PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -8,3 +8,6 @@ OPENOCD_DEBUG_ADAPTER ?= stlink
# This board can become un-flashable after a hardfault, # This board can become un-flashable after a hardfault,
# use connect_assert_srst to always be able to flash or reset the board. # use connect_assert_srst to always be able to flash or reset the board.
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd

View File

@ -6,3 +6,6 @@ PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink OPENOCD_DEBUG_ADAPTER ?= stlink
STLINK_VERSION ?= 2-1 STLINK_VERSION ?= 2-1
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd