mpc5744p preserve RAM content after wdg reset

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

mpc5744p preserve RAM content after wdg reset

727 Views
翔刘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 Kudos
2 Replies

520 Views
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 Kudos

520 Views
翔刘11
Contributor I

why no people  answer the question,please help me

0 Kudos