S32K344 software reset fail

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

S32K344 software reset fail

Jump to solution
1,844 Views
tianxing
Contributor III

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.

0 Kudos
Reply
1 Solution
1,820 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

View solution in original post

0 Kudos
Reply
1 Reply
1,821 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply