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
Works fine here. What appears in the watch window when you run the application. Reinhard
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.
Remove the breakpoint at counter2++ and see what happens. It really repeats counter2++ until a timeout occurs (which may take a very long time). Reinhard
i have set three breakpoint.but i have not set breakpoint in the "counter2++" line. and not in the job2 funcation. yes ,the time-out event is appear. but it is job0 and job1. thanks.
Check the configuration file CONF_TNY.A51. Is the value TIMESHARING EQU 5 ; default is 5 Hardware-Timer ticks. set correctly? Reinhard
thanks. what is you said. best regards.
Does it work now?
yes,it works now. i do not know why the TIMESHARING value be set 0. i need read the rtx51 user manual more carefully. anyway , all is ok. thanks. i will go to bed. :-)