Re: SD card driver development.

Tech-Archive recommends: Speed Up your PC by fixing your registry



thanks Henrik for the prompt replies.
here i got a big question for you.
i have to support for EDMA transfers for read/write to SD card.
my soc is combination of both ARM and DSP.
how to take care of this.

thanks,
seshu


Henrik Viklund wrote:
Obvioulsy you must implement the processor specific parts. If you
conform to the defined interfaces you can take advantage of all the
helper libs which will ease the burden conciderably, yes.

Henrik Viklund
http://www.addlogic.se

seshucherukuri@xxxxxxxxx wrote:
thanks Henrik.
i have gone through the source files and check for the differenct
libraries included for my driver.
by this all observation it seems i dont need to change many things to
implement.
i have to take care my processor specific settings.
is all my assumption correct.
or else wht i need to do more.

thanks
seshu



Henrik Viklund wrote:
OK. You've not looked close enough, then ;-). The *processor* specific
code with all the tricky IO stuff resides under
"\WINCE500\public\common\oak\CSP\arm\intel\pxa27x\sdhc\". It is common
practice (well, it should be anyway...) to layer a driver into CPU
specific libs, board specific libs etc. If you right-click on the
mainstoneII sdhc driver project in the file view and select "open"
you'll open the sources file. There you can see what libs where linked
together to form the driver.

Henrik Viklund
http://www.addlogic.se

seshucherukuri@xxxxxxxxx wrote:
thanks Henrik,
here i would like to know, how my card read and write operation is
done.
i have gone through the PXA27x code for SD card,i have not seen any
where the read/write operation for the same. whether i have to do any
modifications for Client driver to peform the same.
and also how my driver is loaded?
thanks,
seshu

Henrik Viklund wrote:
You need to read the docs and look at the sourcecode. It is practically
impossible to answer this kind of general question about such complex
architecture over a medium such as a usnet group.

Henrik Viklund
http:www.addlogic.se

seshucherukuri@xxxxxxxxx wrote:
Thanks Henrik.
here i would like to know how my host controller driver is
communicating with the bus and client drivers.
what all i need to do to achieve this target?

thanks,
seshu

Henrik Viklund wrote:
Read "Developing a Device Driver > Windows CE Drivers > Secure Digital
Card Drivers" in the PB5 help.

Check out "\WINCE500\public\common\oak\drivers\sdcard\" for the source
for the sd card related drivers and helper libs.

An example implementation sdhc driver:
"\WINCE500\PLATFORM\MAINSTONEII\src\drivers\sdhc\"

Henrik Viklund
http://www.addlogic.se

seshucheruk...@xxxxxxxxx wrote:
Thanks Henrik for the prompt reply.
i am very confused now.
as these days i have gone through the block driver architecture in
WinCE and prepared to start with the implementation of client drivers.
as i thought only the registry settings have to be changed in host
controller driver.

would you please give me some inputs from your side how to proceed with
my task.
as i am new to this driver development in Windows CE.
and present from where to start?
and if you suggest me to go through some documents for help it will be
a good thing.

thanks,
seshu

Henrik Viklund wrote:
As I said in the other post you normally only need to implement a host
controller driver that abstracts your hardware to the host controller
driver interface. This way you can utilize the bus and class drivers
that are provided with CE5.

Henrik Viklund
http://www.addlogic.se

seshu wrote:
Hi,
I am developing SD card driver for the ARM926EJS processor in winCE 5.0


here i am developing the client driver as a block driver.
can i consider this as an ATA type driver?
whether I have to develop the host controller driver and the bus driver
or not?


thanks,
seshu

.



Relevant Pages

  • Re: Sd card detect
    ... SDHCDRegisterHostController success only the card detection mechanism ... controller driver interface or i can write the same things in my ... Henrik Viklund wrote: ... obvious that the sdhc driver needs to be a dll and that it needs to be ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Initialize hardware for SD card
    ... inserted the card in my development board. ... Henrik Viklund wrote: ... what it is -it's the MainstoneII board specific part of the driver! ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Initialize hardware for SD card
    ... "SDHCDInitializeHCLib" is never called in your bus driver ... Henrik Viklund wrote: ... inserted the card in my development board. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Initialize hardware for SD card
    ... Henrik Viklund wrote: ... inserted the card in my development board. ... 0x86ba0d7c: PXA27X SDIO Driver: DEBUGCHK fa ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Initialize hardware for SD card
    ... Henrik Viklund wrote: ... inserted the card in my development board. ... SDH: +SDHC Initialization ... 0x86ba0d7c: PXA27X SDIO Driver: DEBUGCHK fa ...
    (microsoft.public.windowsce.platbuilder)