I want to replace the CAN with SPI to communicate with two microcontrollers within the same board.
The current solution is with CAN protocol:
uc1: at Init, it sends 1 message (msg1) to uc2. After that uc2 receives it and does some actions.
uc2: before shutdown, it sends 1 message (msg2) to uc1. After that uc1 receives it and does some actions.
My question:
Can I replace CAN with SPI to communicate with these two uCs? if yes, then should I implement both Slave and Master SPI drivers in both uCs?