AnsweredAssumed Answered

S32K146 and SBCFS6503

Question asked by 张 舜毅 on Feb 19, 2020
Latest reply on Feb 27, 2020 by 张 舜毅

When I power on the FS6503 ,It only lasts 1.3s then shuts down . Our team can only use it's debug mode now.

 

/* Determine if it is necessary to re-initialize main register set. */
status = FS65_GetMode(&sbcMode, &prevMode);

/* FSSM can be initialized only in INIT_FS. */
if (sbcMode == fs65ModeInit)
{
   /* Initialize FSSM (fail-safe registers). */
   status = FS65_WriteRegisters(userConfig->initFailSafeRegs, userConfig->initFailSafeRegsCount);/*When I change the value of register "initFailSafeRegs", the default value is always read out, indicating that I did not change successfully. If my SPI driver is OK, can you give me some Suggestions?*/
   if (status != fs65StatusOk)
   {
      return fs65StatusError;
   }

   /* INIT_MAIN -> NORMAL_MODE. */
   /* If INIT_INT config value is not defined, just read and write the register value. */
   if (userConfig->initIntReg == NULL)
   {
      status = FS65_ReadRegister(FS65_M_INIT_INT_ADDR, &response);
      if (status != fs65StatusOk)
      {
         return status;
      }
      initIntValue = response.readData;
   }
   else
   {
         initIntValue = *(userConfig->initIntReg);
   }
   status |= FS65_WriteRegister(FS65_M_INIT_INT_ADDR, initIntValue, NULL);
   if (status != fs65StatusOk)
   {
      return status;
   }
}

Outcomes