SWT0 S32K312 doens't work in Debug Mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SWT0 S32K312 doens't work in Debug Mode

Jump to solution
2,214 Views
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,

Tags (2)
0 Kudos
Reply
1 Solution
2,160 Views
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

 

 

 

View solution in original post

0 Kudos
Reply
6 Replies
2,188 Views
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 Kudos
Reply
2,172 Views
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 Kudos
Reply
2,161 Views
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 Kudos
Reply
2,147 Views
atranzillo93
Contributor III

Now, it works.

Thank you.

0 Kudos
Reply
2,181 Views
atranzillo93
Contributor III

Hi,

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

 

Thanks.

0 Kudos
Reply
2,178 Views
Senlent
NXP TechSupport
NXP TechSupport
0 Kudos
Reply