Hi,
First and foremost, I'd want to reiterate that we do not provide support in Simulink for the Watchdog peripheral in the most recent MBDT for S32K3 release (1.5.0). We will consider adding support for this peripheral to the toolbox in the future.
However, for the time being, in addition to enabling it in S32 Configuration Tools, several procedures must be completed in order to use it appropriately within Simulink (change the initialization sequence, interrupt callbacks, clock references, and so on), and using custom code due to the lack of block implementation. This is the primary reason for the compile error in your project.
At this stage, I would recommend that you start evaluating the WDG projects that have already been implemented in C code by the Real Time Drivers team. The WDG peripheral implementation and documentation are available in the RTD package that comes with the toolbox at the following location:
TOOLBOX_ROOT\S32K3_RTD\SW32K3_S32M27x_RTD_R21-11_4.0.0_P19\eclipse\plugins\Wdg_TS_T40D34M40I0R0

Wdg_Example_S32K344 may be found in the examples folder and explains how to use Watchdog peripherals in an S32K344 program.

In addition, you may locate the peripheral documentation under the doc folder.

This program can be built and debugged using NXP's S32 Design Studio, an IDE designed specifically for automotive applications. This tool is not included in the toolbox; you must manually install it. The following links provide additional information about the S32DS tool:
- S32 Design Studio IDE
- S32DS list of HOWTOs
After successfully installing S32 Design Studio and adding the necessary packages and addons to match the RTD version given in the toolbox, import the aforementioned WDG project example, by following this guide Create a new S32DS Project from Example. You should target the Wdg_Example_S32K344 project example:


After successfully importing the project example, review the description file and study the C code from the main.c file in the src folder to gain a better understanding of how the WDG peripheral operates. By accessing the Configuration.mex file, you can view the application's configuration with the WDG and all other required peripherals.

Once you've gained a better understanding of Watchdog usage, you can create and debug this application on your hardware target. To get the desired application, you can manually edit the application's code as well as the configuration. Following that, you must migrate the application to Simulink, which will require additional guidance. However, until then, I recommend that you import this example and try to create the application using S32 Design Studio.
Let us know if you encounter any difficulties.
Best regards,
Dragos