SLAZ276AC October 2012 – May 2021 MSP430F5340
CPU Module
Compiler-Fixed
CALLA [indexed] may corrupt the program counter
When the Stack Pointer (SP) is used as the destination register in the CALLA index(Rdst) instruction and is preceded by a PUSH or PUSHX instruction in any of the following addressing modes: Absolute, Symbolic, Indexed, Indirect register or Indirect auto increment, the "index" of the CALLA instruction is not sign extended to 20-bits and is always treated as a positive value. This causes the Program Counter to be set to a wrong address location when the index of the CALLA instruction represents a negative offset.
NOTE:
1. This erratum only applies when the instruction sequence is: PUSH or PUSHX followed by CALLA index(SP)
2. This erratum does not apply if the PUSH or PUSHX instruction is used in the Register or Immediate addressing mode
3. This erratum only applies when SP is used as the destination register in the CALLA index(Rdst) instruction
Place a "NOP" instruction in between the PUSH or PUSHX and the CALLA index(SP) instructions.
NOTE: This bug has no compiler impact as the compiler will not generate a CALLA instruction that uses indexed addressing mode with the SP.
Refer to the table below for compiler-specific information.
IDE/Compiler | Version Number | Notes |
---|---|---|
IAR Embedded Workbench | Not affected | |
TI MSP430 Compiler Tools (Code Composer Studio) | Not affected | |
MSP430 GNU Compiler (MSP430-GCC) | Not affected |