mpc5744p NO_INIT RAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mpc5744p NO_INIT RAM

Jump to solution
2,737 Views
huilongpeng
Contributor II

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.

Labels (1)
Tags (1)
1 Solution
2,074 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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.

View solution in original post

7 Replies
2,075 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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.

2,074 Views
yanronglu
Contributor II

HI,David:

I've already reset the function, but ram is still zero.

The following is the state of the reset.

pastedImage_1.png

pastedImage_2.png

pastedImage_4.png

The project is an additional variable in the FCCU in the example program.

pastedImage_3.png

    Can you help me see what went wrong?

Thanks.

0 Kudos
Reply
2,075 Views
petervlna
NXP TechSupport
NXP TechSupport

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

2,075 Views
huilongpeng
Contributor II

Hi,Peter

    I mean ram will not initialize to 0 after reset.

Thanks.

0 Kudos
Reply
2,075 Views
Ray_V
Contributor V

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?

0 Kudos
Reply
2,075 Views
petervlna
NXP TechSupport
NXP TechSupport

After which reset?

Power on Reset

Destructive reset

Long functional reset

Short functional reset

External long reset?

2,075 Views
huilongpeng
Contributor II

dhaval can you please help for this .

0 Kudos
Reply