piclist 2003\03\02\125900a >
Thread: SALVO RTOS robot examples
www.piclist.com/techref/microchip/devices.htm?key=pic
picon face BY : Bill Couture email (remove spam text)



On Thu, 27 Feb 2003, John Temples wrote:

> > No, Salvo wasn't being called from the ISR, and no local variables were
> > in use (for those who don't know, since PICC "sees" each Salvo task in
> > a different call-graph, it re-uses the local variable space, unless you
> > use the (sorry, I forget which) compiler flag that tells it not to do
> > that (which makes it use more RAM).  Thus, Salvo tasks (or their
> > subroutines) can trash the local variables in another Salvo task).
>
> Any calls to Salvo context-switching routines in non-task functions?
> That will randomly corrupt the call stack...

Nope, the only Salvo calls were in the task itself, not a subroutine.

And, it didn't seem that the call stack was the problem (i.e., the tasks
seemed to be working).  I kept seeing things like putting a 0x12 into a
queue in one task, and getting a 0x00 out of the queue in another task.

Bill

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestKILLspamspamKILLspammitvma.mit.edu>
<Pine.WNT.4.10.10303021253530.-373701@junkvalue.speakeasy.net>

In reply to: <Pine.LNX.4.51.0302271932390.15725@jwt.xargs.com>
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) SALVO RTOS robot examples

month overview.

new search...