AnsweredAssumed Answered

S32K148 EEPROM write double type when data error?

Question asked by on Dec 17, 2018
Latest reply on Dec 20, 2018 by

Now start the EEPROM function on the S32K148 EVB board, then write double type data to the area and report an error.


The system has entered the default ISR. Has any of the experts encountered this problem?


code show as below:


Double doubleW = 2.1f;


EEE_WriteDouble(0x14000000, doubleW);


Int EEE_WriteDouble(uint32_t globalAddr, double val)

  While ((FTFC-> FSTAT & FTFC_FSTAT_CCIF_MASK) == 0){}

  *((double *)globalAddr) = val;
  Return 0;