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.

Distinguish between power being cycled and the nPORRST line being driven low

Other Parts Discussed in Thread: HALCOGEN, TMS570LS0332

Hi,

I am using the TMS570LS0332 and Halcogen 4.2.

 

I see in sys_startup.c that it checks for different reset conditions.  However, it looks like the if statement below is true whether power is cycled or if the nPORRST line is driven low.  Is there any way to tell the difference between the two?

 

if ((SYS_EXCEPTION & POWERON_RESET) != 0U)
    {
/* USER CODE BEGIN (12) */
/* USER CODE END */
        
        /* clear all reset status flags */
        SYS_EXCEPTION = 0xFFFFU;

/* USER CODE BEGIN (13) */
/* USER CODE END */

        /* Workaround for Errata CORTEXR4 66 */
        _errata_CORTEXR4_66_();
    
/* USER CODE BEGIN (14) */
/* USER CODE END */

        /* continue with normal start-up sequence */
    }

Thanks,

David