Re: SD Card MMC clock



Since the Power is controled by the FPGA in mainstone board and your custom
board may have different apporach (could be GPIO in many design).
The MMCPowerControl function of impl.c is the one that gating the slot power
on/off, make sure you have a proper implementation for your own custom board
rather than using the default codes.
BTW, there is another board depend function, IsCardWriteProtected, which
detecting the Write Protect key on SD memory card, one will also need to
implment when porint to new platform.

"Abhishek" <Abhishek@xxxxxxxxxxxxxxxxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:77CD90AB-7AFA-462C-8F62-C2C4FB6E2141@xxxxxxxxxxxxxxxx
Hai,
Thanku for ur response .I configured the GPIO pin for the Card detect
in impl.c.Now the card is detected (verified by probing) .But i observed
the
debug messages time out error is coming for all the commands like below.

SDHSlotOptionHandler - called - SetSlotInterface : Clock Setting: 100000
SDHSlotOptionHandler - called - SetSlotInterface : setting for 1 bit mode
SDClockOn - Requested Rate: 100000, Setting clock rate to 312500 Hz
SDHBusRequestHandler - CMD: 0x05 DATA: 0x00000000, TC: 2
SDHBusRequestHandler - CMD: 0x05 DATA: 0x00000000, TC: 2
SDHBusRequestHandler - CMDAT Reg: 0x00000043, CMD:5
SDIst+++++++++++++
SDControllerIstThread: Controller Interrupt: 0x00000004
SDControllerIstThread: MMC_IREG_END_CMD
HandleEndCommandInterrupt: response for command 5 , timed - out
SDClockOff - turning off clock
Waiting for clock off
SDClockOff - Clock is now off
HandleEndCommandInterrupt reports RESPONSE TIMEOUT
SDHBusRequestHandler - CMD: 0x05 DATA: 0x00000000, TC: 2
SDHBusRequestHandler - CMD: 0x05 DATA: 0x00000000, TC: 2
SDHBusRequestHandler - CMDAT Reg: 0x00000003, CMD:5
SDHBusRequestHandler - Request Sent

This is coming for all the commands..Can u suggest me why it is like that?


.



Relevant Pages

  • Re: Generating 6MHz output frequency
    ... using an EPSON controller ... As I have to use STR9 chip, I'm trying to figure out if I can really obtain this output frequency: the problem is that the micro PLL can raise the internal clock frequency upto 96MHz. ... At first look, I might have to invoke a sort of IRQ @ 12MHz to drive the output pin HIGH-LOW with 50% duty-cycle: may I use a timer output compare interrupt, but here comes the trouble. ...
    (comp.arch.embedded)
  • Re: USERENV Events 1030/1058 Access Denied to GPT.ini
    ... Another thing that we don't checked yet is the clock, ... and rebuild a new one, but DON'T do that now, I think that would be better ... Just standard informational entries. ... the domain controller that prompts it to display those errors and in 5 ...
    (microsoft.public.windows.server.active_directory)
  • Generating 6MHz output frequency
    ... I need to drive a 320x240x8bbp TFT color display. ... using an EPSON controller ... As I have to use STR9 chip, I'm trying to figure out if I can really obtain this output frequency: the problem is that the micro PLL can raise the internal clock frequency upto 96MHz. ...
    (comp.arch.embedded)
  • Re: [PATCH 1/2] MMC Agressive clocking framework v5
    ... should leave the clock on for best performance. ... block driver or an SDIO function driver) to control whether to idle the ... The code doesn't tell the driver to idle the controller, ...
    (Linux-Kernel)
  • Re: SDIO driver
    ... the clock to the SD Controller itself? ... // change to Alternate Function 2 ... //This command must be sent every time before an application command ...
    (microsoft.public.windowsce.platbuilder)

Loading