Page 1 of 1

Fat file - SD card - using just one SPI Chip Select

Posted: Thu Mar 31, 2011 1:09 pm
by jkrupp
I'm attempting to use the fat file system for accessing an SD Card and I don't want to give the library full access to the SPI resources. I've changed a few things in the library to use chip select 3 instead of chip select 2 and IRQ3 instead of IRQ5.

The EFFS-basic example program always returns F_ERR_NOTFORMATTED when trying to mount the drive. f_open() always returns 0. I was pretty careful in mmc_mcf.cpp to convert from spi cs2 to cs3, so not knowing where to go from here.

Anyone have any luck changing chip selects in the EFFS library?

Re: Fat file - SD card - using just one SPI Chip Select

Posted: Thu Mar 31, 2011 3:38 pm
by rnixon
At the beginning of the post you mention exclusive access, then later talk about the chip select. Do you have any other devices on the SPI bus? I don't think you can just manipulate the chip selects when it says it needs exclusive access to the SPI.