AnsweredAssumed Answered

Problem for emulated EEPROM on S12XE

Question asked by Jason Zhu on May 29, 2019
Latest reply on Jun 4, 2019 by lama

Recentally we receive some failed modules, according to the failure reports, the failure are always happened when the module is powered up.

According to the test result, we find the program is always stuck in below while(1), that means the failed modules will be reset again and again. Does it mean that program to clear error flag of FSTAT and FERFSTAT should be added before module reset?

This module had been released to market for several years, but the failed modules are only found in the modules manufactured in last year. Why? Does it mean that CPU reset could clear these error flags for old S12XE chips, but not for the new chips manufactered in last year? Please advise. Thank you.

 

status=LaunchFlashCommand(0 ,ENABLE_EEPROM_EMULATION, 0, 0, 0, 0, 0, 0);
  if(((status.fstat_var&0x33)!=0)||((status.ferfstat_var&0xDF)!=0))
   {
    normal_rst1=0xAA;
    normal_rst2=0xAA;
    while(1);
   }

Outcomes