From 342f3e87e2db2b0819923ef14f7afbfd849c09f4 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 14 Jun 2019 16:55:50 +0200 Subject: [PATCH] boards/stm32l4: add riotboot support --- boards/b-l475e-iot01a/Makefile.features | 3 +++ boards/nucleo-l432kc/Makefile.features | 7 +++++++ boards/nucleo-l433rc/Makefile.features | 7 +++++++ boards/nucleo-l452re/Makefile.features | 3 +++ boards/nucleo-l496zg/Makefile.features | 3 +++ boards/stm32l476g-disco/Makefile.features | 3 +++ 6 files changed, 26 insertions(+) diff --git a/boards/b-l475e-iot01a/Makefile.features b/boards/b-l475e-iot01a/Makefile.features index b1579d932c..3c3d3d6870 100644 --- a/boards/b-l475e-iot01a/Makefile.features +++ b/boards/b-l475e-iot01a/Makefile.features @@ -8,4 +8,7 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += riotboot + include $(RIOTCPU)/stm32l4/Makefile.features diff --git a/boards/nucleo-l432kc/Makefile.features b/boards/nucleo-l432kc/Makefile.features index d23aab525e..93ca929528 100644 --- a/boards/nucleo-l432kc/Makefile.features +++ b/boards/nucleo-l432kc/Makefile.features @@ -6,6 +6,13 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart +# Put other features for this board (in alphabetical order) +# Note that a recent version of OpenOCD is required for flashing an image on +# the second slot of the flash memory. This version has to be built from source +# and at least contains the following commit +# https://github.com/ntfreak/openocd/commit/a4d50544de07f13e3f9644d2b48e41ebdc91a7a3 +FEATURES_PROVIDED += riotboot + # load the common Makefile.features for Nucleo-32 boards include $(RIOTBOARD)/common/nucleo32/Makefile.features diff --git a/boards/nucleo-l433rc/Makefile.features b/boards/nucleo-l433rc/Makefile.features index 3a9f1f38fc..67fa9d6357 100644 --- a/boards/nucleo-l433rc/Makefile.features +++ b/boards/nucleo-l433rc/Makefile.features @@ -8,6 +8,13 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart +# Put other features for this board (in alphabetical order) +# Note that a recent version of OpenOCD is required for flashing an image on +# the second slot of the flash memory. This version has to be built from source +# and at least contains the following commit +# https://github.com/ntfreak/openocd/commit/a4d50544de07f13e3f9644d2b48e41ebdc91a7a3 +FEATURES_PROVIDED += riotboot + # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo64/Makefile.features diff --git a/boards/nucleo-l452re/Makefile.features b/boards/nucleo-l452re/Makefile.features index 455dccf579..38a92a3011 100644 --- a/boards/nucleo-l452re/Makefile.features +++ b/boards/nucleo-l452re/Makefile.features @@ -6,6 +6,9 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += riotboot + # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo64/Makefile.features diff --git a/boards/nucleo-l496zg/Makefile.features b/boards/nucleo-l496zg/Makefile.features index fa97e0669f..c9f7e067f8 100644 --- a/boards/nucleo-l496zg/Makefile.features +++ b/boards/nucleo-l496zg/Makefile.features @@ -7,6 +7,9 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart periph_lpuart +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += riotboot + # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/stm32l476g-disco/Makefile.features b/boards/stm32l476g-disco/Makefile.features index 9a449434d0..1ce0d21a31 100644 --- a/boards/stm32l476g-disco/Makefile.features +++ b/boards/stm32l476g-disco/Makefile.features @@ -4,4 +4,7 @@ FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += riotboot + include $(RIOTCPU)/stm32l4/Makefile.features