read mmcsd first sector failed, 但是已经成功读取到了SD卡的大小

发布于 2020-07-01 19:56:32

问题:
制作SD卡的文件系统失败,但是已经成功读取到了SD卡的大小
[E/SDIO] mmcsd request blocks error
[E/SDIO] -1,0,0, 0x00000002,0x00000000
[E/SDIO] read mmcsd first sector failed
[D/drv.sdio] clk:0 width:1 power:OFF

环境:
正点原子stm32F767,SD卡,文件系统是FAT32


[I/I2C] I2C bus [i2c1] registered

\ | /
- RT - Thread Operating System
/ | \ 4.0.3 build Jun 30 2020
2006 - 2020 Copyright by rt-thread team
[D/drv.sdio] enable sdio irq
msh />[D/drv.sdio] clk:0 width:1 power:UP
[D/drv.sdio] clk:400000 width:1 power:ON
[D/drv.sdio] clk:400000 width:1 power:ON
[D/drv.sdio] CMD:0 ARG:0x00000000 RES:NONE rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000080 [00000000 00000000 00000000 00000000]
[D/drv.sdio] clk:400000 width:1 power:ON
[D/drv.sdio] CMD:8 ARG:0x000001aa RES:R7 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [000001AA 00000000 00000000 00000000]
[D/drv.sdio] CMD:5 ARG:0x00000000 RES:R4 rw:- len:0 blksize:0
[D/drv.sdio] err:0x00000004, CTIMEOUT cmd:5 arg:0x00000000 rw:- len:0 blksize:0
[D/drv.sdio] CMD:55 ARG:0x00000000 RES:R1 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [00400120 00000000 00000000 00000000]
[D/drv.sdio] CMD:41 ARG:0x00000000 RES:R3 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000001 [00FF8000 00000000 00000000 00000000]
[D/drv.sdio] clk:400000 width:1 power:ON
[D/drv.sdio] clk:400000 width:1 power:ON
[D/drv.sdio] CMD:0 ARG:0x00000000 RES:NONE rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000080 [00FF8000 00000000 00000000 00000000]
[D/drv.sdio] clk:400000 width:1 power:ON
[D/drv.sdio] CMD:8 ARG:0x000001aa RES:R7 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [000001AA 00000000 00000000 00000000]
[D/drv.sdio] CMD:55 ARG:0x00000000 RES:R1 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [00000120 00000000 00000000 00000000]
[D/drv.sdio] CMD:41 ARG:0x40018000 RES:R3 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000001 [00FF8000 00000000 00000000 00000000]
[D/drv.sdio] CMD:55 ARG:0x00000000 RES:R1 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [00000120 00000000 00000000 00000000]
[D/drv.sdio] CMD:41 ARG:0x40018000 RES:R3 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000001 [C0FF8000 00000000 00000000 00000000]
[D/drv.sdio] CMD:2 ARG:0x00000000 RES:R2 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [02544D53 41303847 21451E5D 860101A8]
[D/drv.sdio] CMD:3 ARG:0x00000000 RES:R6 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [12340500 41303847 21451E5D 860101A8]
[D/drv.sdio] clk:400000 width:1 power:ON
[D/drv.sdio] CMD:9 ARG:0x12340000 RES:R2 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [400E0032 5B590000 39F77F80 0A4000C2]
[I/SDIO] SD card capacity 7598080 KB.
[D/drv.sdio] CMD:7 ARG:0x12340000 RES:R1 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [00000700 5B590000 39F77F80 0A4000C2]
[D/drv.sdio] CMD:55 ARG:0x12340000 RES:R1 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000040 [00000920 5B590000 39F77F80 0A4000C2]
[D/drv.sdio] CMD:51 ARG:0x00000000 RES:R1 rw:r len:8 blksize:8
[D/drv.sdio] sta:0x00000500 [00000920 5B590000 39F77F80 0A4000C2]
[D/drv.sdio] CMD:6 ARG:0x00fffff1 RES:R1 rw:r len:64 blksize:64
[D/drv.sdio] sta:0x00000500 [00000900 5B590000 39F77F80 0A4000C2]
[D/drv.sdio] CMD:6 ARG:0x80fffff1 RES:R1 rw:r len:64 blksize:64
[D/drv.sdio] sta:0x00000500 [00000900 5B590000 39F77F80 0A4000C2]
[D/drv.sdio] clk:1000000 width:1 power:ON
[D/drv.sdio] CMD:55 ARG:0x12340000 RES:R1 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000440 [00000920 5B590000 39F77F80 0A4000C2]
[D/drv.sdio] CMD:6 ARG:0x00000002 RES:R1 rw:- len:0 blksize:0
[D/drv.sdio] sta:0x00000440 [00000920 5B590000 39F77F80 0A4000C2]
[D/drv.sdio] clk:1000000 width:4 power:ON
[D/drv.sdio] CMD:17 ARG:0x00000000 RES:R1 rw:r len:512 blksize:512
[D/drv.sdio] disable sdio irq
[E/drv.sdio] wait completed timeout
[E/SDIO] mmcsd request blocks error
[E/SDIO] -1,0,0, 0x00000002,0x00000000
[E/SDIO] read mmcsd first sector failed
[D/drv.sdio] clk:0 width:1 power:OFF


查看更多

关注者
0
被浏览
246
1 个回答
快没时间了
快没时间了 2020-07-02

可能原因
1.SDIO引脚速率配置为低速模式
2.SDIO时钟速率配置太高

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友