summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-06-10 18:00:49 +0800
committerBernard Xiong <[email protected]>2018-06-10 18:00:49 +0800
commit8e67f65688eae1da7c9191de5c983e828fce3c91 (patch)
treeedc69453b0af55a6bfb13a3a3fa9c0d847636832
parent884fb70fe9973eaf01a7df04941cbcb0475ba8d5 (diff)
[BSP][stm32f411-nucleo] Add ARCH type and change for module & lwP.
-rw-r--r--bsp/stm32f411-nucleo/Kconfig5
-rw-r--r--bsp/stm32f411-nucleo/drivers/stm32f4xx_it.c9
-rw-r--r--bsp/stm32f411-nucleo/stm32_rom.ld6
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
@@ -94,15 +94,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 = .;