Hi,
I was experimenting with the Tasks in RTX kernel.
What i observed was that
1) if the highest priority task (at some point of time. Need not be the highest among all the threads) exits by breaking out of while(1) loop , then there is a hard fault exception.
Is this normal behaviour ?
Regards, Vasanth
Yes. You should ensure that the task is destroyed tidily on the function exit (i.e., after the break out of your infinite loop).
One such method is by calling the function os_tsk_delete_self
www.keil.com/.../rlarm_os_tsk_delete_self.htm