嵌入式技术william hill官网
直播中

jsqueh

8年用户 1177经验值
私信 关注
[问答]

N32G455 SDIO驱动SD卡无法挂载文件系统是什么原因

现在N32G455 SDIO 驱动SD卡可以正确识别到卡的容量信息;list_device也可以查到SD0设备。

但是会出现[I/SDIO] switching card to high speed failed! 这个信息,而且无法挂载文件系统。测试读写功能也是不行。一直没找到原因。

还请大家帮忙看看是什么原因,谢谢。

sdio驱动文件见上传的drv_sdio.c和drv_sdio.h

msh />
\ | /

RT - Thread Operating System
/ | \ 5.0.0 build Nov 24 2022 17:44:30
2006 - 2022 Copyright by RT-Thread team
msh />[I/SDIO] SD card capacity 62334976 KB.
[I/SDIO] switching card to high speed failed!
msh />list_device
device type ref count


sd0 Block Device 0
wdt WDT Device 0
usart2 Character Device 2
pin Pin Device 0
msh />

回帖(2)

jsqueh

2023-1-9 15:47:22
现在可以正确识别到SD卡了,但是设备里面没有。

  | /
- RT -     Thread Operating System
/ |      4.1.0 build Nov 23 2022 09:07:53
2006 - 2022 Copyright by RT-Thread team
Application Version: 1.6.1 build Nov 23 2022
[E/I2C] I2C bus i2c2 not exist
[E/DBG] i2c bus device i2c2 not found!
msh />[I/SDIO] SD card capacity 62334976 KB.
msh />
msh />list_device
                         type         ref count
---------------- -------------------- ----------
wdt              WDT Device           0      
spi1             SPI Bus              0      
i2c1             I2C Bus              0      
adc1             ADC Device           0      
uart2            Character Device     2      
uart1            Character Device     0      
pin              Pin Device           0      
msh />
举报

王桂兰

2023-1-9 15:47:34
可以单步调试下,可能还是读有问题,没能正确读取到分区信息。
另外,为什么之前有报错现在不报错了呢?问题的原因是什么?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分