To be sure of the exact pinout please reference the PIN.pdf document for the SPI3 port ... pins that are required to set the microstepping to anything other than 16 are also shared with SPI. Note that ...