Merge pull request #11643 from fjmolinas/pr_stm32l4_riotboot
boards/nucleo-l476rg: add riotboot
This commit is contained in:
commit
18bb31c38e
@ -8,6 +8,9 @@ FEATURES_PROVIDED += periph_spi
|
|||||||
FEATURES_PROVIDED += periph_timer
|
FEATURES_PROVIDED += periph_timer
|
||||||
FEATURES_PROVIDED += periph_uart
|
FEATURES_PROVIDED += periph_uart
|
||||||
|
|
||||||
|
# Put other features for this board (in alphabetical order)
|
||||||
|
FEATURES_PROVIDED += riotboot
|
||||||
|
|
||||||
# load the common Makefile.features for Nucleo boards
|
# load the common Makefile.features for Nucleo boards
|
||||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
export CPU_ARCH = cortex-m4f
|
export CPU_ARCH = cortex-m4f
|
||||||
export CPU_FAM = stm32l4
|
export CPU_FAM = stm32l4
|
||||||
|
|
||||||
|
# "The Vector table must be naturally aligned to a power of two whose alignment
|
||||||
|
# value is greater than or equal to number of Exceptions supported x 4"
|
||||||
|
# CPU_IRQ_NUMOFF for stm32l4 boards is < 91+16 so (107*4 bytes = 428 bytes ~= 0x200)
|
||||||
|
# RIOTBOOT_HDR_LEN can be set to 0x200
|
||||||
|
RIOTBOOT_HDR_LEN ?= 0x200
|
||||||
|
|
||||||
include $(RIOTCPU)/stm32_common/Makefile.include
|
include $(RIOTCPU)/stm32_common/Makefile.include
|
||||||
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
||||||
|
|||||||
@ -55,6 +55,7 @@ extern "C" {
|
|||||||
#else
|
#else
|
||||||
#define CPU_IRQ_NUMOF (82U)
|
#define CPU_IRQ_NUMOF (82U)
|
||||||
#endif
|
#endif
|
||||||
|
#define CPU_FLASH_BASE FLASH_BASE
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user