Hi Fabian,
The default SPI0 routing is to PS0-PS3 pins (please check SPI0 pins again). SPI0 could be optionally routed to PT4-PT7 by MODRR0_SPI0RR bit setting.
msCAN module is routed by default to CAN PHY. msCAN module signal could be optionally routed to PS2,PS3 pins (MODRR0_ M0C0RR[2:0], Conformance test setting, CANPHY is routed to PS0,PS1 pins). In that case, msCAN signals have higher priority than SPI0 therefore, msCAN/CANPHY overtake appropriate pins.
Be aware that MODRR0 register could be written just once in normal mode. So, all configurations have to be part of one command.
For example:
NOK: OK:
MODRR0_SPI0RR=1; MODRR0=0x0E;
MODRR0_M0C0RR = 0x06;
Could you please specify whether and how did you configure MODRR0 register?
Are you sure that there isn’t any external connection between SPI0 and CAN signals?
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------