SLAZ272AB October 2012 – May 2021 MSP430F5328
CPU Module
Compiler-Fixed
CALL SP instruction does not behave as expected
The intention of the CALL SP instruction is to execute code from the stack, instead it skips the first piece of data (instruction) on the stack. The second piece of data at SP+2 is used as the first executable instruction.
Write the op code for a NOP as the first instruction on the stack. Begin the intended subroutine at address SP + 2.
Refer to the table below for compiler-specific fix implementation information.
IDE/Compiler | Version Number | Notes |
---|---|---|
IAR Embedded Workbench | Not affected | |
TI MSP430 Compiler Tools (Code Composer Studio) | v4.1.3 or later | |
MSP430 GNU Compiler (MSP430-GCC) | Not affected |