From 8e67f65688eae1da7c9191de5c983e828fce3c91 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 10 Jun 2018 18:00:49 +0800 Subject: [PATCH] [BSP][stm32f411-nucleo] Add ARCH type and change for module & lwP. --- bsp/stm32f411-nucleo/Kconfig | 5 +++++ bsp/stm32f411-nucleo/drivers/stm32f4xx_it.c | 9 --------- bsp/stm32f411-nucleo/stm32_rom.ld | 6 ++++++ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/bsp/stm32f411-nucleo/Kconfig b/bsp/stm32f411-nucleo/Kconfig index dbc6403e94..eccda0aefe 100644 --- a/bsp/stm32f411-nucleo/Kconfig +++ b/bsp/stm32f411-nucleo/Kconfig @@ -15,6 +15,11 @@ config $PKGS_DIR option env="PKGS_ROOT" default "packages" +config BOARD_STM32F411_NUCLEO + bool + select ARCH_ARM_CORTEX_M4 + default y + source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" diff --git a/bsp/stm32f411-nucleo/drivers/stm32f4xx_it.c b/bsp/stm32f411-nucleo/drivers/stm32f4xx_it.c index c2dd528276..7b5660001d 100644 --- a/bsp/stm32f411-nucleo/drivers/stm32f4xx_it.c +++ b/bsp/stm32f411-nucleo/drivers/stm32f4xx_it.c @@ -93,15 +93,6 @@ void UsageFault_Handler(void) } } -/** - * @brief This function handles SVCall exception. - * @param None - * @retval None - */ -void SVC_Handler(void) -{ -} - /** * @} */ diff --git a/bsp/stm32f411-nucleo/stm32_rom.ld b/bsp/stm32f411-nucleo/stm32_rom.ld index 9db59b5fb2..9045a9195c 100644 --- a/bsp/stm32f411-nucleo/stm32_rom.ld +++ b/bsp/stm32f411-nucleo/stm32_rom.ld @@ -39,6 +39,12 @@ SECTIONS __vsymtab_end = .; . = ALIGN(4); + /* section information for modules */ + . = ALIGN(4); + __rtmsymtab_start = .; + KEEP(*(RTMSymTab)) + __rtmsymtab_end = .; + /* section information for initial. */ . = ALIGN(4); __rt_init_start = .;