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

Discussion to talk about software related topics only.
Post Reply
jkrupp
Posts: 1
Joined: Thu Mar 31, 2011 12:59 pm

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

Post 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?
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

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

Post 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.
Post Reply