10 stm32L476VGT6 的sd卡起不来

发布于 2021-02-19 10:40:49
\ | /
- RT -     Thread Operating System
 / | \     4.0.3 build Feb 18 2021
 2006 - 2020 Copyright by rt-thread team
[2] D/drv.sdio: enable sdio irq

使用版本如上,

msh />clock 0Hz busmode 1 powermode 1 cs 0 Vdd 23 width 0 
[125] D/drv.sdio: clk:0 width:1 power:UP
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0 
[144] D/drv.sdio: clk:400000 width:1 power:ON
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0 
[168] D/drv.sdio: clk:400000 width:1 power:ON
[174] D/drv.sdio: CMD:0 ARG:0x00000000 RES:NONE rw:- len:0 blksize:0
[5180] E/drv.sdio: wait completed timeout
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0 
[5190] D/drv.sdio: clk:400000 width:1 power:ON
[5195] D/drv.sdio: CMD:8 ARG:0x000001aa RES:R7 rw:- len:0 blksize:0
[10201] E/drv.sdio: wait completed timeout
[10205] D/drv.sdio: CMD:5 ARG:0x00000000 RES:R4 rw:- len:0 blksize:0
[15212] E/drv.sdio: wait completed timeout
[15216] D/drv.sdio: CMD:55 ARG:0x00000000 RES:R1 rw:- len:0 blksize:0
[20223] E/drv.sdio: wait completed timeout
[20227] D/drv.sdio: CMD:55 ARG:0x00000000 RES:R1 rw:- len:0 blksize:0
[25234] E/drv.sdio: wait completed timeout
[25238] D/drv.sdio: CMD:55 ARG:0x00000000 RES:R1 rw:- len:0 blksize:0
[30245] E/drv.sdio: wait completed timeout
[30249] D/drv.sdio: CMD:55 ARG:0x00000000 RES:R1 rw:- len:0 blksize:0
[35256] E/drv.sdio: wait completed timeout
[35260] D/drv.sdio: CMD:1 ARG:0x00000000 RES:R3 rw:- len:0 blksize:0
[40267] E/drv.sdio: wait completed timeout
[40271] D/drv.sdio: CMD:1 ARG:0x00000000 RES:R3 rw:- len:0 blksize:0
[45278] E/drv.sdio: wait completed timeout
[45282] D/drv.sdio: CMD:1 ARG:0x00000000 RES:R3 rw:- len:0 blksize:0
[50289] E/drv.sdio: wait completed timeout

sd卡sdio通讯失败,已经检查了硬件,msp中io口等已经初始化,请教哪位用用过l4的sd卡?之前用的f4和f1什么的上来就没啥问题,不知道l4怎么会这样, 量了下clk 没有输出

查看更多

关注者
0
被浏览
140
gaoan1985
gaoan1985 2021-02-19

自己的问题?sdmmc的时钟没开起来

2 个回答
whj467467222
whj467467222 认证专家 2021-02-19

先尝试一下用一线模式能不能正常启动

撰写答案

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

发布
问题

分享
好友

手机
浏览

扫码手机浏览