完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我正在使用S25FL127S设备。SPI访问似乎正确地工作,因为我可以可靠地读取与数据表匹配的标识。在应用功率之后,我使用WREEN(06H)和PP(02H)命令来写一个256字节的数据块,一次一个字节,其中每个字节的数据仅仅是它的基于块的索引(0, 1, 2,3…)。在写入每个字节之后,在RSR1(05H)命令中,通过使用RDSR1(05H)命令,在继续下一个字节之前,对SR1中的WIP位进行轮询。然后,我用读(03H)命令读取数据。
第一个字节如预期的那样返回0x00,但其余字节都是0xFF。我做错什么了? 以上来自于百度翻译 以下为原文 I'm working with a S25FL127S device. SPI accesses appear to work correctly as I can reliably read the identification, which matches the datasheet. After applying power, I use the WREN (06h) and PP (02h) commands to write a 256-bye block of data, one byte at a time, where the data for each byte is simply its 0-based index into the block (0, 1, 2, 3...). After writing each byte, I poll the WIP bit in SR1, using the RDSR1 (05h) command, waiting for it to go low, before proceeding to the next byte. I then read the data back, using the Read (03h) command. The first byte comes back as 0x00, as expected, but the remaining bytes are all 0xff. What am I doing wrong? |
|
相关推荐
2个回答
|
|
|
你好,杰夫,
真诚的道歉的延迟。 当你使用网页编程命令建议与多个16字节的长度和对齐的程序块被写。为了最好的性能,规划应充分,对齐,字节对齐的512字节边界的每个页面被编程一次页面。但从你的描述中我明白你是用PP命令和只写一个字节的时间这是不好的。我认为你当你issuingpp命令只有一个字节被写入和。你需要给雷恩和PP的命令再写第二字节效率不高,会导致浪费时间。最好是在缓冲区和写256字节写一气呵成。 请尝试一次写多个字节和检查如果你能多读一个字节。 谢谢, Krishna。 以上来自于百度翻译 以下为原文 Hello Jeff, Sincere apologies for the delay. When you are using page programing command it is recommended to that a multiple of 16-byte length and aligned Program Blocks be written. For the very best performance, programming should be done in full, aligned, pages of 512 bytes aligned on 512-byte boundaries with each Page being programmed only once. But from your description I understand that you are using PP command and writing only one Byte at a time which is not good. I think in your case when you are issuing PP command only one byte is being written and . You need to give WREN and PP command again to write second Byte which is not efficient and will result in wastage of time. It is better to write all 256 bytes in to the buffer ans write them at one go . Please try writing more than one byte at a time and check if you are able to read more than one byte. Thanks, Krishna. |
|
|
|
|
|
谢谢你的解释。我注意到,同时写入所有256个字节,但我不知道为什么单字节写入失败,直到你解释它。
以上来自于百度翻译 以下为原文 Thanks for the explanation. I did notice that writing all 256 bytes at once worked, but I didn't know why single-byte writes failed until you explained it. |
|
|
|
|
只有小组成员才能发言,加入小组>>
786个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7088 浏览 0 评论
2477 浏览 1 评论
2166 浏览 1 评论
4031 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2074 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7567浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6114浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
742浏览 2评论
710浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
7962浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 10:37 , Processed in 0.613379 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2060