Help regarding use of Wdg_fs26 MCAL module for S32K344

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

Help regarding use of Wdg_fs26 MCAL module for S32K344

跳至解决方案
1,266 次查看
HemantK
Contributor III

Hello, 

We have an NXP BMU board which is fitted with FS26 SBC. 
I am trying to use a simple watchdog algorithm to make SBC happy. 
I have followed Wdg_FS26_HLD_Example (SW32K3_SBC_FS26_4.4_1.0.0) and I found two issues: 

1. The Wdg_fs26 MCAL uses WDG MCAL but the .mex in the example doesn't have it.

HemantK_3-1664913794746.png

 

2. Wdg_fs26 routine reads FS_STATES (0x57) and finds out that FS is in init state so it triggers watchdog by calling "Wdg_fs26_Ip_Trigger" function. Wdg_fs26_Ip_Trigger inturn calls Sbc_fs26_WdRefresh which checks watchdog type and it comes to be disabled so the watchdog never triggers and eventually I get a reset,

Below is the trace on SPI

 

Initialization routine: 

HemantK_0-1664913632237.png

Initialization routine continued:

 

HemantK_1-1664913680852.png

 

And then there is continuous request of FS State with no watchdog trigger: 

HemantK_2-1664913740890.png

Can you please guide me through this.

 

Regards, 

Hemant Kapoor

0 项奖励
回复
1 解答
1,228 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Hi,
1. This example using Wdg_43_fs26 plugin (External Watchdog driver for the FS26), so that's why it used Wdg_fs26 module:

cuongnguyenphu_0-1665544986113.png

 

2. Watchdog type and it comes to be disabled so the watchdog never triggers and eventually I get a reset -> Because this is the checking for SBS watchdog, but this example is using external watchdog so it will jump into Disable condition.

In case you want to use Internal watchdog, I think you should untick the External Watchdog checkbok, then choose corresponding watchdog type then try your example again:

cuongnguyenphu_1-1665545204793.png

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,229 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Hi,
1. This example using Wdg_43_fs26 plugin (External Watchdog driver for the FS26), so that's why it used Wdg_fs26 module:

cuongnguyenphu_0-1665544986113.png

 

2. Watchdog type and it comes to be disabled so the watchdog never triggers and eventually I get a reset -> Because this is the checking for SBS watchdog, but this example is using external watchdog so it will jump into Disable condition.

In case you want to use Internal watchdog, I think you should untick the External Watchdog checkbok, then choose corresponding watchdog type then try your example again:

cuongnguyenphu_1-1665545204793.png

 

0 项奖励
回复
1,220 次查看
cuongnguyenphu
NXP Employee
NXP Employee

The new release package for FS26 on S32K3XX is available on NXP product list, please take it for your note:

cuongnguyenphu_0-1665567627897.png

 

0 项奖励
回复