Part Number: MSP430FR2353
Tool/software: Code Composer Studio
Hi all,
I want to keep my data ram when watchdog executed. How can i do it ? I am using MSP430fr2353.
Thanks all,
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.
Part Number: MSP430FR2353
Tool/software: Code Composer Studio
Hi all,
I want to keep my data ram when watchdog executed. How can i do it ? I am using MSP430fr2353.
Thanks all,
Define a function named "_system_pre_init". When this function is called, C .data/.bss initialization hasn't occurred yet. Be sure to "return(1);" when you're finished. [Ref CCS-cc430 User Guide (SLAU132U) Sec 6.9.1]
[Edit: Keep in mind that it's up to you to figure out whether it was a Watchdog (PUC) or power-cycle (POR).]
I had supposed that you wanted to peek at the SRAM before continuing with a normal startup.
If you "return(0);" from _system_pre_init(), it skips the C initialization entirely. [Ref CCS-cc430 User Guide (SLAU132U) Sec 6.9.1] Is that what you had in mind?
If you do this, be sure the rest of your program understands it. Among other things: Don't assume that SRAM powers up as all-0.
[Edit: To answer your question: boot.c isn't part of your Project, so CCS won't automatically rebuild it. It is possible to re-build the C library (I don't recall the procedure) but I'm not sure it's worth the trouble for what you're doing.]