Reset S32K144 MCU by software

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reset S32K144 MCU by software

3,154 Views
b_mansoor
Contributor I

How can I soft reset S32K144 after my CAN bootloader. 

0 Kudos
2 Replies

2,691 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

already discussed here:

https://community.nxp.com/message/1115871 

Regards,

Lukas

0 Kudos

2,691 Views
1515190497
Contributor II

Call this Fuction will be soft ware reset.

/*FUNCTION**********************************************************************
 *
 * Function Name : SystemSoftwareReset
 * Description   : This function is used to initiate a system reset
 *
 * Implements    : SystemSoftwareReset_Activity
 *END**************************************************************************/
void SystemSoftwareReset(void)
{
    uint32_t regValue;
    /* Read Application Interrupt and Reset Control Register */
    regValue = S32_SCB->AIRCR;
    /* Clear register key */
    regValue &= ~( S32_SCB_AIRCR_VECTKEY_MASK);
    /* Configure System reset request bit and Register Key */
    regValue |= S32_SCB_AIRCR_VECTKEY(FEATURE_SCB_VECTKEY);
    regValue |= S32_SCB_AIRCR_SYSRESETREQ(0x1u);
    /* Write computed register value */
    S32_SCB->AIRCR = regValue;
}
0 Kudos