@awwwwa 我这试了四张卡,只有这张可以:
a0ae52e9-c170-494a-aec0-71f44dc96498-image.png
输出log:
c906>
c906>card_detect insert sdmmc_test->card_id=0
card id is 0
SD:mmc_card_create card:00000000084601D0 id:0
card debug mask 3c
SDC:Not implement __mci_restore_io,838
HAL_GetHFClock,53 Warning Use fix value 24000000
HAL_GetHFClock,53 Warning Use fix value 24000000
HAL_GetHFClock,53 Warning Use fix value 24000000
SDC:SDC clock=416666 kHz,src:0, n:2, m:11
HAL_GetHFClock,53 Warning Use fix value 24000000
HAL_GetHFClock,53 Warning Use fix value 24000000
HAL_GetHFClock,53 Warning Use fix value 24000000
SDC:SDC clock=416666 kHz,src:0, n:2, m:11
[ERR] SDC:__mci_irq_handler,924 raw_int:100 err!
[ERR] SDC:SDC err, cmd 52, RTO
[ERR] SDC:sdc 701 abnormal status: RespErr
[ERR] SDC:__mci_irq_handler,924 raw_int:100 err!
[ERR] SDC:SDC err, cmd 52, RTO
[ERR] SDC:sdc 701 abnormal status: RespErr
SD:***** Try sdio *****
[ERR] SDC:__mci_irq_handler,924 raw_int:100 err!
[ERR] SDC:SDC err, cmd 5, RTO
[ERR] SDC:sdc 701 abnormal status: RespErr
SD:***** Try sd *****
mmc_send_app_op_cond,89
SD:card ocr: c0ff8000
SD:Card CID number:27504853
SD:card raw cid:
SD:card raw csd:
m:59159, e:2, dtr:25000000, cl:1461, len:9, cap:60579840 str:1
SD:card raw scr:
SD:card raw SD status:
HAL_GetHFClock,53 Warning Use fix value 24000000
HAL_GetDevClock,90 Warning Use fix value 192000000
HAL_GetDevClock,90 Warning Use fix value 192000000
SDC:SDC clock=48000000 kHz,src:1, n:0, m:1
SD:card is switched to high speed mode, clk:50000 KHz
SD:Set bus width type: 2
SD:
============= card information ==============
SD:Card Type : SDHC
SD:Card Spec Ver : 5.0
SD:Card RCA : 0x5048
SD:Card OCR : 0x40ff8000
SD: vol_window : 0x00ff8000
SD: to_1v8_acpt : 0
SD: high_capac : 0
SD:Card CSD :
SD: speed : 50000 KHz
SD: cmd class : 0x5b5
SD: capacity : 29580MB
SD:Card CUR_STA :
SD: speed_mode : HS: 50 MHz
SD: bus_width : 2
SD: speed_class : 10
SD:=============================================
SD:***** sd init ok *****
Initial card success
mount successully