Help regarding use of Wdg_fs26 MCAL module for S32K344

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

Help regarding use of Wdg_fs26 MCAL module for S32K344

Jump to solution
1,265 Views
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 Kudos
Reply
1 Solution
1,227 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
1,228 Views
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 Kudos
Reply
1,219 Views
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 Kudos
Reply