Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem using UCOS-II in PIC18F452

Status
Not open for further replies.

Ashwin B

Newbie level 1
Newbie level 1
Joined
Sep 23, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,290
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
 

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

Hi

I would like to give a suggestion, better for picos18 rtos, which would be easy for beginner. More over where did you get this ucosII for PIC18.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top