求助MSH下list_device,无法发现SD0设备,如何破?

发布于 2020-04-17 16:33:24
    本帖最后由 xquery 于 2020-4-17 16:50 编辑


我使用的RTT V4.0.1
使用的是ENV + mdk5的开发方式
MCU为STM32F103RCT6 ,使用SDIO接口读TF卡。


我参考了飘渺坏坏的帖子

stm32f103-atk-warshipv3开启SD卡(SDIO接口) 挂载fatfs文件系统教程
https://www.rt-thread.org/qa/thread-11132-1-1.html
(出处: RT-Thread开发者社区)


也按照他的操作步骤来的,
ENV里面配置,也修改了kconfig,程序编译成功。
下载后,硬件仿真,程序也有运行到dfs_register()函数
新建位图图像.bmp

但是list_device,无法发现SD0设备。
11.jpg

请问这个问题怎么破?
我这边的kconfig配置如下:
menu "Hardware Drivers Config"

config SOC_STM32F103RC
bool
select SOC_SERIES_STM32F1
default y

menu "Onboard Peripheral Drivers"
config BSP_USING_USB_TO_USART
bool "Enable USB TO USART (uart1)"
select BSP_USING_UART
select BSP_USING_UART1
default y
endmenu

menu "On-chip Peripheral Drivers"

config BSP_USING_GPIO
bool "Enable GPIO"
select RT_USING_PIN
default y

menuconfig BSP_USING_UART
bool "Enable UART"
default y
select RT_USING_SERIAL
if BSP_USING_UART
config BSP_USING_UART1
bool "Enable UART1"
default y

config BSP_UART1_RX_USING_DMA
bool "Enable UART1 RX DMA"
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
default n
endif

config BSP_USING_SDIO
bool "Enable SDIO BUS"
select RT_USING_SDIO
default n

menuconfig BSP_USING_SPI
bool "Enable SPI BUS"
default n
select RT_USING_SPI
if BSP_USING_SPI
config BSP_USING_SPI1
bool "Enable SPI1 BUS"
default n

config BSP_SPI1_TX_USING_DMA
bool "Enable SPI1 TX DMA"
depends on BSP_USING_SPI1
default n

config BSP_SPI1_RX_USING_DMA
bool "Enable SPI1 RX DMA"
depends on BSP_USING_SPI1
select BSP_SPI1_TX_USING_DMA
default n
endif

menuconfig BSP_USING_I2C1
bool "Enable I2C1 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C1
config BSP_I2C1_SCL_PIN
int "i2c1 scl pin number"
range 1 216
default 22
config BSP_I2C1_SDA_PIN
int "I2C1 sda pin number"
range 1 216
default 23
endif

menuconfig BSP_USING_I2C2
bool "Enable I2C2 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C2
config BSP_I2C2_SCL_PIN
int "i2c2 scl pin number"
range 1 216
default 36
config BSP_I2C2_SDA_PIN
int "I2C2 sda pin number"
range 1 216
default 37
endif

menuconfig BSP_USING_I2C3
bool "Enable I2C3 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C3
config BSP_I2C3_SCL_PIN
int "i2c3 scl pin number"
range 1 216
default 16
config BSP_I2C3_SDA_PIN
int "I2C3 sda pin number"
range 1 216
default 17
endif

menuconfig BSP_USING_I2C4
bool "Enable I2C4 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C4
config BSP_I2C4_SCL_PIN
int "i2c4 scl pin number"
range 1 216
default 28
config BSP_I2C4_SDA_PIN
int "I2C4 sda pin number"
range 1 216
default 29
endif

menuconfig BSP_USING_I2C5
bool "Enable I2C5 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C5
config BSP_I2C5_SCL_PIN
int "i2c5 scl pin number"
range 1 216
default 38
config BSP_I2C5_SDA_PIN
int "I2C5 sda pin number"
range 1 216
default 39
endif

menuconfig BSP_USING_I2C6
bool "Enable I2C6 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C6
config BSP_I2C6_SCL_PIN
int "i2c6 scl pin number"
range 1 216
default 30
config BSP_I2C6_SDA_PIN
int "I2C6 sda pin number"
range 1 216
default 31
endif

menuconfig BSP_USING_I2C7
bool "Enable I2C7 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C7
config BSP_I2C7_SCL_PIN
int "i2c7 scl pin number"
range -1 216
default 0
config BSP_I2C7_SDA_PIN
int "I2C7 sda pin number"
range 1 216
default 1
endif

menuconfig BSP_USING_I2C8
bool "Enable I2C8 BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C8
config BSP_I2C8_SCL_PIN
int "i2c8 scl pin number"
range 1 216
default 24
config BSP_I2C8_SDA_PIN
int "I2C8 sda pin number"
range 1 216
default 25
endif

endmenu

menu "Board extended module Drivers"

endmenu

endmenu










查看更多

关注者
0
被浏览
488
1 个回答
majianjia
majianjia 2020-04-17
无法发现证明没有注册成功,单步调驱动看看是哪一个地方导致没注册好的。

撰写答案

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

发布
问题

分享
好友

手机
浏览

扫码手机浏览