I would like to understand more about your comment in that thread where you advised on thread scheduling:
viewtopic.php?t=5408#p37219
Code: Select all
#define CH_CFG_ST_FREQUENCY 10000 -> 1000 (10000 is too high without tick-less mode)
#define CH_CFG_ST_TIMEDELTA 2 -> 0 (disables tick-less mode)
#define CH_CFG_TIME_QUANTUM 0 ->> 10 (rotation after 10 ticks)
Why is 10000 too high without tick-less mode? Is that an absolute truth or is it going to be MCU dependent, e.g. the faster the MCU the higher that number can be?
I am curious what an optimal configuration of CH_CFG_ST_FREQUENCY and CH_CFG_TIME_QUANTUM would be.
I am sure optimal is hard to define exactly and might depend on a particular application - however there might be some rules of thumb for best performance ?