This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

configuration of the FRAM (FM20L08)

hi
can someone tell me how to configure the FRAM FM20L08

Parents
  • 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.

Reply
  • 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.

Children