S32K312 SWT0 interrupt

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

S32K312 SWT0 interrupt

1,414 次查看
jhuang1
Contributor II

Hello,

   Two products among the whole 700+ products in my project encounterred a problem, the SWT0 interrupt in the two product continue to trigger after the SWT0 had been disabled. I have to disable the  SWT interrupt instead of just disabling the SWT0. Is there a possibility that the SWT interrupt run out of control? 

0 项奖励
回复
6 回复数

1,386 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @jhuang1,

Can you share all the SWT register values while it is in the interrupt routine?

Is the TIF flag set while WEN = 0?

 

Thank you,

 

Regards,

Daniel

0 项奖励
回复

1,379 次查看
jhuang1
Contributor II

The main registers value in the interrupt routine:

CR:0xFF000006

IR:1

TO:0x100

WN:0

0 项奖励
回复

1,353 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @jhuang1,

Does it trigger periodically as usual or does the flag stays continuously asserted?

Such unpredictable behavior can be expected if the system clock configuration is incorrect.

Is it configured precisely to one of the clock options listed in the RM?

E.g. Table 151. Option A - High Performance mode (CORE_CLK @ 160 MHz).

 

Thank you

 

 

0 项奖励
回复

1,301 次查看
jhuang1
Contributor II

The flag stays continuously asserted, and the clock should be fine, the other functions such as uart or spi works fine after the swt interrupt being disabled. There should be some other errors occure if clock configuration is incorrect. 

0 项奖励
回复

1,265 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @jhuang1,

I understand the flag cannot be cleared.

I have been trying to replicate it but with no luck.

Can you make sure the flag is cleared right before the SWT is disabled?

 

Thank you

0 项奖励
回复

1,242 次查看
jhuang1
Contributor II

I think there is no need to call an interrupt flag clear function in the ISR, and i have read the pendding  interrupt flag register, it represent zero at the point of SWT.

0 项奖励
回复