I try to use stm32f746 nucleo as slave controller with raspberry pi3
I use spi as communication method
for metal bare code there is no any problem but when I put code in a thread for communication then I face problem of missing data to be sent
what is best way to use spi with rtos ??
how can I detect thread switching or how to protect data transmission ??