SWT0 S32K312 doens't work in Debug Mode

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

SWT0 S32K312 doens't work in Debug Mode

ソリューションへジャンプ
2,631件の閲覧回数
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,577件の閲覧回数
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,605件の閲覧回数
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,589件の閲覧回数
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,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 件の賞賛
返信
2,564件の閲覧回数
atranzillo93
Contributor III

Now, it works.

Thank you.

0 件の賞賛
返信
2,598件の閲覧回数
atranzillo93
Contributor III

Hi,

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

 

Thanks.

0 件の賞賛
返信
2,595件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信