Pumpkin, Inc.

Pumpkin User Forums

OSStopTask() returns OSERR

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

OSStopTask() returns OSERR

Postby graeme » Tue Jul 31, 2007 3:06 am

I have OSStopTask() return OSERR (=1).
What could be the probable causes ?
(as far as I am aware the tcbP argument appears valid.)
graeme
 
Posts: 3
Joined: Fri Nov 03, 2006 12:00 am

Re: OSStopTask() returns OSERR

Postby aek » Tue Jul 31, 2007 8:03 am

See the User Manual -- OSStopTask() can only stop tasks in certain states.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: OSStopTask() returns OSERR

Postby graeme » Tue Jul 31, 2007 10:24 am

I find the Note in OSStopTask a bit ambiguous/confusing. Does it mean a task can or cannot be stopped if waiting for an event ? The task I want to stop is (likely) waiting for an event.
What I want to do is temporarily stop a task from responding to an event so as to allow another started task to respond to that same event instead.
graeme
 
Posts: 3
Joined: Fri Nov 03, 2006 12:00 am


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 2 guests

cron