SD card failure, SPI problem

Hello.

I have a simple project to complete, but nothing is as simple as it sounds.
I use 4 BMA180 accelerometers to take measurements and store them into a SD card with a timestamp. So, I used Adafruits datalogger shield. When the setup is running, SD initialization fails, unless I remove an I/O pin from the BMAs, let's say the clock. Then the SD initializes just fine, so I put back the clock pin, push the reset button and everything works as it should be. How can I fix that?

Thanks in advance.

What pins are you using for the BMA180 slave selects?

I used Pins 6 to 9 for the BMAs. I figured out what's wrong the minute after I uploaded this thread:

I had to set the BMAs SS's to HIGH, and then it worked. There had to be some conflict. Now everything is working as it should be.

Thanks for answering to my thread though!

That is correct. All other SPI devices must have the SS set HIGH before initializing the SD.