Hi,

For a project I'm currently working on I need to connect an SD Memory Card
to an SPI interface on an ARM9 running WinCE600. How can I direct the SD Bus
driver to use this specific SPI port as low level interface? Anyone done this
before? What code do I need to change / add?


--
kris @ signum

Re: SD Memory Card on SPI port by Valter

Valter
Wed Apr 09 09:28:48 PDT 2008

=?Utf-8?B?a3Jpcw==?= <kris@discussions.microsoft.com> wrote in
news:767EC3DA-A7F1-4464-846E-1228DA8721D8@microsoft.com:

> Hi,
>
> For a project I'm currently working on I need to connect an SD
> Memory Card to an SPI interface on an ARM9 running WinCE600. How
> can I direct the SD Bus driver to use this specific SPI port as
> low level interface? Anyone done this before? What code do I need
> to change / add?

I don't know if you need some extra signals to handle the MMC protocol
(SD uses multiple data lines, IIRC). If you spi port can handle the
low-level data trasfer you need to implement a SD host driver that
talks with the SDIO "generic" layer. That's more or less the same
architecture of USB with a hardware-related driver, a protocol layer
that handles device recognition etc. and client drivers that are
hardware independent.
I develop the sd-host driver on Windows CE 5 using the mainstone II sd
host driver as reference. There was not much documentation at that
time (some comments inside a .h file is my concept of "not much"), but
I don't know if CE 6.0 provides more information about this kind of
components.

--
Valter Minute
www.fortechembeddedlabs.it
Training, support and development for Windows CE
(the reply address of this message is invalid)

Re: SD Memory Card on SPI port by Michel

Michel
Wed Apr 09 09:32:08 PDT 2008

http://groups.google.co.nz/group/microsoft.public.windowsce.targeted.device/browse_thread/thread/cf7c412c18a11662/d064f72eeb6e0be7?hl=en&lnk=st&q=#d064f72eeb6e0be7

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
http://GuruCE.com
Consultancy, training and development services.


kris wrote:
> Hi,
>
> For a project I'm currently working on I need to connect an SD Memory Card
> to an SPI interface on an ARM9 running WinCE600. How can I direct the SD Bus
> driver to use this specific SPI port as low level interface? Anyone done this
> before? What code do I need to change / add?
>
>

Re: SD Memory Card on SPI port by Michel

Michel
Wed Apr 09 10:25:08 PDT 2008

This gives more info:
http://groups.google.co.nz/groups?as_q=sdio+spi&num=100&scoring=r&hl=en&as_epq=&as_oq=&as_eq=&as_ugroup=*windowsce*&as_usubject=&as_uauthors=&lr=&as_drrb=q&as_qdr=&as_mind=1&as_minm=1&as_miny=1981&as_maxd=10&as_maxm=4&as_maxy=2008&safe=off

In short: I think the situation for CE 5.0 is that it can be done, but
it depends on the SPI logic. There is extra overhead and performance
degradation, but the SDIO stack shouldn't care whatever interface you're
talking to in your PDD layer. There are no examples out-of-the-box that
support SDIO over SPI, and as far as CE 6.0 is concerned I don't think
anything changed in this respect.


Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
http://GuruCE.com
Consultancy, training and development services.


Michel Verhagen (eMVP) wrote:
> http://groups.google.co.nz/group/microsoft.public.windowsce.targeted.device/browse_thread/thread/cf7c412c18a11662/d064f72eeb6e0be7?hl=en&lnk=st&q=#d064f72eeb6e0be7
>
>
> Good luck,
>
> Michel Verhagen, eMVP
> Check out my blog: http://GuruCE.com/blog
>
> GuruCE
> http://GuruCE.com
> Consultancy, training and development services.
>
>
> kris wrote:
>> Hi,
>>
>> For a project I'm currently working on I need to connect an SD Memory
>> Card to an SPI interface on an ARM9 running WinCE600. How can I direct
>> the SD Bus driver to use this specific SPI port as low level
>> interface? Anyone done this before? What code do I need to change / add?
>>
>>

Re: SD Memory Card on SPI port by kris

kris
Wed Apr 09 10:41:02 PDT 2008

Thx,

As I understand, SPI is not the easiest way to connect an SD card to a WinCE
system. What types of hardware interfacing are then supported to use an SD
Cards on a WinCE 6.0 system, without the burden of having to write a driver?
(hardware modifs in this stage of the design are still allowed)


--
kris @ signum


"Michel Verhagen (eMVP)" wrote:

> http://groups.google.co.nz/group/microsoft.public.windowsce.targeted.device/browse_thread/thread/cf7c412c18a11662/d064f72eeb6e0be7?hl=en&lnk=st&q=#d064f72eeb6e0be7
>
> Good luck,
>
> Michel Verhagen, eMVP
> Check out my blog: http://GuruCE.com/blog
>
> GuruCE
> http://GuruCE.com
> Consultancy, training and development services.
>
>
> kris wrote:
> > Hi,
> >
> > For a project I'm currently working on I need to connect an SD Memory Card
> > to an SPI interface on an ARM9 running WinCE600. How can I direct the SD Bus
> > driver to use this specific SPI port as low level interface? Anyone done this
> > before? What code do I need to change / add?
> >
> >
>

Re: SD Memory Card on SPI port by Michel

Michel
Wed Apr 09 11:19:27 PDT 2008

Unless you have a BSP for your hardware, or a driver that supports your
hardware, you still have to write a driver (at least the PDD part that
deals with the GPIO's for the interrupts). The supported SDIO interface
is MMC. Take a look at
\WINCE600\PLATFORM\MAINSTONEIII\SRC\DRIVERS\SDHC or
\WINCE600\PLATFORM\ARUBABOARD\SRC\DRIVERS\SDHC for some examples. You
would need to adapt these samples to support your hardware design.

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
http://GuruCE.com
Consultancy, training and development services.


kris wrote:
> Thx,
>
> As I understand, SPI is not the easiest way to connect an SD card to a WinCE
> system. What types of hardware interfacing are then supported to use an SD
> Cards on a WinCE 6.0 system, without the burden of having to write a driver?
> (hardware modifs in this stage of the design are still allowed)
>
>