2017-03-31 04:47 AM
2017-03-31 11:28 PM
will vTaskDelay(100); help for a longer task ?
I have some tasks that finishes on a long time how can I handle it ?? or with if ...task not finish, return to that task ? how can I check that ?
Thanks
2017-04-02 05:28 PM
To my understanding, you can reduce the tickrate down to 1 if you like. That affects how often the SysTick interrupt is fired and how often your tasks are evaluated for activity regarding context switching.
That said, I don't see any use in reducing the tick frequency and instead just add the according osDelay(xx) inside your task loops. This then allows the OS to still do context switches every ms if required.
I THINK if you increase tick time it'll switch less often meaning you'll probably loose CPU time being wasted in completed tasks.
Correct me if I'm wrong though.
2017-04-02 07:52 PM
I've reduced to 1Hz, but it doesn't help, probably, semaphore will help,
so it's just like a chain, task 1 finish the job, after finish allow
task 2 doing the job, finish return to task 1 and loop it..
2017-04-02 11:56 PM
Mutex or semaphore is good enough for task synchronization ?