SLAZ234O October 2012 – May 2021 MSP430F47186
CPU Module
Compiler-Fixed
CPUOFF modification may result in unintentional register read
If an instruction that modifies the CPUOFF bit in the Status Register is followed by an instruction with an indirect addressed operand (e.g. MOV @R8, R9, RET, POP, POPM), an unintentional register read operation can occur during the wakeup of the CPU. If the unintentional read occurs to a read sensitive register (e.g. UCB0RXBUF, TAIV), which changes its value or the value of other registers (IFG's), the bug leads to lost interrupts or wrong register read values.
Insert a NOP instruction after each CPUOFF instruction.
OR
Refer to the table below for compiler-specific fix implementation information.
Note that compilers implementing the fix may lead to double stack usage when RET/RETA follows the compiler-inserted NOP.
IDE/Compiler | Version Number | Notes |
---|---|---|
IAR Embedded Workbench | IAR EW430 v6.20.1 until v6.40 | User is required to add the compiler or assembler flag option below. --hw_workaround=nop_after_lpm |
IAR Embedded Workbench | IAR EW430 v6.40 or later | Workaround is automatically enabled |
TI MSP430 Compiler Tools (Code Composer Studio) | 15.12.0.LTS | User is required to add the compiler or assembler flag option below. --silicon_errata=CPU19 |
MSP430 GNU Compiler (MSP430-GCC) | MSP430-GCC 4.9 build 389 or later | User is required to add the compiler or assembler flag option below. -msilicon-errata=cpu19 -msilicon-errata-warn=cpu19 generates a warning in addition |
MSP430 GNU Compiler (MSP430-GCC) | MSP430-GCC 5.x build 14 or later | User is required to add the compiler or assembler flag option below. -msilicon-errata=cpu19 -msilicon-errata-warn=cpu19 generates a warning in addition |