Guillaume Maire

MCF5485EVB and MMC over SPI

Discussion created by Guillaume Maire on Sep 4, 2009
Latest reply on Feb 7, 2014 by Petteri Matilainen

Hi,

 

I'm trying to use a SDCard with my MCF5485EVB board and the Linux 2.6.25 BSP from Freescale.

I plugged in a custom SDCard connector on the J26 connector of the LOGIC motherboard.

On the software side, I enabled these options in the Linux kernel :

 

CONFIG_SPI=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_DSPI=y

CONFIG_MMC=y
CONFIG_MMC_DEBUG=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_BOUNCE=y
CONFIG_MMC_SPI=y

 

The compilation was successful. The SPI driver is loaded and ready to work.

I also compiled and successfully ran the spidevtest.c SPI test program following the "Help/software/device_drivers/DSPI_M547X_8X.htm" file.

 

When I plug the SDcard, nothing happens (the hardware connector has been tested). I tried to debug the SPI and MMC layers and I think that the SDCard is not correctly (or not at all) probed.

 

Does anyboby here had the same problem using a MMC/SDCard over SPI?

Is there a solution to get those cards working over SPI on a 5485?

 

I'm really waiting for your help !

Outcomes