Pumpkin, Inc.

Pumpkin User Forums

Tutorial 6

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®).

Tutorial 6

Postby helge » Wed Nov 12, 2003 6:31 am

I am using the tutorial 6 (salvo pro) and I have tried to extend it with a few more tasks. However it doesn't seem to work with more tasks than 3 for some reason. I have updated the salvocfg file so that OSTASKS is at the right amount. I am using salvo with MPLAB ICD v6.3. If I run it I get a stack overflow message. Why?

[This message has been edited by helge (edited November 12, 2003).]

Posts: 3
Joined: Mon Nov 10, 2003 12:00 am

Re: Tutorial 6

Postby aek » Thu Nov 13, 2003 8:20 am

Did you change the library from sfpxx.lib to slpxx.lib, and set OSLIBRARY_TYPE accordingly (to OSL) in salvocfg.h?

The freeware libraries will reject attempts to create and run more than 3 tasks, etc. If you check the return codes for OSCreateTask() you'll see that it is returning a non-zero code (OSERR).

As for the stack overflow, that's likely to be an improperly configured MPLAB project (e.g. are the compiler and linker aware that you're compiling for MPLAB-ICD).


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

Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 2 guests