Hello,
I am using RTOS based example project with CAN Communication for a Vehicle Control Unit implementation.
I have one thread to handle the state diagram (say A) and another thread running parallel just for CAN_read() (say B)
The question I have is as follows:
Because of time slicing, when thread A is running, the message received on the CAN Bus would ideally be stored in a buffer in the hardware
When thread B resumes its functioning, does it process the messages stored in the buffer or directly the messages currently on the bus?
In the latter case, wouldn't it lead to us losing a lot of messages, and in the former case, what is the size of the internal buffer storing the messages for future processing?
Thank you in advance!