Why my data in MSP430 flash was lost?
Already solved this issue.
The key point is,from the link file 'lnk430f5340.xcl',I found the flash memory allocation for code area is 0x4400-0xFF7F &amp; 0x10000-0x143FF。
And the code size is '41196 bytes of CODE memory' + '5421 bytes of CONST memory'('3022 bytes of DATA memory' should in RAM)
thus the data at 0xF400 was lost.
There are 2 ways to solve it.
1).Put the data to the larger address,for example at 0x13600
2).Modify memory allocation for code area,change it to 0x4400-0xFF3F &amp; 0x10000-0x143FF,so the data at 0xF400 will not be covered.