When starting the program under emulation the message I get is stack overflow. I have removed everything out of the two tasks I am switching between. They are now basically empty while loops with an OSYield in them. My salvocfg.h file is below,
--------------------------------------
#define MAKE_WITH_SOURCE
#define OSUSE_LIBRARY FALSE
#define OSBYTES_OF_DELAYS 1
#define OSENABLE_MESSAGES FALSE
#define OSEVENTS 0
#define OSLOC_ALL bank1
#define OSTASKS 2
#define OSCOMPILER OSHT_PICC
#define OSTARGET OSPIC17
#define OSUSE_INLINE_OSSCHED TRUE
------------------------------------
I have even attempted to inline OSSched() to reduce the call-return depth. This appeared to work judging from my *.map file and the call graph. For some reason I think that perhaps the Stack Overflow message I am getting from the emulator is misleading and that it may indicate another problem (the schedular sending me into the weeds).
Any ideas on something like this?
Thanks,
Mark Johnson