<?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: PIT Example not working on RT1064 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/PIT-Example-not-working-on-RT1064/m-p/1741604#M214227</link>
    <description>&lt;P&gt;Hello, my name is Pavel, and I will be supporting your case, I reviewed your comments but what is your question sorry it was not clear to me, how can I help you? I review both examples and they are not similar but have the same solution. The IRQ function on the video is assigned to this function name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1697584043661.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245587iD6BAC2D1D27EA27E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_0-1697584043661.png" alt="Pavel_Hernandez_0-1697584043661.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The other hand is assigned to a macro.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_1-1697584074958.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245588iC96E8FB21DA2BDA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_1-1697584074958.png" alt="Pavel_Hernandez_1-1697584074958.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="Pavel_Hernandez_2-1697584087015.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245589i700AC874F33D7F95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_2-1697584087015.png" alt="Pavel_Hernandez_2-1697584087015.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 23:08:39 GMT</pubDate>
    <dc:creator>Pavel_Hernandez</dc:creator>
    <dc:date>2023-10-17T23:08:39Z</dc:date>
    <item>
      <title>PIT Example not working on RT1064</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PIT-Example-not-working-on-RT1064/m-p/1741331#M214196</link>
      <description>&lt;P&gt;I was following along the PIT example of your basic training "Basic Application Development Using MCUXpresso IDE and MCUXpresso Config Tools" found at&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/pages/basic-application-development-using-mcuxpresso-ide-and-mcuxpresso-config-tools:TIP-BASIC-APP-DEV-MCUXPRESSO-IDE-TOOLS" target="_blank" rel="noopener"&gt;https://www.nxp.com/pages/basic-application-development-using-mcuxpresso-ide-and-mcuxpresso-config-tools:TIP-BASIC-APP-DEV-MCUXPRESSO-IDE-TOOLS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the example, one simply configures an LED pin and the PIT and writes a simple IRQ to handle the interrupt of the PIT to toggle an LED.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example, the IRQ directly handles the toggling of the LED. When I follow along on my RT1064 board however, the toggling of the LED pin in the IRQ &lt;STRONG&gt;does not work&lt;/STRONG&gt;. When debugging and setting a break point inside the IRQ, I can see the IRQ is executed and it works as expected. When however I let the application run freely, the LED is not toggled.&lt;/P&gt;&lt;P&gt;I then looked at the PIT example provided in the SDK (which is not using the IDEs tools to configure the PIT but instead hard-codes everything, which is poor form if you ask me...) I noticed the IRQ only sets a flag and the LED toggle is performed in the while(true) loop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I copied this behavior and voila, it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is: Why does the LED toggle not work in the interrupt but it does work when put in main. I am aware that IRQ should do as little as possible, but toggling a single LED / Pin should be possible, right? I am trying to understand if there is some form of optimization / setting that disables my toggling the LED.&lt;/P&gt;&lt;P&gt;Cheers and thanks in advance for your help,&lt;/P&gt;&lt;P&gt;Joe&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 13:02:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PIT-Example-not-working-on-RT1064/m-p/1741331#M214196</guid>
      <dc:creator>r0oland</dc:creator>
      <dc:date>2023-10-17T13:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: PIT Example not working on RT1064</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PIT-Example-not-working-on-RT1064/m-p/1741604#M214227</link>
      <description>&lt;P&gt;Hello, my name is Pavel, and I will be supporting your case, I reviewed your comments but what is your question sorry it was not clear to me, how can I help you? I review both examples and they are not similar but have the same solution. The IRQ function on the video is assigned to this function name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1697584043661.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245587iD6BAC2D1D27EA27E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_0-1697584043661.png" alt="Pavel_Hernandez_0-1697584043661.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The other hand is assigned to a macro.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_1-1697584074958.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245588iC96E8FB21DA2BDA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_1-1697584074958.png" alt="Pavel_Hernandez_1-1697584074958.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="Pavel_Hernandez_2-1697584087015.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245589i700AC874F33D7F95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_2-1697584087015.png" alt="Pavel_Hernandez_2-1697584087015.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 23:08:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PIT-Example-not-working-on-RT1064/m-p/1741604#M214227</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2023-10-17T23:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: PIT Example not working on RT1064</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PIT-Example-not-working-on-RT1064/m-p/1741850#M214245</link>
      <description>&lt;P&gt;I had an issue where toogling the LED directly in the interrupt did not work, but setting a flag and toggling the led in main based on the flag did work. But toggling the LED in the interrupt is now working, I believe I simply had a bug...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PIT-Example-not-working-on-RT1064/m-p/1741850#M214245</guid>
      <dc:creator>r0oland</dc:creator>
      <dc:date>2023-10-18T06:40:36Z</dc:date>
    </item>
  </channel>
</rss>

