SPI and SD card help

Hi all,

I'm using a board with atmel2560 where SPI pins are different. Pin 24 is MISO, pin 25 MOSI, pin 26 SCK and pin 27 CS.

When i connect it to my sd card module (one from ebay), that is working (tested with arduino pro mini and nano), it does't work. Using the SD library in arduino and the example to test the SD Card and see content it doesn't work in this board.

The library has to be changed or something like this (occured that the pins set to SPI aren't the same of the board, but i never used SPI, so i don't know).?

ANy reply would be aprecciate :wink:

What is the board that has SPI at odd locations? Link.

SD module has 5V to 3.3V adapters and 3.3V regulator on it?

CrossRoads:
What is the board that has SPI at odd locations? Link.

SD module has 5V to 3.3V adapters and 3.3V regulator on it?

Yes, it has an 5V to 3.3V adapter and regulator. Tested with 3.3V and 5V and working. I can't link you the board, but i can post an image (board isn't available for public)

So it has custom pins_arduino.h? Something else?

CrossRoads:
So it has custom pins_arduino.h? Something else?

Yes, it has custom pins_arduino.h. Problem must be library, what is the file i need to look at?

You can reorganize that to have the SPI pins on the standard librayry pins.
There are some name entries near the top, and 3 arrays that assign the port, the pin, and whether or not there is a timer on the pin.

Your image - Modify the post, click Additional Options, Browse to your locally stored file, and Attach the file. Some of us can't open the link you used.

CrossRoads:
You can reorganize that to have the SPI pins on the standard librayry pins.
There are some name entries near the top, and 3 arrays that assign the port, the pin, and whether or not there is a timer on the pin.

Your image - Modify the post, click Additional Options, Browse to your locally stored file, and Attach the file. Some of us can't open the link you used.

Ok, founded the solution. The problem was in the SD library, like i thought, was in the SD2PinMap in SD/utility