Hi,
is there any sample for Freemaster implementation on top of Freertos
I am trying to build this one and found some problem
on freemaster sample, the pool function always called on the main loop and there is no delay in here,
but if I use freertos and put the pool function on 1ms periodic task, the freemaster will be not responsive,
it only happened on pool_driven mode
the other solution is remove the delay on the task, but i am not sure is this the solusion,
thanks
bagus
Solved! Go to Solution.
Hello,
the best way to use FreeMASTER in a multi-tasking environment is to use one of the interrupt-driven modes:
If you still want to keep the POLL_DRIVEN mode, you need to run the task which calls FMSTR_Poll without any waits or delays. It would be basically your lowest-priority background task. Beware: in this mode, the FMSTR_Poll also handles physical communication, so it must not be preempted by other tasks for too long time (approx the time of transmission of one UART character or one CAN frame).
Regards,
Michal
Hello,
the best way to use FreeMASTER in a multi-tasking environment is to use one of the interrupt-driven modes:
If you still want to keep the POLL_DRIVEN mode, you need to run the task which calls FMSTR_Poll without any waits or delays. It would be basically your lowest-priority background task. Beware: in this mode, the FMSTR_Poll also handles physical communication, so it must not be preempted by other tasks for too long time (approx the time of transmission of one UART character or one CAN frame).
Regards,
Michal
Hi Michail
Thank you for the solution, I use the 2nd option (SHORT_INTR, and assign poll to 10ms task), and it works
br,
bagus