We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi can someone tell me how to configure the FRAM FM20L08
Hmmm... That makes no sense. The call to task_wait should cause an immediate scheduling pass, and some other task should get a full 1ms at that point. When the next scheduling pass happens, your high-priority task will come back in until it calls task_wait again.
Could it be that it's always the same low-priority task that comes in, and all your other low-priority tasks get starved? That should not happen, and I doubt that such a basic bug could survive in the task-scheduler until now, but who knows?
One other thought - how are you calling task_wait? Are you using 0 for the task_id, or are you using an actual task ID? If so, could you be using the wrong task ID? You should probably just use 12.
Also, task_wait takes a signal-mask as an argument. If those signals are already triggered, task_wait may just return immediately without causing a scheduling pass.
If you don't need the signals, you should probably use task_sleep(0,1,4,1,7); instead.
"Hmmm... That makes no sense."
You're dead right there!
What do you think you were replying to...?