完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
器件:S25FL256SAGMF1000
你好!, 我使用一个STM32 F765四QSPI模式与命令QOIR(EBH)读取S25FL256S。 但是,所有的字节看起来都像0x88! 在QSPIMODE中可以使用状态读取命令吗? 该设备是一个新的部件,问题是在一个以上的板上。 我已经附加了CS,SCK,IO0,IO1,IO2,IO3(读取捕获,PNG)的信号踪迹。 有什么不对吗? 阅读捕获 630.1 K 以上来自于百度翻译 以下为原文 Device: S25FL256SAGMF1000 Hi!, I'm using an STM32F765 in Quad QSPI mode with the command QIOR (EBh) to read the S25FL256S. However, all bytes look like 0x88 ! Is there a status read command I can use in QSPI mode ? The device is a new part and the problem is on more than one board. I have attached a signal trace of CS, SCK, IO0, IO1, IO2, IO3 (Read capture.png) What could be wrong please?
|
|
相关推荐
13个回答
|
|
你好,
对于QoeCu命令(EBH)工作,配置寄存器中的四位(CR1(1))必须设置为1。它将启用S25FL256S的四功能。在执行QIOR操作之前,您是否设置此位?请让我们知道下面的细节也。 1。你操作我们设备的频率是多少? 2。配置寄存器中设置的LC(延迟代码)位的值是多少? 三。你在所有的设备中观察这个问题吗? 4。Flash设备的数据是什么? 谢谢和问候, 苏德什 以上来自于百度翻译 以下为原文 Hello, For the QIOR command (EBh) to work, QUAD bit (CR1[1])in configuration register must be set to 1. It will enable the quad capabilities of S25FL256S. Are you setting this bit before performing QIOR operation? Please let us know the below details also. 1. What is the frequency at which you are operating our device? 2. What is the value of LC (latency code) bits set in configuration register? 3. Are you observing this issue in all the devices? 4. What is the data you are expecting for the flash device? Thanks and Regards, Sudheesh |
|
|
|
深圳王先生 发表于 2019-7-3 12:47 嗨,Sudheesh, 谢谢你的回复。 我已经实现了CR1(1)位到1和LC=2的设置。 时钟频率为125MHz 现在进步了。我读了所有的FF 我使用QPP(32 H)来编程16字节。 然而,即使在等待SR1中的文位到达1时,QPP写入也不能工作。 当做, 朱利安 以上来自于百度翻译 以下为原文 Hi Sudheesh, Thanks for your reply. I've implemented setting of the CR1[1] bit to 1 and LC = 2. Frequency of clock is 12.5Mhz It is improved now. I read all FF's I'm using QPP (32h) to program 16 bytes. However, QPP write fails to work even after waiting for the WEN bit in SR1 to go to 1. Regards, Julian |
|
|
|
你好,朱利安,
由于操作频率小于50MHz,延迟码LC比特必须为3(11)。请参阅数据表第52页的表格。 请更改信用证并检查是否遵守同一问题。 谢谢, Krishna。 以上来自于百度翻译 以下为原文 Hello Julian, Since the frequency of operation is less than 50MHz the latency code LC bits has to be 3 (11) . Please refer tables on page 52 of datasheet. Please change the LC and check if you are observing the same issue. Thanks, Krishna. |
|
|
|
你好,朱利安,
您正在执行哪些操作来设置WEL位状态寄存器。请注意,写寄存器WRR(01H)将无法工作。您需要使用WREN(06H)来启用WEL位。希望你使用命令鹪鹩(06h)。 谢谢, Krishna。 以上来自于百度翻译 以下为原文 Hello Julian, Which operation you are performing to set WEL bit Status Register. Please note that Write register WRR(01h) will not work. You need to use WREN(06h) to enable the WEL bit. Hope you are using command WREN(06h). Thanks, Krishna. |
|
|
|
你好, 改变LC比特到3。同样的结果。 见下文: 闪存写:0 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F状态:2 2写使能(SR1=文)写 FLASH Read Read:88 FF FF FF FF FF FF FF FF FF FF FFF 谢谢, 朱利安 以上来自于百度翻译 以下为原文 Hi, Changed LC bits to 3. Same result. See below: flashwrite Write:0 1 2 3 4 5 6 7 8 9 A B C D E F Status reg: 2 2 Write enabled (SR1 = WEN) Write done Flashread Read: 88 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF Thanks, Julian |
|
|
|
60user47 发表于 2019-7-3 13:32 嗨,Krishna, 使用鹪鹩(06h) 谢谢, 朱利安 以上来自于百度翻译 以下为原文 Hi Krishna, Using WREN(06h) Thanks, Julian |
|
|
|
你好,朱利安,
你能告诉我们配置寄存器值吗?状态寄存器值2 2(0010×0010)指示发生了擦除错误。 只想检查是否有保护扇区。 谢谢, Krishna。 以上来自于百度翻译 以下为原文 Hello Julian, Can you please let us know the configuration register value. The status register value 2 2 ( 0010 0010 ) indicate that Erase error happened. Just want to check incase if the sector is protected. Thanks, Krishna. |
|
|
|
配置寄存器仅四模式(02h) RealStest.Stase= 0;/*缺省状态*/Reavest.CONFIG= S25FL256x四进制模式;/*启用四路访问模式*/ 以上来自于百度翻译 以下为原文 Configuration register just QUAD_MODE (02h) registers.status = 0; /* Default state */ registers.config = S25FL256_QUAD_MODE; /* Enable QUAD access mode */ |
|
|
|
你好,朱利安,
你能读取设备的设备ID吗?你能查一下并告诉我们吗? 谢谢, Krishna。 以上来自于百度翻译 以下为原文 Hello Julian, Are you able to read the Device ID of the device. ? Can you please check and let us know . Thanks, Krishna. |
|
|
|
你好,Krishna, 设备ID工作! 制造商ID:0x01设备ID:0x18 我在1行上指定了数据,但是它看起来像是IO0和IO1。 这个我不明白! 见附件。 当做, 朱利安 ReADDY-0.PNG 77.2 K 以上来自于百度翻译 以下为原文 Hello Krishna, Device ID works! Manufacturer ID: 0x01 Device ID: 0x18 I specified data on 1 line, but it looks like its on IO0, and IO1 This I don't understand! See attached. regards, Julian
|
|
|
|
你好,Krishna,
现在效果更好。我需要在读函数中使用1行地址。 使用QPP(0x32)进行写入和0xEB读取。 但是,如果数据偏移1字节 读循环上的伪循环=5 潜伏期=3 闪存写:ADDR:0x000 002,扇区2,00,01,02,03,04,05,06,07 08 08 09 0A 0B 0C 0D 0E00F状态寄存器:0x02 OK写。SR1=02写完成FLASH Read Read:ADDR:0x000 002,扇区2,01,02,03,04,05,06,07 08 09 0A 0B 0C 0D 0EF 有些事情还不完全正确。 当做, 朱利安 以上来自于百度翻译 以下为原文 Hello Krishna, Now better results. I needed to use 1 line for address in read function. Using QPP(0x32) for write and 0xEB for read. However, data if offset by 1 byte Dummy cycles on read = 5 Latency = 3 flashwrite Write: addr: 0x00020000, sector 2 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F Status reg: 0x02 Ok to write. SR1 = 02 Write done flashread Read: addr: 0x00020000, sector 2 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F FF Something not quite right yet. Regards, Julian |
|
|
|
你好,朱利安,
多少次观察移位行为。你每次尝试写作时都在观察同样的问题吗? 我也不知道为什么会有一个字节移位。你能擦除这个扇区并尝试写其他的数据并检查你是否在观察同一个问题。 在写入之前,确保所有数据都在扇区中。 还有一个解释是使用3字节寻址还是4字节寻址? 谢谢, Krishna。 以上来自于百度翻译 以下为原文 Hello Julian, How many times observe the shift behavior. Are you observing the same issue every time you try to write ? I am nor sure why there is one byte shift. Can you erase the sector and try to write any other data and check if you are observing the same issue. Make sure all the data is FF in the sector before you write. One more clarification are you using 3 byte addressing or 4 byte addressing ? Thanks, Krishna. |
|
|
|
60user47 发表于 2019-7-3 15:12 你好,Krishna, 我已经解决了这个问题。这是读取命令的虚拟循环。 我设置虚拟周期为3,为125MHz时钟。 我使用3字节寻址。 非常感谢你的帮助。 朱利安 以上来自于百度翻译 以下为原文 Hello Krishna, I have solved the problem. It was the dummy cycles for read command. I set dummy cycles to 3 for 12.5Mhz clock. I'm using 3 bytes addressing. Many thanks for your help. Julian |
|
|
|
只有小组成员才能发言,加入小组>>
726个成员聚集在这个小组
加入小组1936 浏览 1 评论
1684 浏览 1 评论
3446 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1605 浏览 6 评论
1404 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-6-24 21:45 , Processed in 1.039131 second(s), Total 102, Slave 86 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191