Reset S32K144 MCU by software

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reset S32K144 MCU by software

5,345件の閲覧回数
b_mansoor
Contributor I

How can I soft reset S32K144 after my CAN bootloader. 

0 件の賞賛
返信
2 返答(返信)

4,882件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

already discussed here:

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

Regards,

Lukas

0 件の賞賛
返信

4,882件の閲覧回数
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 件の賞賛
返信