This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Did the msp430 MCU initial variable as the assignment value after MCU reset? (we setting use setting complier --zero_init off with volatile data)
e.g.
volatile static uint16_t TimeOut = 4096; // initial variable as the assignment the after MCU reset?
Note:
IDE version: Code Composer Studio 10.1.1.00004
Compiler version: TI V20.2.1.LTS
Thank,
Vasu Khwanyuen
Hi Vasu Khwanyuen
The TimeOut value should be 4096 after MCU reset because "volatile static" is used.
Thanks!
Hi Xiaodong LI
what happened to the variable when
Thank,
Vasu Khwanyuen
Hi Vasu Khwanyuen
This value (4096) will be keep from LPM3 and after BOR because this is "volatile static". this value should be assign on flash by C compiler.
Thanks!
**Attention** This is a public forum