从 SHARC 21469 写入 Micro SD 空闲和速度问题。
我可以使用单针 SPI 正确读取/写入 2GB Kingston Micro SD,但在使用 WRITE_MULTIPLE_BLOCK 命令写入多个块后,该卡进入空闲模式。我知道这一点是因为当我尝试发送命令来写入更多数据时,卡会返回“处于空闲状态”标志。我创建了一种解决方法,可以在每次写入后将卡从空闲状态拉出来,但这会严重减少带宽。有谁知道为什么会发生这种情况?
另外,我获得的最大 SPI 波特率为 1Mbs。当我将 SPI clk 设置为 >1MHz 时,命令无法正常工作。如果我以 << 的波特率发送命令1Mbs 然后以>1Mbs 发送数据,数据被损坏。我无法获得 SDCARD.org 规范第 2 页中列出的 25MHz 规范速度是否有原因?
https://www.sdcard.org/developers/tech/sdio/sdio_spec /Simplified_SDIO_Card_Spec.pdf
I can properly read/write to a 2GB Kingston Micro SD using single pin SPI, but after writing using the WRITE_MULTIPLE_BLOCK command to write several blocks, the card goes into idle mode. I know this because when I try send a command to write more data, the card returns an 'in idle state' flag. I created a work around that pulls the card from idle after each write but this severely reduces the bandwidth. Does anyone know why this happens?
Also, the maximum SPI Baud I have obtained is 1Mbs. When I set the SPI clk to >1MHz the commands do not work properly. If I send commands at a baud of < 1Mbs then send the data at >1Mbs, the data is corrupted. Is there a reason I have not been able to get the 25MHz specification speed as listed in the SDCARD.org spec on p2?
https://www.sdcard.org/developers/tech/sdio/sdio_spec/Simplified_SDIO_Card_Spec.pdf
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我尝试使用错误的 SPI 时钟极性一次时,我的 SPI 速度低于 1 MBit/s。仔细检查这一点,这也可能是“空闲”错误的来源。
I got SPI Speeds less than 1 MBit/s when I tried to use the wrong SPI clock polarity once. Double check this, and this is also a possible candidate as a source for you "idle" error.