Page 1 of 1
SD/MMC Interface Control Pins for Nano54415
Posted: Fri Sep 05, 2014 11:22 am
by SeeCwriter
The Hardware and Software Guide says the EFFS requires exclusive use of the QSPI interface. Looking through the source code, mmc_mcf.cpp, I see there are two sets of defines for the SPI port to use for EFFS, SPI0 and SPI1, with SPI0 commented out. Since I don't have a schematic of the NANO board, I am assuming that SPI0 connects to unstuffed SD Card on the NANO board. If that is correct, can I comment out the SPI1 defines and uncomment the SPI0 defines and use SPI0 for the SD Card interface?
Steve
Re: SD/MMC Interface Control Pins for Nano54415
Posted: Fri Sep 05, 2014 5:02 pm
by mbrown
The SD card on the Nano board itself and the Nano-Carrier board are both wired to SPI1 of the mcf54415 core. The easiest way to get the SD card working is to use the Carrier board, whose schematics you can find in your /nburn/docs/Platform/Schematics directory. The module on the carrier board is wired in SPI mode and will operate any of the examples found in /nburn/examples/StandardStack/EFFS, no file modification necessary.
Now I also mentioned the pads are the same as the one on the back of the Nano module itself, however, for the unpopulated card, this one is wired for SDIO mode. A couple of the pins are swapped due to the conventions of SD cards. If you have the appropriate carrier soldered to these pads, the examples will not work.
Re: SD/MMC Interface Control Pins for Nano54415
Posted: Fri Sep 05, 2014 6:06 pm
by SeeCwriter
The examples work fine. But when we move to our hardware I was hoping we could add an SD card carrier to the nano board and use a different SPI port for the card than SPI1 because the docs say that the SD card can't share the SPI bus with any other devices. And we have other SPI devices to connect to the nano.
Also, I have a schematic for the dev kit carrier board, just not the nano board itself. Seeing the commented out defines for SPI0 in the source code for the SD card driver got my hopes up that it was used for the SD card on the NANO itself. I don't know what SDIO mode is, but it sounds like we won't be able use the SD card slot on the nano because the NB libraries don't support it, if I understand correctly.
Thanks,
Re: SD/MMC Interface Control Pins for Nano54415
Posted: Mon Sep 08, 2014 7:06 am
by pbreed
That connector has been wired two different ways depending on the nano revision.
We do not presently support that connector.
In the future we may support it with MMC rather than SPI drivers, but as of now you can not really use it.