Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
u010088926
rt-thread
提交
57036d8d
R
rt-thread
项目概览
u010088926
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
57036d8d
编写于
1月 30, 2019
作者:
J
jinsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更改默认不启动qspi驱动 N25@128
上级
c21150ae
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
17 addition
and
126 deletion
+17
-126
bsp/stm32/stm32f746-st-disco/.config
bsp/stm32/stm32f746-st-disco/.config
+3
-14
bsp/stm32/stm32f746-st-disco/README.md
bsp/stm32/stm32f746-st-disco/README.md
+4
-7
bsp/stm32/stm32f746-st-disco/board/Kconfig
bsp/stm32/stm32f746-st-disco/board/Kconfig
+1
-1
bsp/stm32/stm32f746-st-disco/project.ewp
bsp/stm32/stm32f746-st-disco/project.ewp
+8
-6
bsp/stm32/stm32f746-st-disco/project.uvprojx
bsp/stm32/stm32f746-st-disco/project.uvprojx
+1
-90
bsp/stm32/stm32f746-st-disco/rtconfig.h
bsp/stm32/stm32f746-st-disco/rtconfig.h
+0
-8
未找到文件。
bsp/stm32/stm32f746-st-disco/.config
浏览文件 @
57036d8d
...
...
@@ -125,18 +125,7 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_PM is not set
# CONFIG_RT_USING_RTC is not set
# CONFIG_RT_USING_SDIO is not set
CONFIG_RT_USING_SPI
=
y
CONFIG_RT_USING_QSPI
=
y
# CONFIG_RT_USING_SPI_MSD is not set
CONFIG_RT_USING_SFUD
=
y
CONFIG_RT_SFUD_USING_SFDP
=
y
CONFIG_RT_SFUD_USING_FLASH_INFO_TABLE
=
y
CONFIG_RT_SFUD_USING_QSPI
=
y
# CONFIG_RT_DEBUG_SFUD is not set
# CONFIG_RT_USING_W25QXX is not set
# CONFIG_RT_USING_GD is not set
# CONFIG_RT_USING_ENC28J60 is not set
# CONFIG_RT_USING_SPI_WIFI is not set
# CONFIG_RT_USING_SPI is not set
# CONFIG_RT_USING_WDT is not set
# CONFIG_RT_USING_AUDIO is not set
...
...
@@ -317,7 +306,7 @@ CONFIG_SOC_STM32F746NG=y
# Onboard Peripheral Drivers
#
CONFIG_BSP_USING_USB_TO_USART
=
y
CONFIG_BSP_USING_QSPI_FLASH
=
y
# CONFIG_BSP_USING_QSPI_FLASH is not set
#
# On-chip Peripheral Drivers
...
...
@@ -326,7 +315,7 @@ CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART
=
y
CONFIG_BSP_USING_UART1
=
y
# CONFIG_BSP_UART1_RX_USING_DMA is not set
CONFIG_BSP_USING_QSPI
=
y
# CONFIG_BSP_USING_QSPI is not set
#
# Board extended module Drivers
...
...
bsp/stm32/stm32f746-st-disco/README.md
浏览文件 @
57036d8d
...
...
@@ -96,17 +96,14 @@ STM32F746-disco 是 ST 推出的一款基于 ARM Cortex-M7 内核的开发板,
```
bash
\
| /
- RT - Thread Operating System
/ |
\
4.0.0 build Jan
26
2019
/ |
\
4.0.0 build Jan
30
2019
2006 - 2018 Copyright by rt-thread team
[
D/drv.qspi] qspi init succsee!
[
SFUD] Find a Micron flash chip. Size is 16777216 bytes.
[
SFUD] n25q128 flash device is initialize success.
[
D/drv.qspi] qspi init succsee!
flash already enter qspi mode
msh
>
```
### 进阶使用
此 BSP 默认
开启了 GPIO, 串口1, QSPI和SFUD
的功能,更多高级功能,需要利用 ENV 工具对 BSP 进行配置,步骤如下:
此 BSP 默认
只开启了 GPIO 和 串口1
的功能,更多高级功能,需要利用 ENV 工具对 BSP 进行配置,步骤如下:
1.
在 bsp 下打开 env 工具。
...
...
bsp/stm32/stm32f746-st-disco/board/Kconfig
浏览文件 @
57036d8d
...
...
@@ -12,7 +12,7 @@ menu "Onboard Peripheral Drivers"
select BSP_USING_UART1
default y
config BSP_USING_QSPI_FLASH
bool "Enable QSPI FLASH (N25Q256 qspi)"
bool "Enable QSPI FLASH (N25Q256 qspi
1
)"
select BSP_USING_QSPI
select RT_USING_SFUD
select RT_SFUD_USING_QSPI
...
...
bsp/stm32/stm32f746-st-disco/project.ewp
浏览文件 @
57036d8d
...
...
@@ -346,6 +346,7 @@
<state>$PROJ_DIR$\..\..\..\components\finsh</state>
<state>$PROJ_DIR$\..\..\..\libcpu\arm\common</state>
<state>$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7</state>
<state>$PROJ_DIR$\board\ports</state>
<state>$PROJ_DIR$\..\..\..\components\drivers\include</state>
<state>$PROJ_DIR$\.</state>
<state>$PROJ_DIR$\applications</state>
...
...
@@ -1375,6 +1376,7 @@
<state>$PROJ_DIR$\..\..\..\components\finsh</state>
<state>$PROJ_DIR$\..\..\..\libcpu\arm\common</state>
<state>$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7</state>
<state>$PROJ_DIR$\board\ports</state>
<state>$PROJ_DIR$\..\..\..\components\drivers\include</state>
<state>$PROJ_DIR$\.</state>
<state>$PROJ_DIR$\applications</state>
...
...
@@ -2135,21 +2137,21 @@
</file>
</group>
<group>
<name>
CORTEX-M7
</name>
<name>
cpu
</name>
<file>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\co
rtex-m7\cpuport
.c</name>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\co
mmon\backtrace
.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\co
rtex-m7\context_iar.S
</name>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\co
mmon\div0.c
</name>
</file>
<file>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\common\
backtrace
.c</name>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\common\
showmem
.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\co
mmon\div0
.c</name>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\co
rtex-m7\cpuport
.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\co
mmon\showmem.c
</name>
<name>$PROJ_DIR$\..\..\..\libcpu\arm\co
rtex-m7\context_iar.S
</name>
</file>
</group>
<group>
...
...
bsp/stm32/stm32f746-st-disco/project.uvprojx
浏览文件 @
57036d8d
...
...
@@ -332,7 +332,7 @@
<MiscControls
/>
<Define>
USE_HAL_DRIVER, STM32F746xx
</Define>
<Undefine
/>
<IncludePath>
.;..\..\..\include;applications;.;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\
spi;..\..\..\components\drivers\include;..\..\..\components\drivers\spi\sfud\inc;..\..\..\components\drivers\
include;..\..\..\components\finsh;..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Inc;..\libraries\STM32F7xx_HAL\CMSIS\Device\ST\STM32F7xx\Include;..\libraries\STM32F7xx_HAL\CMSIS\Include
</IncludePath>
<IncludePath>
.;..\..\..\include;applications;.;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\finsh;..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Inc;..\libraries\STM32F7xx_HAL\CMSIS\Device\ST\STM32F7xx\Include;..\libraries\STM32F7xx_HAL\CMSIS\Include
</IncludePath>
</VariousControls>
</Cads>
<Aads>
...
...
@@ -507,13 +507,6 @@
<FilePath>
board\CubeMX_Config\Src\stm32f7xx_hal_msp.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
drv_qspi_flash.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
board\ports\drv_qspi_flash.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
startup_stm32f746xx.s
</FileName>
...
...
@@ -535,20 +528,6 @@
<FilePath>
..\libraries\HAL_Drivers\drv_usart.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
drv_spi.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\libraries\HAL_Drivers\drv_spi.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
drv_qspi.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\libraries\HAL_Drivers\drv_qspi.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
drv_common.c
</FileName>
...
...
@@ -611,48 +590,6 @@
<FilePath>
..\..\..\components\drivers\serial\serial.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
spi_core.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\components\drivers\spi\spi_core.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
spi_dev.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\components\drivers\spi\spi_dev.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
qspi_core.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\components\drivers\spi\qspi_core.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
spi_flash_sfud.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\components\drivers\spi\spi_flash_sfud.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
sfud.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\components\drivers\spi\sfud\src\sfud.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
sfud_sfdp.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\components\drivers\spi\sfud\src\sfud_sfdp.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
completion.c
</FileName>
...
...
@@ -702,18 +639,6 @@
<FilePath>
..\..\..\components\drivers\src\workqueue.c
</FilePath>
</File>
</Files>
<GroupOption>
<GroupArmAds>
<Cads>
<VariousControls>
<MiscControls>
--c99
</MiscControls>
<Define>
</Define>
<Undefine>
</Undefine>
<IncludePath>
</IncludePath>
</VariousControls>
</Cads>
</GroupArmAds>
</GroupOption>
</Group>
<Group>
<GroupName>
finsh
</GroupName>
...
...
@@ -888,20 +813,6 @@
<FilePath>
..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_usart.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
stm32f7xx_hal_spi.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_spi.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
stm32f7xx_hal_qspi.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_qspi.c
</FilePath>
</File>
</Files>
</Group>
</Groups>
</Target>
...
...
bsp/stm32/stm32f746-st-disco/rtconfig.h
浏览文件 @
57036d8d
...
...
@@ -79,12 +79,6 @@
#define RT_USING_SERIAL
#define RT_SERIAL_USING_DMA
#define RT_USING_PIN
#define RT_USING_SPI
#define RT_USING_QSPI
#define RT_USING_SFUD
#define RT_SFUD_USING_SFDP
#define RT_SFUD_USING_FLASH_INFO_TABLE
#define RT_SFUD_USING_QSPI
/* Using WiFi */
...
...
@@ -167,14 +161,12 @@
/* Onboard Peripheral Drivers */
#define BSP_USING_USB_TO_USART
#define BSP_USING_QSPI_FLASH
/* On-chip Peripheral Drivers */
#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART1
#define BSP_USING_QSPI
/* Board extended module Drivers */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录