From 9cd881bf056c63ab10739f2eb7bef5b9e22254fa Mon Sep 17 00:00:00 2001 From: SummerGift Date: Tue, 18 Dec 2018 10:37:57 +0800 Subject: [PATCH] [bsp][stm32] fix some error --- bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c | 4 ++-- bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.icf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c b/bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c index 617379fd4e..16c7a9e454 100644 --- a/bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c +++ b/bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c @@ -10,7 +10,7 @@ #include -#ifdef RT_USING_DFS +#ifdef BSP_USING_SDCARD #include #include @@ -61,5 +61,5 @@ int stm32_sdcard_mount(void) } INIT_APP_EXPORT(stm32_sdcard_mount); -#endif +#endif /* BSP_USING_SDCARD */ diff --git a/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.icf b/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.icf index 11d1d86df5..b89cc8fa4d 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.icf +++ b/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.icf @@ -30,4 +30,4 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place in ROM_region { readonly }; place in RAM1_region { section .sram }; -place in RAM2_region { readwrite, block CSTACK}; +place in RAM2_region { readwrite, last block CSTACK};