S32K344 software reset fail

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K344 software reset fail

跳至解决方案
3,139 次查看
tianxing
Contributor IV

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 项奖励
回复
1 解答
3,115 次查看
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 项奖励
回复
1 回复
3,116 次查看
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 项奖励
回复