Skip to content

Commit

Permalink
boards/common/nucleo: Use STM32 programmer config
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Nov 12, 2019
1 parent 327060c commit 92284be
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions boards/common/nucleo/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,5 @@ INCLUDES += -I$(RIOTBOARD)/common/nucleo/include
# we use shared STM32 configuration snippets
INCLUDES += -I$(RIOTBOARD)/common/stm32/include

# configure the serial terminal
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))

# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk

# nucleo boards can become un-flashable after a hardfault,
# use connect_assert_srst to always be able to flash or reset the boards.
export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1

# all Nucleo boards have an on-board ST-link adapter
DEBUG_ADAPTER ?= stlink

# nucleo boards use openocd
include $(RIOTMAKE)/tools/openocd.inc.mk
# Setup of programmer and serial is shared between STM32 based boards
include $(RIOTMAKE)/boards/stm32.inc.mk

0 comments on commit 92284be

Please sign in to comment.