<?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>topic Re: eTimer0 watchdog interrupt for MBD Toolbox - MPC5744P in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996630#M3943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/rafael.barbosa@chassisbrakes.com"&gt;rafael.barbosa@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For implementing the ISR eTimer watchdog, you have two options depending on your needs:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; If you need to trigger a subsystem you can add an S-Function. For this you will need to attach an .tlc file. You can be inspired by our etimer_mpc574x_isr_handler.tlc. All your handler definition will be in the Start tlc. function. If you need more clarification please write me here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94430i82D51FEE0AB67EF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you don't need to trigger a subsystem, you can simply add your code using from the Simulink Coder toolbox, the following "System Start" block. and you add your definition there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94454iBC9D0B515AD055DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Nov 2019 10:14:59 GMT</pubDate>
    <dc:creator>mariuslucianand</dc:creator>
    <dc:date>2019-11-18T10:14:59Z</dc:date>
    <item>
      <title>eTimer0 watchdog interrupt for MBD Toolbox - MPC5744P</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996627#M3940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Devkit MPC5744P and the Model Based Design Toolbox 3.0.0&lt;/P&gt;&lt;P&gt;The reference manual informs that the eTimer0 supports watchdog timer by configuring the registers WDTOL and WDTOH.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92502i90E4AA4C432CAF0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the watchdog interrupt event, but I couldn't implment it using the eTimer interrupt handler as show below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92628iBEB6389268273667/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me&amp;nbsp;on it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Rafael&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌&amp;nbsp;&lt;BR /&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 08:40:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996627#M3940</guid>
      <dc:creator>rafael_barbosa</dc:creator>
      <dc:date>2019-11-15T08:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: eTimer0 watchdog interrupt for MBD Toolbox - MPC5744P</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996628#M3941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/rafael.barbosa@chassisbrakes.com"&gt;rafael.barbosa@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We&amp;nbsp;currently do not support the Watchdog timeout-interrupt. We can consider adding support for that in a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until then, if you really need this functionality, you can achieve this with custom code insertion.&lt;/P&gt;&lt;P&gt;From the interrupt vector table I understand that this sis available only for Etimer 0 Channel 0 so you need to create a&amp;nbsp;&amp;nbsp;custom block to implement&amp;nbsp;this ETIMER0_WTIF_IRQHandler function as void function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SDK offers the support to enable interrupt source using the following call:&lt;/P&gt;&lt;BLOCKQUOTE&gt;ETIMER_DRV_EnableInterruptSource(0,&amp;nbsp;ETIMER_INTDMA_WDFIE_MASK, 0);&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set and disable the watchdog using:&lt;/P&gt;&lt;DIV&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV&gt;ETIMER_DRV_SetWatchdog(constuint16_t instance,&amp;nbsp;constuint16_t channel,&amp;nbsp;constuint32_t watchdog);&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV&gt;ETIMER_DRV_DisableWatchdog(constuint16_t instance,&amp;nbsp;constuint16_t channel);&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if you encounter difficulties if you start implementing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 16:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996628#M3941</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-11-15T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: eTimer0 watchdog interrupt for MBD Toolbox - MPC5744P</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996629#M3942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marius,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;Besides the configuration, how can I implement the Interrupt Service Routine for this eTimer watchdog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Rafael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 09:06:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996629#M3942</guid>
      <dc:creator>rafael_barbosa</dc:creator>
      <dc:date>2019-11-18T09:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: eTimer0 watchdog interrupt for MBD Toolbox - MPC5744P</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996630#M3943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/rafael.barbosa@chassisbrakes.com"&gt;rafael.barbosa@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For implementing the ISR eTimer watchdog, you have two options depending on your needs:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; If you need to trigger a subsystem you can add an S-Function. For this you will need to attach an .tlc file. You can be inspired by our etimer_mpc574x_isr_handler.tlc. All your handler definition will be in the Start tlc. function. If you need more clarification please write me here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94430i82D51FEE0AB67EF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you don't need to trigger a subsystem, you can simply add your code using from the Simulink Coder toolbox, the following "System Start" block. and you add your definition there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94454iBC9D0B515AD055DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 10:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996630#M3943</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-11-18T10:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: eTimer0 watchdog interrupt for MBD Toolbox - MPC5744P</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996631#M3944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 11:39:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996631#M3944</guid>
      <dc:creator>rafael_barbosa</dc:creator>
      <dc:date>2019-11-18T11:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: eTimer0 watchdog interrupt for MBD Toolbox - MPC5744P</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996632#M3945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/rafael.barbosa@chassisbrakes.com"&gt;rafael.barbosa@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any time. If you encounter any difficulties in implementing the S-function, feel free to reply here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 12:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/eTimer0-watchdog-interrupt-for-MBD-Toolbox-MPC5744P/m-p/996632#M3945</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-11-18T12:45:46Z</dc:date>
    </item>
  </channel>
</rss>

