wince SDIO_WIFI SDIO初始化失败
为什么自己发的帖子回复三次后也不能再回复啦,问题还没解决怎么就不能继续提问了呢?
问题困扰了好久了,只能重新再发一帖了
板子是友善的s3c6410,ce6的
在开发板上插上带wifi功能的SD卡是可以运行的,SD是[HSMMC0]
但是现在我们改板后用的WM_G_MR_09模块,SDIO是[HSMMC1]
我已经将[HSMMC1]的IO口检测时修改为TRUE
BOOL CSDHCSlotBase::IsCardPresent()
{
return TRUE;
}
#define _SRCCLK_48MHZ_
这个宏我没有打开,因为USB时钟还有些问题
请高手们看看为什么最后有这样的错误
ERR CMD:52 : CMD CRC Error...
*** SDIOInitialization FAILED! ***
具体打印信息如下:
[HSMMC1] Initializing the HSMMC Host Controller
[HSMMC1] Turn OFF the F/B delay control.
m_fCommandPolling =-1
SDHCSetRate - Clock Control Reg = 101
SDHCSetRate - Actual clock rate = 24000000,m_fCommandPolling=-1
[HSMMC1] HandleInterrupt!
[HSMMC1] IsCardPresent TRUE!
[HSMMC1] Card is Inserted!
[HSMMC1] Turn OFF the F/B delay control.
m_fCommandPolling =-1
SDHCSetRate - Clock Control Reg = 8001
SDHCSetRate - Actual clock rate = 187500,m_fCommandPolling=-1
EnableSDIOInterrupts (0)
DoEnableSDIOInterrupts (0)
CSDHCSlotBase::SlotOptionHandler: Clock Setting: 100000
[HSMMC1] Setting for 1 bit mode , Clock Rate = 100000 Hz
[HSMMC1] Turn OFF the F/B delay control.
m_fCommandPolling =-1
SDHCSetRate - Clock Control Reg = 8001
SDHCSetRate - Actual clock rate = 187500,m_fCommandPolling=-1
CMD:5
CommandResponse.ResponseType:5
Sending command register 0x0502
Sending command Argument 0x00000000
PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
pdwResponseBuffer :0x90ff8000
INIT - Enter DriverEntry
*** Driver version 38.p47 ***
*** Built on Sep 26 2012 09:46:21 ***
<== DriverEntry: register miniport success
CMD:5
CommandResponse.ResponseType:5
Sending command register 0x0502
Sending command Argument 0x40100000
PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
pdwResponseBuffer :0x90100000
CMD:3
CommandResponse.ResponseType:7
Sending command register 0x031A
Sending command Argument 0x00000000
PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
pdwResponseBuffer :0x11e00
CMD:7
CommandResponse.ResponseType:2
Sending command register 0x071B
Sending command Argument 0x00010000
PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
pdwResponseBuffer :0x0
CMD:52
CommandResponse.ResponseType:6
Sending command register 0x341A
Sending command Argument 0x88000E80
PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
pdwResponseBuffer :0x1080
。。。。。。。 省略中间好多CMD52的命令
CMD:52
CommandResponse.ResponseType:6
Sending command register 0x341A
Sending command Argument 0x00001000
PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
pdwResponseBuffer :0x1003
CSDHCSlotBase::SlotOptionHandler: Clock Setting: 25000000
[HSMMC1] Setting for 4 bit mode , Clock Rate = 25000000 Hz
[HSMMC1] Turn OFF the F/B delay control.
m_fCommandPolling =-1
SDHCSetRate - Clock Control Reg = 101
SDHCSetRate - Actual clock rate = 24000000,m_fCommandPolling=-1
SDNDISLDR: pInstance->MiniportName SDIO8686 pInstance->MiniportInstance SDIO86861
INIT - Enter MrvDrvInitialize
[WiFi]: Driver Version: 38.p47
pAssoInfo = 0xd2a71d48, pAssoInfo->Length = 0xd2a71d48
SDNdis: Active path str == Drivers\Active\21
SDNdis: Active Path Retrieved: Drivers\Active\21
SDNDIS : Enabling Card ...
CMD:52
CommandResponse.ResponseType:6
Sending command register 0x341A
Sending command Argument 0x00020400
PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
pdwResponseBuffer :0x1000
SDIOInitialization() - Sleeping for 100 ms
CMD:52
CommandResponse.ResponseType:6
Sending command register 0x341A
Sending command Argument 0x00020400
PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
pdwResponseBuffer :0x1000
CMD:52
CommandResponse.ResponseType:6
Sending command register 0x341A
Sending command Argument 0x80000402
PollingForCommandComplete (0) - Normal Interrupt_Status=0x8000
HandleErrors - ERROR INT STATUS=0x02
ERR CMD:52 : CMD CRC Error...
SDNDIS: Failed to enable Function:0xC000000D
*** SDIOInitialization FAILED! ***
*** SDIOInitialization FAILED! ***
[TT] SDIO initialization is failed! Quit initialization process
SDNDISLDR: NdisRegisterAdapter NDIS_SUCCESS(NdisStatus) return fail NdisStatus = -1073741823
[解决办法]
查查改后的板子接线是否有出入,
如果是相同的驱动下 开发板可以,自己的板子不行,
考虑考虑硬件问题吧~!