SLAZ283AA October 2012 – May 2021 MSP430F5435
CPU Module
Compiler-Fixed
Modifying the PC behaves differently than in previous devices.
When using instructions with immediate or indirect addressing mode to modify the PC, a different value compared to previous devices must be added to get to the same destination.
Example:
Previous device (MSP430F4619)
label_1 ADD.W #Branch1-label_1-4h,PC
MSP430F5438:
label_1 ADD.W #Branch1-label_1-2h,PC
-----------------------------------------
NOTE: The MOV instruction is not affected
-----------------------------------------
1) Add NOP after the PC-modifying instruction
or
2) Change the offset value in software
Refer to the table below for compiler-specific fix implementation information.
IDE/Compiler | Version Number | Notes |
---|---|---|
IAR Embedded Workbench | IAR EW430 v6.40.1 or later | User is required to add the option below to the linker. Linker:-D?CPU15_OFFSET=2 |
TI MSP430 Compiler Tools (Code Composer Studio) | v4.0.x or later | User is required to add the compiler or assembler flag option below. --silicon_errata=CPU15 |
MSP430 GNU Compiler (MSP430-GCC) | Not affected |