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

why is the task not switched in rtx51-tiny example?

i compled the rtxtiny2\example\ex2,and successed.

but when i dubug it,i find the task do not be switched.

it is runing in the task2.and the task0 is ready and time out,but not be runed..

why is it?

thanks

Parents
  • in the debug mode,i set three the breakpoints. one is at "count0 ++;" in the job0 funcation,one is at "count1 ++;" in the job1 funcation, the last is at "os_wait (K_SIG, 0, 0); " in the job3 funcation.

    at first ,i reset the Program SIM, and press f5 key to run. the program stoped at the first Breakpoint quickly. yes , the breakpoint is actived.

    and i press f5 key again, the program stoped at the job1 funcation at once.yes ,the breakpoint in the job2 is actived.

    note: when i press f5 again, the program is running. the program do not stoped again even though i have set three breakpoint.

    would you catch what i typed?

    thanks a lot.

Reply
  • in the debug mode,i set three the breakpoints. one is at "count0 ++;" in the job0 funcation,one is at "count1 ++;" in the job1 funcation, the last is at "os_wait (K_SIG, 0, 0); " in the job3 funcation.

    at first ,i reset the Program SIM, and press f5 key to run. the program stoped at the first Breakpoint quickly. yes , the breakpoint is actived.

    and i press f5 key again, the program stoped at the job1 funcation at once.yes ,the breakpoint in the job2 is actived.

    note: when i press f5 again, the program is running. the program do not stoped again even though i have set three breakpoint.

    would you catch what i typed?

    thanks a lot.

Children