mpc5744p NO_INIT RAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,076件の閲覧回数
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.

ラベル(1)
タグ(1)
1 解決策
1,413件の閲覧回数
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.

元の投稿で解決策を見る

7 返答(返信)
1,414件の閲覧回数
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.

1,413件の閲覧回数
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 件の賞賛
1,414件の閲覧回数
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

1,414件の閲覧回数
huilongpeng
Contributor II

Hi,Peter

    I mean ram will not initialize to 0 after reset.

Thanks.

0 件の賞賛
1,414件の閲覧回数
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 件の賞賛
1,414件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

After which reset?

Power on Reset

Destructive reset

Long functional reset

Short functional reset

External long reset?

1,414件の閲覧回数
huilongpeng
Contributor II

dhaval can you please help for this .

0 件の賞賛