Hello,
I want to implememt the following function:
When ECU in application, ECU writes some data in RAM ,the specified written RAM couldn't be cleared during the software,not power on reset, and then ECU can read the exact data out.
Thank you and best regards.
已解决! 转到解答。
You can omit SRAM initialization for Functional reset sources. When a 'functional' reset event occurs, a
partial reset sequence is applied to the chip starting from PHASE1[FUNC], keeping the system memory
content preserved.
After reset, investigate content of MC_RGM_DES and MC_RGM_FES to know the reason of reset and based on that you can partially skip SRAM initialization.
You can omit SRAM initialization for Functional reset sources. When a 'functional' reset event occurs, a
partial reset sequence is applied to the chip starting from PHASE1[FUNC], keeping the system memory
content preserved.
After reset, investigate content of MC_RGM_DES and MC_RGM_FES to know the reason of reset and based on that you can partially skip SRAM initialization.
HI,David:
I've already reset the function, but ram is still zero.
The following is the state of the reset.
The project is an additional variable in the FCCU in the example program.
Can you help me see what went wrong?
Thanks.
set the attribute when you declare the variable to be placed in the noinit section.
For Example:
__attribute__ ((section("." noinit))) int MyVariable;
Peter Vlna are you saying there is a way to make it not initialize a variable for a particular reset but initialize it for other resets?