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.
Solved! Go to Solution.
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.
Hi,
Well, from your English it is not possible to distinguish what you want to achieve.
Do you want to preserve RAM content trough reset or ...?
Peter
Hi,Peter
I mean ram will not initialize to 0 after reset.
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?
After which reset?
Power on Reset
Destructive reset
Long functional reset
Short functional reset
External long reset?
dhaval can you please help for this .