SAMD21 and SPI, assign the SCK clock to two pins?

Hi Martin

MartinL:
Hi Lee,

As port PA15 is an odd numbered port, you just need peripheral multiplexer (PMUX) register bitfield from even:

PORT_PMUX_PMUXE_D

to odd:

PORT_PMUX_PMUXO_D

Kind regards,
Martin

Just was going to update my post as found some info on the net and played about with using pinPeripheral(5, PIO_SERCOM_ALT) which did the job on it's own (need to import #include "wiring_private.h"), and your fix using PMUXO also now works, completely missed the issue odd/even!

Many thanks, job done.

Regards

Lee