none
SD Card Not Detected in Windows CE 6.0 RRS feed

  • Question

  •  

    Hi all,
    
    	OS : WinCE 6.0 R3
    
    	Platform : x86
    
    	BSP : Custom Based on CEPC
    
    	Kernel : Retail [KITL Disabled]
    
    * My Hardware supports SDIO V 1.1
    
    * The SD Card is not detected.  I checked the status register and found that the error is due to command line time out.
    
    * I am unable to find the reason for the timeout and how to solve this?
    
    * The Retail Log is as follows
    
    
    
    CSDHCBase::InitializeHardware: IRQ 0x9 mapped to SYS_INTR 0x1F,Base address -> 0xa10c0400; length -> 0x100 
    
    SDHC Will use DMA for slot 0
    
    SDHCSetRate - Clock Control Reg = 101
    
    SDHCSetRate - Actual clock rate = 240000
    
    InitialCSDHCBase::IST: Thread Starting
    
    CSDHCBase::IST : dwTimeout: ffffffff, m_dwSysIntr: 1f
    
    CSDHCBase::HandleInterrupt: Slot Interrupt_Status=0x0
    
    SDHCControllerIst - Card is Inserted! 
    
    Initializing SDHC Driver... 
    
    CSDHCBase::InitializeHardware: IRQ 0x9 mapped to SYS_INTR 0x1D.Base address -> 0xa10c0500; length -> 0x100 
    
    SDHC Will use DMA for slot 0
    
    SDHCSetRate - Clock Control Reg = 101
    
    SDHCSetRate - Actual clock rate = 24000000
    
    CSDHCBase::IST: Thread Starting
    
    CSDHCBase::IST : dwTimeout: ffffffff, m_dwSysIntr: 1d
    
    CSDHCBase::HandleInterrupt: Slot Interrupt_Status=0x0
    
    SDHCControllerIst - Card is Removed! 
    
    CSDHCSlotBase:Set SDHC_POWER_CONTROL reg = 0x0f
    
    SDHCSetRate - Clock Control Reg = 8001
    
    SDHCSetRate - Actual clock rate = 187500
    
    SDClockOn: CLOCK_ENABLE 
    
    CSDHCSlotBase::DoEnableSDIOInterrupts else,dwIntStatusEn: 0
    
    Setting Host Control Register 0 
    
    SDHCSetRate - Clock Control Reg = 8001
    
    SDHCSetRate - Actual clock rate = 187500
    
    Clock Setting: 187500	pInterface->WriteProtected : 0
    
    CSDHCSlotBase::BusRequestHandler: CMD:5
    
    CSDHCSlotBase::BusRequestHandler: Fastpath
    
    CSDHCSlotBase::SubmitBusRequestHandler: CMD:5
    
    Sending command register 0x0502
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x18000
    
    HandleErrors - ERROR INT STATUS=0x18000
    
    DumpCurrentRequest: 0xD0CB0E34
    
    	 Command: 5
    
    	 Argument: 0x00000000
    
    	 ResponseType: 5
    
    	 NumBlocks: 0
    
    	 BlockSize: 0
    
    	 HCParam: 0
    
    HandleErrors: ERR_INT_STATUS_CMD_TIMEOUT 0x18000
    
    HandleErrors - Command line error (0x18000). Resetting CMD line.
    
    CSDHCSlotBase::BusRequestHandler: Polling for completion.
    
    CSDHCSlotBase::BusRequestHandler:Fastpass completed.
    
    CSDHCSlotBase::BusRequestHandler: dwIntSignals 1ff01ff
    
    CSDHCSlotBase::BusRequestHandler: CMD:0
    
    CSDHCSlotBase::BusRequestHandler: Fastpath
    
    CSDHCSlotBase::SubmitBusRequestHandler: CMD:0
    
    Sending command register 0x0000
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:8
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:8
    
    Sending command register 0x081A
    
    Sending command Argument 0x0000015A
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x18000
    
    HandleErrors - ERROR INT STATUS=0x18000
    
    DumpCurrentRequest: 0xD0CB0E34
    
    	 Command: 8
    
    	 Argument: 0x0000015a
    
    	 ResponseType: 8
    
    	 NumBlocks: 0
    
    	 BlockSize: 0
    
    	 HCParam: 0
    
    HandleErrors: ERR_INT_STATUS_CMD_TIMEOUT 0x18000
    
    HandleErrors - Command line error (0x18000). Resetting CMD line.
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:1
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:1
    
    Sending command register 0x0102
    
    Sending command Argument 0x00300000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x18000
    
    HandleErrors - ERROR INT STATUS=0x18000
    
    DumpCurrentRequest: 0xD0CB0E34
    
    	 Command: 1
    
    	 Argument: 0x00300000
    
    	 ResponseType: 4
    
    	 NumBlocks: 0
    
    	 BlockSize: 0
    
    	 HCParam: 0
    
    HandleErrors: ERR_INT_STATUS_CMD_TIMEOUT 0x18000
    
    HandleErrors - Command line error (0x18000). Resetting CMD line.
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:55
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:55
    
    Sending command register 0x371A
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:41
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:41
    
    Sending command register 0x2902
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    SetVoltage: Set SDHC_POWER_CONTROL reg = 0x0f
    
    BusRequestHandler: CMD:0
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:0
    
    Sending command register 0x0000
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:8
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:8
    
    Sending command register 0x081A
    
    Sending command Argument 0x0000015A
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x18000
    
    HandleErrors - ERROR INT STATUS=0x18000
    
    DumpCurrentRequest: 0xD0CB0E34
    
    	 Command: 8
    
    	 Argument: 0x0000015a
    
    	 ResponseType: 8
    
    	 NumBlocks: 0
    
    	 BlockSize: 0
    
    	 HCParam: 0
    
    HandleErrors: ERR_INT_STATUS_CMD_TIMEOUT 0x18000
    
    HandleErrors - Command line error (0x18000). Resetting CMD line.
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:55
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:55
    
    Sending command register 0x371A
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:41
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:41
    
    Sending command register 0x2902
    
    Sending command Argument 0x00100000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:55
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:55
    
    Sending command register 0x371A
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:41
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:41
    
    Sending command register 0x2902
    
    Sending command Argument 0x00100000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:2
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:2
    
    Sending command register 0x0209
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:3
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:3
    
    Sending command register 0x031A
    
    Sending command Argument 0x00000000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:9
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:9
    
    Sending command register 0x0909
    
    Sending command Argument 0xB3680000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:13
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:13
    
    Sending command register 0x0D1A
    
    Sending command Argument 0xB3680000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:7
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:7
    
    Sending command register 0x071B
    
    Sending command Argument 0xB3680000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x03
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:55
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:55
    
    Sending command register 0x371A
    
    Sending command Argument 0xB3680000
    
    SDClockOn: CLOCK_ENABLE 
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler:Fastpass completed.
    
    BusRequestHandler: dwIntSignals 1ff01ff
    
    BusRequestHandler: CMD:51
    
    BusRequestHandler: Fastpath
    
    SubmitBusRequestHandler: CMD:51
    
    Sending command register 0x333A
    
    Sending command Argument 0x00000000
    
    PollingForCommandComplete (0) - Normal Interrupt_Status=0x01
    
    BusRequestHandler: Polling for completion.
    
    BusRequestHandler : Call Handle Interrupt
    
    HandleInterrupt (0) - Normal Interrupt_Status=0x20
    
    HandleReadReady - HandleReadReady!
    
    HandleReadReady : - else request must have been canceled due to an error
    
    BusRequestHandler:Time out , need to switch to asyn.it will call callback after this
    
    Kindly revert with solutions...

     

     

     

    Tuesday, March 15, 2011 7:38 AM