<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Model-Based Design Toolbox (MBDT)のトピックRe: How to implement watchdog for S32K344 in Simulink</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1942078#M9401</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223992"&gt;@kodyw&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your interest into Model-Based Design Toolbox for S32K3.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;STRONG&gt;SWT&amp;nbsp;&lt;/STRONG&gt;component that you are trying to configure uses a&amp;nbsp;lower level of abstraction,&amp;nbsp;suggested by the&amp;nbsp;&lt;STRONG&gt;_Ip&lt;/STRONG&gt;&amp;nbsp;in the definition of the component name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To enable the&amp;nbsp;&lt;STRONG&gt;Watchdog&amp;nbsp;&lt;/STRONG&gt;peripheral, you should use the MCAL&amp;nbsp;abstraction layer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1724836828920.png" style="width: 744px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295774i5448D01580CD2710/image-dimensions/744x268?v=v2" width="744" height="268" role="button" title="dragostoma_0-1724836828920.png" alt="dragostoma_0-1724836828920.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After enabling the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Wdg&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;component, under the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;WdgSettingsConfig&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab, you should be able to set up the desired configuration.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_1-1724836828921.png" style="width: 816px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295775i8D72CE629EA3388E/image-dimensions/816x602?v=v2" width="816" height="602" role="button" title="dragostoma_1-1724836828921.png" alt="dragostoma_1-1724836828921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Since we provide the complete RTD driver package, you may still implement the component&amp;nbsp;&lt;STRONG&gt;Wdg&amp;nbsp;&lt;/STRONG&gt;in our toolbox and access the&amp;nbsp;&lt;STRONG&gt;Wdg&lt;/STRONG&gt;'s API using custom code blocks.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also check the following topic&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-Battery-Management/ta-p/1119004" target="_self"&gt;How to use your own C code in our Toolbox (Battery Management System example)&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp;Here you will find an additional method of using custom code inside our toolbox.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also check the &lt;STRONG&gt;S32DS&lt;/STRONG&gt; example projects for &lt;STRONG&gt;Wdg&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1724836877694.png" style="width: 636px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295779i5A295D38498B5480/image-dimensions/636x132?v=v2" width="636" height="132" role="button" title="dragostoma_2-1724836877694.png" alt="dragostoma_2-1724836877694.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_3-1724836890355.png" style="width: 932px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295780iA0FB164D21C5B575/image-dimensions/932x387?v=v2" width="932" height="387" role="button" title="dragostoma_3-1724836890355.png" alt="dragostoma_3-1724836890355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let us know if you managed to enable the Watchdog component.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dragos&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 09:22:17 GMT</pubDate>
    <dc:creator>dragostoma</dc:creator>
    <dc:date>2024-08-28T09:22:17Z</dc:date>
    <item>
      <title>How to implement watchdog for S32K344 in Simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1941514#M9398</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We configured the SWT from Config Tool from Simulink as below screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295627i0455CBDC4B45F819/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It has compile errors.&amp;nbsp; What might be wrong? or are there any examples showing how to set watchdog up for S32K344 from Simulink?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 19:16:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1941514#M9398</guid>
      <dc:creator>kodyw</dc:creator>
      <dc:date>2024-08-27T19:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement watchdog for S32K344 in Simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1942078#M9401</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223992"&gt;@kodyw&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your interest into Model-Based Design Toolbox for S32K3.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;STRONG&gt;SWT&amp;nbsp;&lt;/STRONG&gt;component that you are trying to configure uses a&amp;nbsp;lower level of abstraction,&amp;nbsp;suggested by the&amp;nbsp;&lt;STRONG&gt;_Ip&lt;/STRONG&gt;&amp;nbsp;in the definition of the component name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To enable the&amp;nbsp;&lt;STRONG&gt;Watchdog&amp;nbsp;&lt;/STRONG&gt;peripheral, you should use the MCAL&amp;nbsp;abstraction layer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1724836828920.png" style="width: 744px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295774i5448D01580CD2710/image-dimensions/744x268?v=v2" width="744" height="268" role="button" title="dragostoma_0-1724836828920.png" alt="dragostoma_0-1724836828920.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After enabling the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Wdg&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;component, under the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;WdgSettingsConfig&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab, you should be able to set up the desired configuration.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_1-1724836828921.png" style="width: 816px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295775i8D72CE629EA3388E/image-dimensions/816x602?v=v2" width="816" height="602" role="button" title="dragostoma_1-1724836828921.png" alt="dragostoma_1-1724836828921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Since we provide the complete RTD driver package, you may still implement the component&amp;nbsp;&lt;STRONG&gt;Wdg&amp;nbsp;&lt;/STRONG&gt;in our toolbox and access the&amp;nbsp;&lt;STRONG&gt;Wdg&lt;/STRONG&gt;'s API using custom code blocks.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also check the following topic&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-Battery-Management/ta-p/1119004" target="_self"&gt;How to use your own C code in our Toolbox (Battery Management System example)&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp;Here you will find an additional method of using custom code inside our toolbox.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also check the &lt;STRONG&gt;S32DS&lt;/STRONG&gt; example projects for &lt;STRONG&gt;Wdg&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1724836877694.png" style="width: 636px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295779i5A295D38498B5480/image-dimensions/636x132?v=v2" width="636" height="132" role="button" title="dragostoma_2-1724836877694.png" alt="dragostoma_2-1724836877694.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_3-1724836890355.png" style="width: 932px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295780iA0FB164D21C5B575/image-dimensions/932x387?v=v2" width="932" height="387" role="button" title="dragostoma_3-1724836890355.png" alt="dragostoma_3-1724836890355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let us know if you managed to enable the Watchdog component.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dragos&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 09:22:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1942078#M9401</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-08-28T09:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement watchdog for S32K344 in Simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1942869#M9407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199423"&gt;@dragostoma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; We tried again by following your suggestions and use SUTOSAR Mode like the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kodyw_0-1724894543039.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295920i5F045DFC0435EBCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kodyw_0-1724894543039.png" alt="kodyw_0-1724894543039.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, it still has compile errors.&amp;nbsp; Please see attached SWT_ErrInfo.txt.&lt;/P&gt;&lt;P&gt;Could you please provide some sample project that works within the Simulink?&amp;nbsp; That should help us understand what might be the issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Kody&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 01:29:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1942869#M9407</guid>
      <dc:creator>kodyw</dc:creator>
      <dc:date>2024-08-29T01:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement watchdog for S32K344 in Simulink</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1943294#M9414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First and foremost, I'd want to reiterate that we do not provide support in Simulink for the &lt;STRONG&gt;Watchdog&lt;/STRONG&gt; 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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;TOOLBOX_ROOT\S32K3_RTD\SW32K3_S32M27x_RTD_R21-11_4.0.0_P19\eclipse\plugins\Wdg_TS_T40D34M40I0R0&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_4-1724918792621.png" style="width: 663px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296009i98645904811C9E71/image-dimensions/663x256?v=v2" width="663" height="256" role="button" title="dragostoma_4-1724918792621.png" alt="dragostoma_4-1724918792621.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Wdg_Example_S32K344&lt;/STRONG&gt; may be found in the &lt;STRONG&gt;&lt;EM&gt;examples&lt;/EM&gt; &lt;/STRONG&gt;folder and explains how to use Watchdog peripherals in an S32K344 program.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_5-1724918850986.png" style="width: 665px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296010i84554F7B4DD9427F/image-dimensions/665x211?v=v2" width="665" height="211" role="button" title="dragostoma_5-1724918850986.png" alt="dragostoma_5-1724918850986.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In addition, you may locate the peripheral documentation under the &lt;EM&gt;&lt;STRONG&gt;doc&lt;/STRONG&gt; &lt;/EM&gt;folder.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_6-1724918913392.png" style="width: 664px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296012i36C11CA121A5E079/image-dimensions/664x92?v=v2" width="664" height="92" role="button" title="dragostoma_6-1724918913392.png" alt="dragostoma_6-1724918913392.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This program can be built and debugged using NXP's &lt;STRONG&gt;S32 Design Studio&lt;/STRONG&gt;, 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:&lt;/P&gt;
&lt;P&gt;- &lt;A href="https://www.nxp.com/design/design-center/software/automotive-software-and-tools/s32-design-studio-ide:S32-DESIGN-STUDIO-IDE" target="_blank" rel="noopener"&gt;S32 Design Studio IDE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- &lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/S32DS-list-of-HOWTOs/ta-p/1113475" target="_blank" rel="noopener"&gt;S32DS list of HOWTOs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;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&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-S32-Design-Studio-Create-a-New-S32DS-Project-from-Example/ta-p/1098969" target="_blank" rel="noopener"&gt;Create a new S32DS Project from Example.&lt;/A&gt;&amp;nbsp;You should target the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Wdg_Example_S32K344&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;project example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1724917629226.png" style="width: 651px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295993i858F38C78600CDF9/image-dimensions/651x134?v=v2" width="651" height="134" role="button" title="dragostoma_0-1724917629226.png" alt="dragostoma_0-1724917629226.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_1-1724917644291.png" style="width: 877px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295995iFBE7826A1A1840BC/image-dimensions/877x364?v=v2" width="877" height="364" role="button" title="dragostoma_1-1724917644291.png" alt="dragostoma_1-1724917644291.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After successfully importing the project example, review the description file and study the C code from the &lt;STRONG&gt;main.c&lt;/STRONG&gt; file in the &lt;EM&gt;&lt;STRONG&gt;src&lt;/STRONG&gt; &lt;/EM&gt;folder to gain a better understanding of how the WDG peripheral operates. By accessing the &lt;STRONG&gt;Configuration.mex&lt;/STRONG&gt; file, you can view the application's configuration with the WDG and all other required peripherals.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1724918114528.png" style="width: 1077px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/295997i93367D67A1F78B2D/image-dimensions/1077x576?v=v2" width="1077" height="576" role="button" title="dragostoma_2-1724918114528.png" alt="dragostoma_2-1724918114528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Let us know if you encounter any difficulties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 08:52:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-implement-watchdog-for-S32K344-in-Simulink/m-p/1943294#M9414</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-08-29T08:52:33Z</dc:date>
    </item>
  </channel>
</rss>

