SPI/MMC example - anyone got this to work?

This app note below shows how to use the SPI bus/mode to talk to an SDIO card. I have cut and paste the example and it compiles correctly, but when I run the program, it behaves the same, regardless whether or not there is an SD card in.

The result is, it gets stuck waiting for a response that never comes, and goes into its infinite while(1).

Has anyone got this to work? Can anyone post some code that works?

Thanks,

AH

http://www.semiconductors.philips.com/a … 0406_2.pdf