<?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: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996554#M3937</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/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, it seems I missed the previous reply. I'll take a look and get back to you by the end of the day with an update. The GreenLEDOff subsystem is called in the external interrupt - see &lt;STRONG&gt;Interrupt_Handler_SIUL_EIRQ_00_07_IRQn.c&lt;/STRONG&gt; file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2019 12:29:26 GMT</pubDate>
    <dc:creator>constantinrazva</dc:creator>
    <dc:date>2019-11-19T12:29:26Z</dc:date>
    <item>
      <title>Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996548#M3931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;DEVKIT-MPC5744P Board (REV-E).&lt;/P&gt;&lt;P&gt;I am using a GPO to toggle a pin and using the same ping to provide input to another GPI&lt;/P&gt;&lt;P&gt;I am trying to use Rising Edge Detection and Falling Edge Detection using different GPI ISR blocks. (shown below)&amp;nbsp;&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/92675i47496282D736695F/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;To test i use an LED. for falling edge it shall be off and for rising edge it shall be on. But the LED stays on. Somehow both ISR for same pin is not working in this toolbox. Please provide your input.&lt;/P&gt;&lt;P&gt;Model is attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;‌, &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 10:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996548#M3931</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-11-15T10:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996549#M3932</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/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can only get 1 ISR block for 1 pin - but you can set it to trigger on both edges, and check inside the ISR the pin value. You can either use the input block to get the value and pass it to an IF block - one branch being the "Turn ON" subsystem, while the other branch being the "Turn OFF" subsystem. One more thing I'd like to mention is that we also have register read/write block - you can use those for fine grain control. For instance, here you can use it to get the PDIR register value (which if I remember correctly is the Port Data Input Register in which you find the values for the pins):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92676iDCE82DA68A517CCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to sum it up - 1 ISR block for the pin you want, using both edges as a trigger and inside the ISR subsystem you'll want to get the pin value to decide which subsystem to execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have further problems with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 12:43:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996549#M3932</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-11-15T12:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996550#M3933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The option where we use GPI block and split using if else does not work somehow.&lt;/P&gt;&lt;P&gt;The Either Edge ISR works but somehow if else arbitration does not work. The LED does not blink at all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Abhishek.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 14:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996550#M3933</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-11-15T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996551#M3934</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/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also attach a zip with the generated code? I want to check something in the code generated at your end - there is a known bug in mathworks' code generation (for this exact scenario, with 2 subsystems called on different if branches, having inside the same blocks called - in your case both subsystems have 1 constant block and 1 GPO block). I just want to make sure that's not the problem in your case (although I suspect it is).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 15:05:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996551#M3934</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-11-15T15:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996552#M3935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached code (and sorry for delayed response)&lt;/P&gt;&lt;P&gt;I tried to look in the generated code and was not able to find the function call &lt;EM&gt;&lt;STRONG&gt;GreenLEDOff.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to be a bit weird.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 08:29:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996552#M3935</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-11-18T08:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996553#M3936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Dear&lt;SPAN&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was there an problems found?&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:06:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996553#M3936</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-11-19T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996554#M3937</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/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, it seems I missed the previous reply. I'll take a look and get back to you by the end of the day with an update. The GreenLEDOff subsystem is called in the external interrupt - see &lt;STRONG&gt;Interrupt_Handler_SIUL_EIRQ_00_07_IRQn.c&lt;/STRONG&gt; file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:29:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996554#M3937</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-11-19T12:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996555#M3938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hello&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-objectid="324429" data-objecttype="3" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Abhishek Kumar&lt;/A&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;We have the following problem: when using the GPI ISR block and the GPI block, initialization code for only one of those is ran - we verify so that we do not initialize the same pin twice. So when you add the GPI block inside the subsystem, the ISR is no longer ran (due to lack of initialization for it). That is what is failing in your model. I will tackle this issue and come back with a fix. I will post it here so stay tuned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Razvan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:26:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996555#M3938</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-11-20T15:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rising and Falling Edge GPIO ISR not working as Expected (MBD MPC574x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996556#M3939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We found a temporary solution (for time bing) using the registers as shown below (model attached)&lt;/P&gt;&lt;P&gt;The value for the pad can be read here and we can know is it's rising or falling.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if you solve the code generation issue.&amp;nbsp;&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/81528i439B6805EBCD0843/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;Best Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 09:47:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Rising-and-Falling-Edge-GPIO-ISR-not-working-as-Expected-MBD/m-p/996556#M3939</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-11-21T09:47:14Z</dc:date>
    </item>
  </channel>
</rss>

