summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f429-atk-apollo
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-01-29 04:28:40 +0800
committerGitHub <[email protected]>2019-01-29 04:28:40 +0800
commitb2c2958964d429775e3da335a4f6ca5b4f9e1671 (patch)
tree25a2209ba4814d41b19e624a136ca1c7c894918f /bsp/stm32/stm32f429-atk-apollo
parentdfebb30c91875c52f16fd4e7bb9e5981fd0512b4 (diff)
parent8ff9b7795f0423eee36a19b2a36cec4e00c1e831 (diff)
Merge pull request #2289 from armink/lts-v3.1.xv3.1.2
Lts v3.1.x
Diffstat (limited to 'bsp/stm32/stm32f429-atk-apollo')
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/SConstruct2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/applications/main.c4
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/Kconfig2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/board.c2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/board.h3
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/ports/fal_cfg.h14
6 files changed, 16 insertions, 11 deletions
diff --git a/bsp/stm32/stm32f429-atk-apollo/SConstruct b/bsp/stm32/stm32f429-atk-apollo/SConstruct
index c1609bf526..1101c708bd 100644
--- a/bsp/stm32/stm32f429-atk-apollo/SConstruct
+++ b/bsp/stm32/stm32f429-atk-apollo/SConstruct
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if rtconfig.PLATFORM == 'iar':
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
env.Replace(ARFLAGS = [''])
- env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'])
+ env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
Export('RTT_ROOT')
Export('rtconfig')
diff --git a/bsp/stm32/stm32f429-atk-apollo/applications/main.c b/bsp/stm32/stm32f429-atk-apollo/applications/main.c
index 7c40c1518d..487ddf44f6 100644
--- a/bsp/stm32/stm32f429-atk-apollo/applications/main.c
+++ b/bsp/stm32/stm32f429-atk-apollo/applications/main.c
@@ -5,13 +5,13 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-06 SummerGift change to new framework
+ * 2018-11-06 SummerGift first version
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
-#include "drv_gpio.h"
+
/* defined the LED0 pin: PB1 */
#define LED0_PIN GET_PIN(B, 1)
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/Kconfig b/bsp/stm32/stm32f429-atk-apollo/board/Kconfig
index a38ce45a8b..e43d9db64f 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/Kconfig
+++ b/bsp/stm32/stm32f429-atk-apollo/board/Kconfig
@@ -30,7 +30,7 @@ menu "Onboard Peripheral Drivers"
default n
config BSP_USING_SPI_FLASH
- bool "Enable SPI FLASH (w25q256 spi5)"
+ bool "Enable SPI FLASH (W25Q256 spi5)"
select BSP_USING_SPI
select BSP_USING_SPI5
select RT_USING_SFUD
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/board.c b/bsp/stm32/stm32f429-atk-apollo/board/board.c
index c22fe25665..c13619f753 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/board.c
+++ b/bsp/stm32/stm32f429-atk-apollo/board/board.c
@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-7 SummerGift change to new framework
+ * 2018-11-7 SummerGift first version
*/
#include "board.h"
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/board.h b/bsp/stm32/stm32f429-atk-apollo/board/board.h
index 7e8c6cfd9e..9173f50c46 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/board.h
+++ b/bsp/stm32/stm32f429-atk-apollo/board/board.h
@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-5 balanceTWK change to new framework
+ * 2018-11-5 balanceTWK first version
*/
#ifndef __BOARD_H__
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
+#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/fal_cfg.h b/bsp/stm32/stm32f429-atk-apollo/board/ports/fal_cfg.h
index df06c65227..a587e207ce 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/ports/fal_cfg.h
+++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/fal_cfg.h
@@ -15,8 +15,12 @@
#include <board.h>
#define FLASH_SIZE_GRANULARITY_16K (4 * 16 * 1024)
-#define FLASH_SIZE_GRANULARITY_64K (FLASH_SIZE_GRANULARITY_16K + 64 * 1024)
-#define FLASH_SIZE_GRANULARITY_128K (FLASH_SIZE_GRANULARITY_64K + 7 * 128 * 1024)
+#define FLASH_SIZE_GRANULARITY_64K (64 * 1024)
+#define FLASH_SIZE_GRANULARITY_128K (7 * 128 * 1024)
+
+#define STM32_FLASH_START_ADRESS_16K STM32_FLASH_START_ADRESS
+#define STM32_FLASH_START_ADRESS_64K (STM32_FLASH_START_ADRESS_16K + FLASH_SIZE_GRANULARITY_16K)
+#define STM32_FLASH_START_ADRESS_128K (STM32_FLASH_START_ADRESS_64K + FLASH_SIZE_GRANULARITY_64K)
extern const struct fal_flash_dev stm32_onchip_flash_16k;
extern const struct fal_flash_dev stm32_onchip_flash_64k;
@@ -35,9 +39,9 @@ extern const struct fal_flash_dev stm32_onchip_flash_128k;
/* partition table */
#define FAL_PART_TABLE \
{ \
- {FAL_PART_MAGIC_WROD, "bootloader", "onchip_flash_16k", 0 , FLASH_SIZE_GRANULARITY_16K , 0}, \
- {FAL_PART_MAGIC_WROD, "param", "onchip_flash_64k", FLASH_SIZE_GRANULARITY_16K , FLASH_SIZE_GRANULARITY_64K , 0}, \
- {FAL_PART_MAGIC_WROD, "app", "onchip_flash_128k", FLASH_SIZE_GRANULARITY_64K, FLASH_SIZE_GRANULARITY_128K, 0}, \
+ {FAL_PART_MAGIC_WROD, "bootloader", "onchip_flash_16k", 0 , FLASH_SIZE_GRANULARITY_16K , 0}, \
+ {FAL_PART_MAGIC_WROD, "param", "onchip_flash_64k", 0 , FLASH_SIZE_GRANULARITY_64K , 0}, \
+ {FAL_PART_MAGIC_WROD, "app", "onchip_flash_128k", 0 , FLASH_SIZE_GRANULARITY_128K, 0}, \
}
#endif /* FAL_PART_HAS_TABLE_CFG */