Hello All,
I have followed what is in this doc:
And by power cycling the design (IGN) have got the code to run - but more often it gets stuck in SAFE mode; and/or the SPI commands in the ecmpInit() get stuck.
In the example code: (sys_main.c)
_mpuInit_();
/* avoid TPS65381 to transit to ACTIVE operating state */
//Hercules_TPS65381
spiInit();
/* avoid TPS65381 to transit to ACTIVE operating state */
//Hercules_TPS65381
sciInit();
ecmpInit();
if(ecmpIfGetRegister(ECMP_SAFETY_STATUS5) != 7)
{
//TPS65381 does not stay in diagnostic state.
sciSend(scilinREG, 46, (uint8_t *) "\r\nTPS65381 is NOT in DIAG state, toggle IGN!\r\n");
while(1);
}
Can someone outline exactly what is taking place to
'avoid TPS65381 to transit to Active Operating state' ?
Thanks In Advance,
John W.