Ashwin B
Newbie level 1
Hello All,
I am trying to run an application using UCOS-II on PIC18F452. The application is very simple, it is to control the speed of a motor using three switches . Four tasks have been created 3 for monitoring the switch and another to control the motor.
I am getting an stack underflow error on MPLAB simulator when I create a low-priotiy task first.I am not sure why i am getting this error.
If I create the high priotiy task first I find that only this task runs forever other tasks are not getting executed at all (I found this by applying break points at eack tasks)
I have attached the application code. Kindly provide some debuggin info as I don't have any experience in writing an application using UCOS-II.
Thanks and regards,
Ashwin B
I am trying to run an application using UCOS-II on PIC18F452. The application is very simple, it is to control the speed of a motor using three switches . Four tasks have been created 3 for monitoring the switch and another to control the motor.
I am getting an stack underflow error on MPLAB simulator when I create a low-priotiy task first.I am not sure why i am getting this error.
If I create the high priotiy task first I find that only this task runs forever other tasks are not getting executed at all (I found this by applying break points at eack tasks)
I have attached the application code. Kindly provide some debuggin info as I don't have any experience in writing an application using UCOS-II.
Thanks and regards,
Ashwin B