Pumpkin User Forums
SB-25: Salvo: Runtime Problems with IAR MSP430 V2 & V3
|UBBFriend: Email This Page to Someone!||next newest topic | next oldest topic|
|Author||Topic: SB-25: Salvo: Runtime Problems with IAR MSP430 V2 & V3|
Salvo Tech Support
posted May 10, 2004 12:08
Salvo for TI's MSP430 and IAR MSP430 V2 & V3 users.
Description of Problem
Salvo tasks containing functions with large parameter lists show immediate runtime problems.
An error in the Salvo context switcher results in stack problems when the compiler uses the stack to push additional parameters when calling a function with a large parameter list.
Tasks affected by this issue will increment the stack pointer at the end of the infinite loop of the task -- this can be seen by reviewing the assembly listing of the task.
Salvo Pro users can fix the context switcher by replacing the code in salvo\src\portiar430.s43 at line 167:
code:Until an updated context switcher is available to Salvo Lite and LE users, they must avoid generating code that creates this situation. One way to do this is to use a two-level call to move the function with a large parameter list out of the task. Use a function with no parameters to call the function with multiple parameters.bic.w #0xFF00,0(R12)
The next major Salvo for TI's MSP430 release.
[This message has been edited by Salvo Tech Support (edited May 10, 2004).]
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