Pumpkin User Forums
SB-24: Salvo: Local Auto Vars with Microchip MPLAB-C18 and IAR PIC18C
|UBBFriend: Email This Page to Someone!||next newest topic | next oldest topic|
|Author||Topic: SB-24: Salvo: Local Auto Vars with Microchip MPLAB-C18 and IAR PIC18C|
Salvo Tech Support
posted February 06, 2004 07:58
Salvo for PICmicro(R) MCUs distributions and Microchip MPLAB-C18 and IAR PIC18C users.
Description of Problem
The use of local auto vars (normally allowed if persistence between context switches is not required) causes runtime problems in Salvo tasks.
Normally, the use of local auto vars in a Salvo task is permitted, so long as the values of the auto vars are not expected or required to persist across context switches. However, the Salvo context switchers for these two compilers do not handle the presence of local auto vars properly, and this leads to stack corruption.
Use only static local variables in Salvo tasks when using either the Microchip MPLAB-C18 or IAR PIC18C compilers.
Salvo documentation will be updated to reflect this issue. At a later date, these context switchers may be updated to permit the use of local auto variables between Salvo context switches.
All times are ET
|next newest topic | next oldest topic|
©2000-2008 Pumpkin, Inc. All Rights Reserved. Pumpkin and the Pumpkin logo, Salvo and the Salvo logo, The RTOS that runs in tiny places, CubeSat Kit and the CubeSat Kit logo are all trademarks of Pumpkin, Inc. All other trademarks are the properties of their respective owners.
Ultimate Bulletin Board 5.46a