SLAZ433K October 2012 – May 2021 MSP430G2413
CPU Module
Compiler-Fixed
PUSH #4, PUSH #8
The single operand instruction PUSH cannot use the internal constants (CG) 4 and 8. The other internal constants (0, 1, 2, -1) can be used. The number of clock cycles is different:
PUSH #CG uses address mode 00, requiring 3 cycles, 1 word instruction
PUSH #4/#8 uses address mode 11, requiring 5 cycles, 2 word instruction
Refer to the table below for compiler-specific fix implementation information.
IDE/Compiler | Version Number | Notes |
---|---|---|
IAR Embedded Workbench | IAR EW430 v2.x until v6.20 | User is required to add the compiler flag option below. --hw_workaround=CPU4 |
IAR Embedded Workbench | IAR EW430 v6.20 or later | Workaround is automatically enabled |
TI MSP430 Compiler Tools (Code Composer Studio) | v1.1 or later | |
MSP430 GNU Compiler (MSP430-GCC) | MSP430-GCC 4.9 build 167 or later |