硬汉嵌入式论坛

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

f429同时使用nandflash和sdram做显存遇到的问题

[复制链接]

17

主题

34

回帖

17

积分

初级会员

积分
17
发表于 2014-10-31 07:23:59 | 显示全部楼层 |阅读模式
用emwin,开了ltdc,dma2d;
其中sdram做显存(2m)
nandflash挂在fmc上,开启FMC的FMC_Waitfeature_enable功能,
发现只要读取nandflash,显示屏就会出现刷新迟缓现象(屏幕紊乱),
我猜测是FMC_Waitfeature干扰了sdram的速度,
请版主指教下
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115653
QQ
发表于 2014-10-31 10:12:59 | 显示全部楼层
这个还真没有研究过。
回复

使用道具 举报

13

主题

87

回帖

126

积分

初级会员

积分
126
发表于 2014-11-25 13:55:11 | 显示全部楼层
难道有问题吗?
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115653
QQ
发表于 2014-11-25 21:57:40 | 显示全部楼层

回 abcdotaabc 的帖子

abcdotaabc:难道有问题吗? (2014-11-25 13:55) 
理论是没有问题的,楼主的问题应该是没有配置好。
回复

使用道具 举报

6

主题

231

回帖

249

积分

高级会员

积分
249
发表于 2015-12-14 15:14:43 | 显示全部楼层
这个问题已经被ST确认是BUG,STM32F429的chip version3 才有可能修复,这个问题已经被加入429的errata。
我是想买安富莱的429开发板才来到这里,但是不知道安富莱的429开发板使用的芯片是不是chip version3,如果低于这个芯片版本,这个BUG是无解的。
版主可不可以告诉我,你们的429开发板所用的芯片是不是chip version3或以上?
回复

使用道具 举报

6

主题

231

回帖

249

积分

高级会员

积分
249
发表于 2015-12-14 15:42:26 | 显示全部楼层
刚才下载并看了你们提供的STM32F42XX errata,应该就是这一段:
2.8.4 Corruption of data read from the FMC
Description
When the FMC is used as stack, heap or variable data, an interrupt occurring during a CPU read access to the FMC may results in read data corruption or hard fault exception. This problem does not occur when read accesses are performed by another master or when FMC accesses are done when the interrupts are disabled.

Workaround
Two workarounds can be applied:
• Do not use the FMC as stack or heap, and make sure CPU read accesses to the FMC are performed while interrupts are disabled
• Use only DMAs to perform read accesses to the FMC. This limitation is present only in revision “A” devices. It is fixed in revision “Y”, “1” and “3”.
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115653
QQ
发表于 2015-12-14 15:47:38 | 显示全部楼层

回 novice 的帖子

novice:刚才下载并看了你们提供的STM32F42XX errata,应该就是这一段:
2.8.4 Corruption of data read from the FMC
Description
When the FMC is used as stack, heap or variable data, an interrupt occurring during a CPU read access to the FMC may results in read data corrup .. (2015-12-14 15:42)
首批用的是439,后面换成429,另外确定后面的版本没问题吗?
这种bug真是害死人。
回复

使用道具 举报

0

主题

9

回帖

0

积分

新手上路

积分
0
发表于 2015-12-14 16:30:36 | 显示全部楼层
同样碰到这个问题。一向nand里读写数据就抖屏
回复

使用道具 举报

7

主题

70

回帖

91

积分

初级会员

积分
91
发表于 2015-12-15 10:28:19 | 显示全部楼层
如何判定所用的芯片是不是chip version3?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-9 21:53 , Processed in 0.443707 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

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