AnsweredAssumed Answered

S32K144 EEPROM setup causes reset in release version

Question asked by Davit Hakobyan on Jul 12, 2018
Latest reply on Jul 16, 2018 by Davit Hakobyan

Dear All,

 

On S32K144EBV board I integrated the flash partitioning example into our project to setup EEPROM which works fine in Debug mode (with debugger as well as standalone).

 

However, in release mode the board continuously resets when reaching the following line (for convenience the call history is also presented):

if (0u == flash_ssd_config.EEESize)
{

      FLASH_DRV_DEFlashPartition(&flash_ssd_config, 0x02u, 0x08u, 0x0u, false, true) {

            {

                  ...

                  /* Calling flash command sequence function to execute the command */
                  ret = FLASH_DRV_CommandSequence(pSSDConfig) {

                        ...

                        /* Clear CCIF to launch command */
                        FTFx_FSTAT |= FTFx_FSTAT_CCIF_MASK;    // <- MCU resets at this line                                                                                                     // FLASH_DRV_CommandSequence executes from RAM

                  }
            }
      }

}

Could someone suggest what might be wrong in the release version?

 

Thanks a lot for any help.

Outcomes