硬汉嵌入式论坛

 找回密码
 立即注册
查看: 983|回复: 5
收起左侧

[SPI/QSPI] 请问STM32H7的QSPI Flash是否支持划分多个分区

[复制链接]

9

主题

13

回帖

40

积分

新手上路

积分
40
发表于 2022-2-17 09:53:29 | 显示全部楼层 |阅读模式
我看给出的例子里面都是将整个QSPI Flash使用fatfs系统使用的一个分区,请问能否实现划分两个分区,一个只读,一个可以读写?

使用Fatfs文件系统
0x90000000 第一个分区
0x91000000 第二个分区  
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107852
QQ
发表于 2022-2-17 10:54:57 | 显示全部楼层
可以。
回复

使用道具 举报

17

主题

84

回帖

135

积分

初级会员

积分
135
QQ
发表于 2022-3-9 14:31:25 | 显示全部楼层
如何使用Filex文件系统实现呢
回复

使用道具 举报

5

主题

11

回帖

26

积分

新手上路

积分
26
发表于 2022-3-9 18:16:33 | 显示全部楼层
linminghui 发表于 2022-3-9 14:31
如何使用Filex文件系统实现呢

FileX分两个分区要改驱动,他们的Demo里暂时还没有这个例子。没研究过文件系统的底层代码,所以也不知道咋改。下面是微软给我的答复:
  1. Hi, the fx_media_open function opens one volume each time. The number of FATs does not mean volume count. The second volume needs to be opened by calling fx_media_open too.
  2. In current sample drivers, only the first partition is accessed. See the code in the driver:

  3.          status =  _fx_partition_offset_calculate(media_ptr -> fx_media_driver_buffer, 0,
  4.                                                   &partition_start, &partition_size);

  5. The driver reads partition 0 info only. To enable access to the second partition, you can modify the driver to support multiple partition access. Besides, you need to pay attention to thread safety issues as the driver may be called from different threads simultaneously.
复制代码
回复

使用道具 举报

6

主题

170

回帖

188

积分

初级会员

积分
188
发表于 2022-3-24 21:36:25 | 显示全部楼层

RL-FlashFS是不是不支持qspi的flash
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107852
QQ
发表于 2022-3-25 09:40:22 | 显示全部楼层
yuanzhongda 发表于 2022-3-24 21:36
RL-FlashFS是不是不支持qspi的flash

可以支持,需要修改接口文件里面的函数实验FlashFS.

基于STM32H7的RL-FlashFS V6.X驱动SPI Flash案例发布(2021-04-14)
https://www.armbbs.cn/forum.php? ... 6037&fromuid=58
(出处: 硬汉嵌入式论坛)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-6-15 21:57 , Processed in 0.173475 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表