s32k312 + fs26 control problem

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

s32k312 + fs26 control problem

跳至解决方案
11,665 次查看
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 项奖励
回复
1 解答
11,586 次查看
guoweisun
NXP TechSupport
NXP TechSupport

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

在原帖中查看解决方案

0 项奖励
回复
24 回复数
10,102 次查看
guoweisun
NXP TechSupport
NXP TechSupport

guoweisun_0-1705901926057.png

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

0 项奖励
回复
10,097 次查看
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 项奖励
回复
10,092 次查看
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 项奖励
回复
10,088 次查看
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 项奖励
回复
10,085 次查看
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 项奖励
回复
10,081 次查看
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 项奖励
回复
10,076 次查看
guoweisun
NXP TechSupport
NXP TechSupport

Both of your questions,the answer are YES.

0 项奖励
回复
10,072 次查看
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 项奖励
回复
10,069 次查看
guoweisun
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复
10,067 次查看
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 项奖励
回复
10,063 次查看
guoweisun
NXP TechSupport
NXP TechSupport

What's the fault error counter value?

0 项奖励
回复
10,061 次查看
NewbieNerd
Contributor IV

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

0 项奖励
回复
10,058 次查看
guoweisun
NXP TechSupport
NXP TechSupport

The value of FLT_ERR_CNT should be decrease into 0.

0 项奖励
回复
11,587 次查看
guoweisun
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复
10,014 次查看
NewbieNerd
Contributor IV

doesn't enter normal.

what should I check another register?

0 项奖励
回复
10,056 次查看
NewbieNerd
Contributor IV

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

0 项奖励
回复
9,642 次查看
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 项奖励
回复
9,629 次查看
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 项奖励
回复
9,625 次查看
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 项奖励
回复
9,620 次查看
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 项奖励
回复