This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM44L520: TPS_SetPowerDownThreshhold FAIL

Part Number: RM44L520
Other Parts Discussed in Thread: TPS65281, HALCOGEN, TMS570LS1227, RM46L852

Dear Champs,

My customer faced 'TPS_SetPowerDownThreshhold FAIL, TPS_ProtectConfigurationRegisters PASS' error at the TPS65281 initialization while SW Lock.

    /*test SW_LOCK of Configuration Registers*/
    if(TRUE == TpsIf_GetRegister(TPS_SAFETY_PWD_THR_CFG,&u8PWDTHRBackup))
    {
     if(TRUE == TPS_ProtectConfigurationRegisters(LOCK))
  {
   if(TRUE == TPS_SetPowerDownThreshhold(0x3U))
   {
    TPS_SendDebugText(INFO,
            (uint8*) "TPS_SetPowerDownThreshhold PASS, TPS_ProtectConfigurationRegisters FAIL", 0);
    if(TRUE == TPS_SetPowerDownThreshhold(u8PWDTHRBackup))
    {
     TPS_SendDebugText(INFO,
       (uint8*) "TPS_SetPowerDownThreshhold Restore PASS", 0);
    }
    else
    {
     TPS_SendDebugText(INFO,
       (uint8*) "TPS_SetPowerDownThreshhold Restore FAIL", 0);
    }
   }
   else
   {
                TPS_SendDebugText(INFO,
                       
(uint8*) "TPS_SetPowerDownThreshhold FAIL, TPS_ProtectConfigurationRegisters PASS", 0);
   }
  }

 After this error, they also faced "SAFETY_PWD_THR_CFG" error in TPS_RegReadBackandCompare.

When they tried to get log, they found the value of SAFETY_PWD_THR_CFG_MASK register is '0x5' although u8safety_pwd_thr = 0x3.

Could you please check this and provide guide how they need to check to debug this issue?

Thanks and Best Regards,

SI.

  • Hi SI,

    Please use the TPS driver demo example project:

    The TMS570LS12x and RM46Lx CNCD cards have built-in TPS85381 chip, so those demo projects show the steps to configure the PMIC:

    C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\demo_app\HALCoGen\TMS570LS1227_CNCD\

    or

    C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\demo_app\HALCoGen\RM46L852_CNCD

  • Hi QJ,

    Actually they have used the example code of C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\demo_app\HALCoGen\RM46L852_CNCD and failed.

    When they used the TPS65381 initialization code  of C:\ti\Hercules\SafeTI Diagnostic Library\2.4.0\demo_app\HALCoGen\TMS570LS1227_CNCD\,

    they found it works well. e.g. TPS_RegReadBackandCompare was PASSed.

    When they compared these example code, they found the below part was not executed in the example code of TMS570LS1227_CNCD.

      /*test SW_LOCK of Configuration Registers*/

    Could you please check if this 'SW_LOCK' test can be removed?

    Thanks and Best Regards,

    SI.

  • Hi SL,

    I will check the code, but I don't CNCD control card for test.

  • Could you please check if this 'SW_LOCK' test can be removed?

    You don't have to program the power threshold.

    If you enable this for LS1227_CNCD, does TPS_SetPowerDownThreshhold() work on LS1227_CNCD board?

    Can you try UNLOCK instead of LOCK? I am sorry I don't have the board to try, and I am not very familiar with TPS65381 PMIC.