Re: On which pin the SDO and SDI needs to be configured to work with SD Card
I didn't try to map the SPI pins to actual port pins, so I can't tell if RD3 is actually SDO1 for instance. But we do agree on the functionality. You should be good to go.
You know.... it is so easy to make connection errors to connectors and things like a SD Cards that you have not hooked up before, that when I do a layout and there is risk in making it wrong, I will make sure that all the connection traces are on the outside layers of the board - then I can cut and 'green wire' if needed. At least I can get the prototype running with modifications. Ha, ha, ha, ha.... Yes embarrassing, but so easy to get confused and it happens even to engineers that I consider way more talented than I am! ;-)
Hope this helps.