Re: MMC card not working on Intel PXA27x (development kit)

From: Steve Schrock [MS] (sschrock_at_online.microsoft.com)
Date: 11/29/04


Date: Mon, 29 Nov 2004 15:48:37 -0800

Right. You can add code like the following to HandleEndCommandInterrupt in
csp\arm\intel\pxa27x\sdhc\sdcontrol.c.

    if (statRegister & MMC_STAT_RESPONSE_CRC_ERROR) {

// NEW CODE STARTS HERE

        if (ResponseR2 == pRequest->CommandResponse.ResponseType) {
            DbgPrintZo(SDCARD_ZONE_WARN, (TEXT("HandleEndCommandInterrupt:
response for command %d contains a CRC error. Ignored. \n"),
pRequest->CommandCode));
        }
        else
        {

// OLD ERROR-HANDLINGS CODE CONTINUES (don't forget closing '}')

-- 
Steve Schrock
Windows CE Device Drivers
This posting is provided "AS IS" with no warranties, and confers no rights.
"Martin Malik" <mmalik {_at_} gotive.com> wrote in message 
news:3369A102-5134-4FEF-A3E6-EF952EBA8820@microsoft.com...
> If you have PXA27x C0-Stepping or below, this might be due to Erratum #42
> (check PXA270 Spec. Update). If this is the case (can be confirmed by
> checking debug msgs) then you need to patch the driver (sdcontrol.c in 
> CSP)
> in order to ignore Response CRC Error for cmds returning R2 responses.
>
> Martin
>
> "Zhijie" wrote:
>
>> Hi,
>>
>>      I've tried using MMC card on Intel PXA27x development kit and using
>> driver comes with WinCE5.0. I can't get it to work. However, if I use a 
>> SD
>> Memory card instead, it works just fine. So, I'm sure that compilation 
>> and
>> setup was ok. It seems to be some bugs in the driver that not able to
>> recognize MMC card. Does anyone know about this issue and how to fix 
>> this?
>> Thanks for any info!
>>
>> Zhijie 


Relevant Pages

  • Re: Device Driver that uploads its own code?
    ... respond/interact with hardware with microsecond precision. ... Because of the high-speed timing response required, ... this has to happen right within the driver itself, ... and completely bypass the need for expensive Real-Time ...
    (microsoft.public.win32.programmer.kernel)
  • Re: KERNEL 2.6.3 and MAXTOR 160 GB
    ... ACPI: No IRQ known for interrupt pin A of device 0000:00:04.0 - using IRQ ... no response, ... Advanced Linux Sound Architecture Driver Version 1.0.2c (Thu Feb 05 ... ohci_hcd 0000:00:02.0: new USB bus registered, ...
    (Linux-Kernel)
  • Re: Drugged drivers.
    ... Doug either doesn't know anything ... > bit of a bad idea to solely blame the driver. ... >>> involve some loss of memory, particularly in a child, something you ... I brought it up in response to someone else mentioning they had ...
    (uk.transport)
  • Re: Girl, 11, comes within inch of death as drink driver slams BMW into her bedroom
    ... book at the driver for driving whilst pissed, ... punishment because his survival instinct took over whilst he was ... extra punishment for running away. ... Humans have developed a response system over millenia, far before any sort of civilisation like that with which we are now familliar, we have developed what's known as a "Fight or flee" reflex, this is automatic and cuts in, invarious degrees, whenever there is a conflict arousing, the adrenelin levels rise and the body prepares for action, this could be in a quite minor way, when having a confrontation with a work colleague for example and is controllable, this is commonly referred to as stress. ...
    (uk.transport)
  • Re: Interesting cab ride...
    ... I would report the driver to the PCO without hesitation as he started ... when to take a breather before carrying passengers. ... your response but I do understand it as you were clearly provoked. ... The episode is particularly galling given the way in which the licensed ...
    (uk.transport.london)