s32k312 + fs26 control problem

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

s32k312 + fs26 control problem

Jump to solution
10,644 Views
NewbieNerd
Contributor IV

Hello S32K3 team!
I am currently attempting to control FS26 on the S32K312EVB.

  1. Whenever I query 'FS_STATE', 'REG_CORRUPT' is always in a high state. The calculations for all init_register and init_not_register values are consistent. Please inform me how to reset this state.

  2. Even after successfully attempting 'WD_Refresh', it does not switch to 'Normal state' and remains in 'Safety Outputs not released' status. Is this related to issue number 1?

  3. The system resets when I input the debug_mode_exit value. What could be the issue?

Regard

0 Kudos
Reply
1 Solution
10,565 Views
guoweisun
NXP TechSupport
NXP TechSupport

If the FLT_ERR_CNT is 0,you can  release FS0B no problem then enter into normal mode.

View solution in original post

0 Kudos
Reply
24 Replies
9,197 Views
guoweisun
NXP TechSupport
NXP TechSupport

guoweisun_0-1705901926057.png

Does the RSTB released? what about the ABIST/LBIST states?OK or not?

0 Kudos
Reply
9,192 Views
NewbieNerd
Contributor IV

Hello! guoweisun

When I read fs_diag_safety1 Address:

fs_states = 0xA

and

abist1_pass = 0x1,
abist2_done = 0x1,
abist2_pass = 0x0,
lbist_Status = 0x3

The behavior is the same whether lauch_abist2 is 0 or 1.

0 Kudos
Reply
9,187 Views
guoweisun
NXP TechSupport
NXP TechSupport

guoweisun_0-1705978895459.png

I think you need release FS0B next,but before do that you need  refresh WD till fault error counter decrease to '0'.

after release FS0B you will enter into Normal mode.

0 Kudos
Reply
9,183 Views
NewbieNerd
Contributor IV

Hi

After the FS State changed to the FS0B_ASSERT state, it was confirmed that the value of the Fault Error Count was 0. Then, when attempting to release FS0B and FS1B, the FS State immediately changes to FS_Init and then resets.

NewbieNerd_0-1705988453393.png(Rel_State is the state after attempting to release FSxB)

 

Regard

0 Kudos
Reply
9,180 Views
guoweisun
NXP TechSupport
NXP TechSupport

Please try to disable FCCU function and DISABLE the WD.

And also need confirm there is no any error for UV/OV monitor error,if have please clear these error.

0 Kudos
Reply
9,176 Views
NewbieNerd
Contributor IV

 

1. Does disabling the FCCU function mean changing the value of FCCU monitoring to No Monitoring? If so, we are currently in continuous testing.

2. Does disabling the WD mean changing the FS_State to FS_Init and then applying a WD_Period value of 0?

 

0 Kudos
Reply
9,171 Views
guoweisun
NXP TechSupport
NXP TechSupport

Both of your questions,the answer are YES.

0 Kudos
Reply
9,167 Views
NewbieNerd
Contributor IV

Hi guoweisun

NewbieNerd_0-1705992868377.png

 

I read the values of the registers that were set during the process. Even without making any separate changes, the value of FS_State changes to Invalid after attempting to Release FSXB.

 

Regard

0 Kudos
Reply
9,164 Views
guoweisun
NXP TechSupport
NXP TechSupport

Seems some monitor UV/OV error happened,you can read it out.

0 Kudos
Reply
9,162 Views
NewbieNerd
Contributor IV

Hi guoweisun

NewbieNerd_0-1705994669664.png

 

The FS_STATE still hasn't changed to Normal... The last two lines are the values after attempting to release FSXB. '1' is the value of the UV/OV State, and '2' is the value of FS_STATE.

Thanks to your help
Regard

0 Kudos
Reply
9,158 Views
guoweisun
NXP TechSupport
NXP TechSupport

What's the fault error counter value?

0 Kudos
Reply
9,156 Views
NewbieNerd
Contributor IV

This is 'FS_I_FSSM' Register - [3:0]
It mesns 'FLT_ERR_CNT'

0 Kudos
Reply
9,153 Views
guoweisun
NXP TechSupport
NXP TechSupport

The value of FLT_ERR_CNT should be decrease into 0.

0 Kudos
Reply
10,566 Views
guoweisun
NXP TechSupport
NXP TechSupport

If the FLT_ERR_CNT is 0,you can  release FS0B no problem then enter into normal mode.

0 Kudos
Reply
9,109 Views
NewbieNerd
Contributor IV

doesn't enter normal.

what should I check another register?

0 Kudos
Reply
9,151 Views
NewbieNerd
Contributor IV

The current value is 0. Should I manually induce a fault and then decrease it back to 0?

0 Kudos
Reply
8,737 Views
Akhil1
Contributor I

Hello @NewbieNerd ,

Can you provide the project zip, I am working on the SBC FS26 with s32k312 watchdog refresh.

It could me help for me.

 

0 Kudos
Reply
8,724 Views
NewbieNerd
Contributor IV

Hi Akhil1!

Thank you for your interest. However, due to company policy, we are unable to upload data.
and I Sovled this problem!
I think It is WD Refresh Data and timing problem.
first I tried 0xA43D, 0x4A9A, 0x9535 ~ WD refresh at Release FSxB before, and After acquiring the WD Token and applying the challenger formula, continuing the WD refresh did not result in any issues.

regard

0 Kudos
Reply
8,720 Views
Akhil1
Contributor I

Hello @NewbieNerd ,

I am yet to start SBC FS26 with S32K312 with RTD 2.0.3 version, I want to do the watchdog refresh for every 50 ms, how can I do it.

when I stop watchdog refresh...MCU should reset

How can I do it? could you please help me with this.

 

0 Kudos
Reply
8,715 Views
NewbieNerd
Contributor IV

Hi Akhil1

First, I executed the code referencing the script below, and confirmed that the FS State has changed to Normal.

NewbieNerd_0-1707112723608.png

 

Then, I used GPT to continuously call the WD_Refresh function within 255ms.

If the GPT stops, the MCU will be reset.

Regard

 

0 Kudos
Reply