To use pin 27 for SPI, means to go over to using SPI1 and all of the pins associated with it.
That is pin 27 is not an alternate SCK pin for the SPI object. Unfortunately there are no alternate pins for most of the signals on the SPI object (Actual chip this is LPSPI4)
And from the SPI.cpp tables you see on T4.1 Note: 255 is not valid pin... Tables are max number of valid pins for all of the objects.
Code:
12, 255, // MISO
11, 255, // MOSI
13, 255, // SCK
10, 37, 36, // CS
1, 2, 3,
So again no alternates other than Hardware CS pin (1,2,3) says which PCS they are so all different.
For SPI1 (LPSPI1) you see:
Code:
1, 39,
26, 255,
27, 255,
0, 38, 255,
1, 1, 0,
Same order so MISO cab be 1 or 39 default 1
MOSI pin 26
SCK pin 27
CS can be 0 or 38 but both have same PCS value so only one of these can be used for Hardware CS in a sketch
Can also do for SPI2, but pins here are on bottom memory pads and SDIO pins, so...