S32K344 software reset fail

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

S32K344 software reset fail

ソリューションへジャンプ
3,135件の閲覧回数
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,111件の閲覧回数
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,112件の閲覧回数
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 件の賞賛
返信