打印
[应用相关]

AT32 MCU QSPI 使用指南

[复制链接]
1892|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
ArterySW|  楼主 | 2022-1-9 17:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
pi, spi, MCU, ip, IO, TI
本帖最后由 ArterySW 于 2022-1-9 17:25 编辑

AT32 MCU QSPI 使用指南

前言:

本应用入门指南主要介绍以下几部分内容:
1. 基于雅特力提供的 V2.x.x 的 BSP 板级支持包来进行 QSPI 的命令端口的配置及操作
2. 基于雅特力提供的 V2.x.x 的 BSP 板级支持包来进行 QSPI 的 XIP 端口的配置及操作
3. XIP 端口扩展 ROM/RAM 应用
4. 数据加解密
5. 下载算法文件的制作

支持型号列表:
AT32F435xx
AT32F437xx

目录
简介........................................................................................................................10
时钟源....................................................................................................................10
函数接口表.............................................................................................................10
命令端口................................................................................................................12
协议说明.................................................................................................................12
数据传输.................................................................................................................12
CPU PIO 模式.............................................................................................................13
DMA 模式...................................................................................................................13
初始化流程.............................................................................................................13
模式切换(Switch to Command Port)......................................................................13
时钟分频配置(Clock Source Configuration) .......................................................13
SCLK 空闲模式配置(SCLKldle Mode Configuration).........................................14
WIP 配置(WIPConfiguration)..............................................................................14
操作参数配置说明...................................................................................................14
performance enhance mode 配置..............................................................................15
instruction code 的配置..............................................................................................16
instruction length 配置................................................................................................17
address code 配置......................................................................................................17
address length 配置....................................................................................................18
data counter 配置.......................................................................................................18
second dummy state cycle 配置.................................................................................18
write data enable 配置................................................................................................20
operation mode 配置..................................................................................................20
read status 配置.........................................................................................................21
命令配置示例..........................................................................................................22
单一命令的方式..........................................................................................................22
命令+写数据的方式....................................................................................................23
命令+读数据的方式 ....................................................................................................24
命令+地址的方式........................................................................................................25
WIP 状态硬件自动轮询方式.......................................................................................26
WIP 状态软件手动轮询方式.......................................................................................27
命令+地址+读数据的方式...........................................................................................28
命令+地址+读数据(DMA)的方式............................................................................29
Read with PE mode 的方式........................................................................................30
命令+地址+写数据的方式...........................................................................................34
命令+地址+写数据(DMA)的方式............................................................................36
XIP(地址映像)端口 ............................................................................................38
说明........................................................................................................................38
映像地址.................................................................................................................38
初始化流程.............................................................................................................38
XIP 参数配置..........................................................................................................39
XIP-Read 参数配置....................................................................................................39
XIP-Write 参数配置.....................................................................................................39
效能参数配置..............................................................................................................40
XIP 扩展 ROM/RAM 应用...........................................................................................42
扩充 Memory 在 MDK 上.........................................................................................42
MDK 配置...................................................................................................................42
代码初始化配置 ..........................................................................................................43
扩充 Code 在 MDK 上.............................................................................................44
MDK 配置...................................................................................................................45
代码初始化配置..........................................................................................................46
数据加解密.............................................................................................................47
下载算法文件制作..................................................................................................48
制作 MDK 的 FLM 算法文件....................................................................................48
复制并修改工程名称...................................................................................................48
修改使用的器件..........................................................................................................48
修改算法文件的输出名称............................................................................................49
修改 User 选项............................................................................................................49
修改 C/C++选项...........................................................................................................50
修改 Asm 选项..............................................................................................................50
修改 Linker 选项........................................................................................................51
修改 FlashPrg.c 文件..................................................................................................53
修改 FlashDev.c 文件.................................................................................................56
加载使用算法文件.......................................................................................................57
制作 IAR 的 OUT 算法文件 .....................................................................................59
复制并修改工程名称...................................................................................................59
修改使用的器件..........................................................................................................59
修改算法文件的输出名称............................................................................................60
修改 qspi_algorithm.c 文件.........................................................................................61
加载使用算法文件.......................................................................................................64
效能评估................................................................................................................67
文档版本历史 .........................................................................................................68


AN0088_AT32_MCU_QSPI_Application_Note_CH_V2.0.0.pdf

2.13 MB

使用特权

评论回复
沙发
foxsbig| | 2022-2-16 15:07 | 只看该作者
spi都这么多内容

使用特权

评论回复
板凳
ch910917| | 2022-11-11 08:21 | 只看该作者
点赞

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

179

主题

276

帖子

11

粉丝