Hi,I port the S32K144 software rest function to S32K344 like below.
void SystemSoftwareReset(void)
{
uint32 regValue;
/* Read Application Interrupt and Reset Control Register */
regValue = S32_SCB->AIRCR;
/* Clear register key */
regValue &= ~( SCB_AIRCR_VECTKEYSTAT_Msk);
/* Configure System reset request bit and Register Key */
regValue |=(((uint32)(((uint32)(0x05FAU))<<SCB_AIRCR_VECTKEYSTAT_Pos))&SCB_AIRCR_VECTKEYSTAT_Msk);
regValue |=(((uint32)(((uint32)(0x1U))<<SCB_AIRCR_SYSRESETREQ_Pos))&SCB_AIRCR_SYSRESETREQ_Msk);
/* Write computed register value */
S32_SCB->AIRCR = regValue;
}
But it cannot work.
I checked the Contex M7 about the SCB register it is same with Contex M4 why it work on S32K144 but cannot work on S32K344.
Solved! Go to Solution.
Hi @tianxing,
It is not implemented on the S32K3 series.
The S32K3 RM rev.3 lists all the available reset sources
Table 153. Destructive reset sources
Table 155. Functional reset sources
Regards,
Daniel
Hi @tianxing,
It is not implemented on the S32K3 series.
The S32K3 RM rev.3 lists all the available reset sources
Table 153. Destructive reset sources
Table 155. Functional reset sources
Regards,
Daniel