SPI Master/Slave Role Assignment between two MCUs?
Hi there,
First of all, thank you for reading this post.
I have a system that has an ARM Cortex M4 MCU interfacing with STM32G4 via SPI. In the current design, STM32G4 takes care of motor commutation related tasks. So the question I have is that who should be the SPI master/slave? Or does it really matter? My hunch is to have STM32G4 as the master since it has more time critical tasks; however, the tasks are based on what the other MCU's commands.
The other ARM M4 MCU (32bit) is fairly powerful too, running at 100MHz. The main tasks in this MCU are to initiate communications with other devices in the system, and tell STM32G4 when and how to run the motors.
I did some research online hoping to get some ideas regarding SPI Master/Slave role assignment, but I was not able to find anything useful.
Thanks again for the advice, in advance.
Sincerely,