SWT0 S32K312 doens't work in Debug Mode

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

SWT0 S32K312 doens't work in Debug Mode

跳至解决方案
2,632 次查看
atranzillo93
Contributor III

Hi,

I'm using S32K312 EVB in Debug mode and SW resets when I try to enable SWT0 by setting WEN bit.

In my code, I leave the default configuration 0xFF00010A of CR register and when I try to set register WEN = 1, SW resets.
I expect that with CR[FRZ]= 1, using debug with watchodg enabled is possible.

I checked the bits:

  • SWT0_DBG_DIS_CM7_0 that is 0
  • SWT0_RST that is 1

Can you hel me?

I attached my code and registers configuration.

Kind regards,

标记 (2)
0 项奖励
回复
1 解答
2,578 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@atranzillo93

According to the description in the data sheet, RIA is only used to respond to SWT's invalid access behavior.


I modified the RIA configuration in this example and it still works fine.

Senlent_0-1689063753852.png

 

 

 

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,606 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@atranzillo93

can you test the demo we provided in S32 DS, it seems works fine on myside.

Senlent_1-1689057668244.png

 

 

0 项奖励
回复
2,590 次查看
atranzillo93
Contributor III

I found demo.

I try demo with my configuration and it doens't work if I set RIA = 1.

It works only with RIA = 0.

Why?

 

Thnks.

0 项奖励
回复
2,579 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@atranzillo93

According to the description in the data sheet, RIA is only used to respond to SWT's invalid access behavior.


I modified the RIA configuration in this example and it still works fine.

Senlent_0-1689063753852.png

 

 

 

0 项奖励
回复
2,565 次查看
atranzillo93
Contributor III

Now, it works.

Thank you.

0 项奖励
回复
2,599 次查看
atranzillo93
Contributor III

Hi,

can tou give me the path where I can found the demo?

 

Thanks.

0 项奖励
回复
2,596 次查看
Senlent
NXP TechSupport
NXP TechSupport
0 项奖励
回复