Pumpkin User Forums
  Service Bulletins
  SB-24: Salvo: Local Auto Vars with Microchip MPLAB-C18 and IAR PIC18C

Post New Topic  
profile | register | preferences | faq | search

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
Moderator
posted February 06, 2004 07:58     Click Here to See the Profile for Salvo Tech Support     Edit/Delete Message   Reply w/Quote
Applies To

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.

Suggested Workaround

Use only static local variables in Salvo tasks when using either the Microchip MPLAB-C18 or IAR PIC18C compilers.

Fixed In

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.

------------------
--------
Salvo Technical Support
Please request all tech support through the Forums.

IP: 63.203.232.106

All times are ET

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  
Hop to:

Contact Us | Pumpkin Home Page

©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