summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f767-fire-challenger
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/stm32f767-fire-challenger
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/stm32f767-fire-challenger')
-rw-r--r--bsp/stm32/stm32f767-fire-challenger/SConstruct2
-rw-r--r--bsp/stm32/stm32f767-fire-challenger/applications/main.c4
-rw-r--r--bsp/stm32/stm32f767-fire-challenger/board/board.c2
-rw-r--r--bsp/stm32/stm32f767-fire-challenger/board/board.h3
-rw-r--r--bsp/stm32/stm32f767-fire-challenger/board/ports/drv_qspi_flash.c4
-rw-r--r--bsp/stm32/stm32f767-fire-challenger/board/ports/fal_cfg.h14
6 files changed, 17 insertions, 12 deletions
diff --git a/bsp/stm32/stm32f767-fire-challenger/SConstruct b/bsp/stm32/stm32f767-fire-challenger/SConstruct
index 20047ade78..dd77b5c1d3 100644
--- a/bsp/stm32/stm32f767-fire-challenger/SConstruct
+++ b/bsp/stm32/stm32f767-fire-challenger/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/stm32f767-fire-challenger/applications/main.c b/bsp/stm32/stm32f767-fire-challenger/applications/main.c
index 2f385a7c68..9ed6529712 100644
--- a/bsp/stm32/stm32f767-fire-challenger/applications/main.c
+++ b/bsp/stm32/stm32f767-fire-challenger/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: PH10 */
#define LED0_PIN GET_PIN(H, 10)
diff --git a/bsp/stm32/stm32f767-fire-challenger/board/board.c b/bsp/stm32/stm32f767-fire-challenger/board/board.c
index 6b9cace190..f5b0c783c7 100644
--- a/bsp/stm32/stm32f767-fire-challenger/board/board.c
+++ b/bsp/stm32/stm32f767-fire-challenger/board/board.c
@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-06 SummerGift change to new framework
+ * 2018-11-06 SummerGift first version
*/
#include "board.h"
diff --git a/bsp/stm32/stm32f767-fire-challenger/board/board.h b/bsp/stm32/stm32f767-fire-challenger/board/board.h
index dd86a886d2..1beb8c5f87 100644
--- a/bsp/stm32/stm32f767-fire-challenger/board/board.h
+++ b/bsp/stm32/stm32f767-fire-challenger/board/board.h
@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-5 SummerGift change to new framework
+ * 2018-11-5 SummerGift first version
*/
#ifndef __BOARD_H__
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f7xx.h>
#include "drv_common.h"
+#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {
diff --git a/bsp/stm32/stm32f767-fire-challenger/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32f767-fire-challenger/board/ports/drv_qspi_flash.c
index 1b9120a5c5..36ecb754e9 100644
--- a/bsp/stm32/stm32f767-fire-challenger/board/ports/drv_qspi_flash.c
+++ b/bsp/stm32/stm32f767-fire-challenger/board/ports/drv_qspi_flash.c
@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
- * 2018-11-27 zylx change to new framework
+ * 2018-11-27 zylx first version
*/
#include <board.h>
@@ -65,7 +65,7 @@ static int rt_hw_qspi_flash_with_sfud_init(void)
stm32_qspi_bus_attach_device("qspi1", "qspi10", RT_NULL, 4, w25qxx_enter_qspi_mode, RT_NULL);
/* init w25q128 */
- if (RT_NULL == rt_sfud_flash_probe("w25q128", "qspi10"))
+ if (RT_NULL == rt_sfud_flash_probe("W25Q128", "qspi10"))
{
return -RT_ERROR;
}
diff --git a/bsp/stm32/stm32f767-fire-challenger/board/ports/fal_cfg.h b/bsp/stm32/stm32f767-fire-challenger/board/ports/fal_cfg.h
index 10c05885da..891beb2010 100644
--- a/bsp/stm32/stm32f767-fire-challenger/board/ports/fal_cfg.h
+++ b/bsp/stm32/stm32f767-fire-challenger/board/ports/fal_cfg.h
@@ -15,8 +15,12 @@
#include <board.h>
#define FLASH_SIZE_GRANULARITY_32K (4 * 32 * 1024)
-#define FLASH_SIZE_GRANULARITY_128K (FLASH_SIZE_GRANULARITY_32K + 128 * 1024)
-#define FLASH_SIZE_GRANULARITY_256K (FLASH_SIZE_GRANULARITY_128K + 3 * 256 * 1024)
+#define FLASH_SIZE_GRANULARITY_128K (128 * 1024)
+#define FLASH_SIZE_GRANULARITY_256K (3 * 256 * 1024)
+
+#define STM32_FLASH_START_ADRESS_32K STM32_FLASH_START_ADRESS
+#define STM32_FLASH_START_ADRESS_128K (STM32_FLASH_START_ADRESS_32K + FLASH_SIZE_GRANULARITY_32K)
+#define STM32_FLASH_START_ADRESS_256K (STM32_FLASH_START_ADRESS_128K + FLASH_SIZE_GRANULARITY_128K)
extern const struct fal_flash_dev stm32_onchip_flash_32k;
extern const struct fal_flash_dev stm32_onchip_flash_128k;
@@ -35,9 +39,9 @@ extern const struct fal_flash_dev stm32_onchip_flash_256k;
/* partition table */
#define FAL_PART_TABLE \
{ \
- {FAL_PART_MAGIC_WROD, "bootloader", "onchip_flash_32k", 0 , FLASH_SIZE_GRANULARITY_32K , 0}, \
- {FAL_PART_MAGIC_WROD, "param", "onchip_flash_128k", FLASH_SIZE_GRANULARITY_32K , FLASH_SIZE_GRANULARITY_128K, 0}, \
- {FAL_PART_MAGIC_WROD, "app", "onchip_flash_256k", FLASH_SIZE_GRANULARITY_128K, FLASH_SIZE_GRANULARITY_256K, 0}, \
+ {FAL_PART_MAGIC_WROD, "bootloader", "onchip_flash_32k", 0 , FLASH_SIZE_GRANULARITY_32K , 0}, \
+ {FAL_PART_MAGIC_WROD, "param", "onchip_flash_128k", 0 , FLASH_SIZE_GRANULARITY_128K, 0}, \
+ {FAL_PART_MAGIC_WROD, "app", "onchip_flash_256k", 0 , FLASH_SIZE_GRANULARITY_256K, 0}, \
}
#endif /* FAL_PART_HAS_TABLE_CFG */