mpc5744p preserve RAM content after wdg reset

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mpc5744p preserve RAM content after wdg reset

823件の閲覧回数
翔刘11
Contributor I

Hello

When I used s32  to Compile mpc5744p,the ram data will be init to zero,how mpc5744p  RAM  data preserve when watchdog reset .

for example:  A = 5;

when  watchdog reset  ,I hope the A still is 5.

0 件の賞賛
2 返答(返信)

616件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

first of all, you must set watchdog to execute short reset (because of MBIST execution). Please see the example below:

https://community.nxp.com/docs/DOC-332499 

Second point is little bit complicated. In S32 Design Studio, startup file always initialize RAM to 0 and this behavior must be modified. Before RAM is set to 0, you must read RGM FES register and check, if F_FCCU_SOFT or F_FCCU_HARD bit is set (option for hard or soft can be set in FCCU_NCF_CFG register).

If the flag is set, you must skip RAM initialization and data in RAM will be retained.

Regards,

Martin

0 件の賞賛

616件の閲覧回数
翔刘11
Contributor I

why no people  answer the question,please help me

0 件の賞賛