<?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>Wireless MCU中的主题 QN9090-PINT not being triggered</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1664403#M15079</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am trying to add a PINT interrupt into a NXP BLE Stack example design using the #QN9090&lt;/P&gt;&lt;P&gt;I have taken the PINT example code from the drivers and placed it at the main_task() function in the "ApplMain.c" file. The pin used in the QN9090 is the PIO15(also tested with PIO7 and PIO4 from the expansion board).&lt;/P&gt;&lt;P&gt;The Interrupt is defined in the PIN via HW Config tools like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blas_m_2-1686061745798.png" style="width: 483px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226459i368FE91BD8150BC2/image-dimensions/483x212?v=v2" width="483" height="212" role="button" title="blas_m_2-1686061745798.png" alt="blas_m_2-1686061745798.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;blas_m_2-1686061745798.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The initialization code looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blas_m_0-1686061476517.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226456iE24505BE98F3CBED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blas_m_0-1686061476517.png" alt="blas_m_0-1686061476517.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;blas_m_0-1686061476517.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The set-up code to trigger the interrupt contains only 2 commands(aside from the print-out):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blas_m_1-1686061588208.png" style="width: 595px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226458iDDBA6D366B9A179C/image-dimensions/595x158?v=v2" width="595" height="158" role="button" title="blas_m_1-1686061588208.png" alt="blas_m_1-1686061588208.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;blas_m_1-1686061588208.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"pint_intr_callback" function prints-out a message every time the interrupt is called. However this message never gets called or the interrupt never gets listed when I read the Pint interrupts with the command :&lt;BR /&gt;&lt;STRONG&gt;PINT_PinInterruptGetStatusAll(PINT)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It looks like the Interrupt has not been set-up correctly or the Pin Interrupts are not enabled&lt;BR /&gt;What could I do to make it work?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 14:34:53 GMT</pubDate>
    <dc:creator>blas_m</dc:creator>
    <dc:date>2023-06-06T14:34:53Z</dc:date>
    <item>
      <title>QN9090-PINT not being triggered</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1664403#M15079</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am trying to add a PINT interrupt into a NXP BLE Stack example design using the #QN9090&lt;/P&gt;&lt;P&gt;I have taken the PINT example code from the drivers and placed it at the main_task() function in the "ApplMain.c" file. The pin used in the QN9090 is the PIO15(also tested with PIO7 and PIO4 from the expansion board).&lt;/P&gt;&lt;P&gt;The Interrupt is defined in the PIN via HW Config tools like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blas_m_2-1686061745798.png" style="width: 483px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226459i368FE91BD8150BC2/image-dimensions/483x212?v=v2" width="483" height="212" role="button" title="blas_m_2-1686061745798.png" alt="blas_m_2-1686061745798.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;blas_m_2-1686061745798.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The initialization code looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blas_m_0-1686061476517.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226456iE24505BE98F3CBED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blas_m_0-1686061476517.png" alt="blas_m_0-1686061476517.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;blas_m_0-1686061476517.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The set-up code to trigger the interrupt contains only 2 commands(aside from the print-out):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blas_m_1-1686061588208.png" style="width: 595px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226458iDDBA6D366B9A179C/image-dimensions/595x158?v=v2" width="595" height="158" role="button" title="blas_m_1-1686061588208.png" alt="blas_m_1-1686061588208.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;blas_m_1-1686061588208.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"pint_intr_callback" function prints-out a message every time the interrupt is called. However this message never gets called or the interrupt never gets listed when I read the Pint interrupts with the command :&lt;BR /&gt;&lt;STRONG&gt;PINT_PinInterruptGetStatusAll(PINT)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It looks like the Interrupt has not been set-up correctly or the Pin Interrupts are not enabled&lt;BR /&gt;What could I do to make it work?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 14:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1664403#M15079</guid>
      <dc:creator>blas_m</dc:creator>
      <dc:date>2023-06-06T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: QN9090-PINT not being triggered</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1667183#M15134</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216343"&gt;@blas_m&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Hope you are doing well.&lt;/P&gt;
&lt;P&gt;Just to confirm, are you planning to use the PINT as a wake-up source for BLE?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 00:05:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1667183#M15134</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-06-10T00:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: QN9090-PINT not being triggered</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1667549#M15141</link>
      <description>&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;Thank you for enquiring about this.&lt;BR /&gt;The PINT is NOT going to be used as a wake-up pin for the QN9090 BLE sleep mode.&amp;nbsp;&lt;BR /&gt;The pin in question is going to be used as a means to let the QN9090 to know there is some data available on one of its Communication ports. Basically, the QN9090 is a Slave device and a Master device toggles/enables this pin to force the QN9090 to read from certain port&lt;BR /&gt;&lt;BR /&gt;I did some debugging on the registers via MCUXpresso. I can see the PINTSEL[0] for the PINT0 interrupt pointing to the PIO selected for the purpose, PIO_4 or PIO_7. See image&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PINT0_using_PIO_7.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227156i6C7A4B8102D8B414/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PINT0_using_PIO_7.PNG" alt="PINT0_using_PIO_7.PNG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PINT0_using_PIO_7.PNG&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;Then PINT registers are cleared and enabled for an active LOW interrupt on this pin. With the callback function listed:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PINT0_enabled_LOW.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227158i70ED0F8484174CBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="PINT0_enabled_LOW.PNG" alt="PINT0_enabled_LOW.PNG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PINT0_enabled_LOW.PNG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So a few things I would like to find out are:&lt;BR /&gt;- How do I know there is a clock associated for the PINT to be triggered?&lt;BR /&gt;- How could I find out the NVIC interrupt for the PINT0 is enabled?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Blas&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 15:17:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1667549#M15141</guid>
      <dc:creator>blas_m</dc:creator>
      <dc:date>2023-06-12T15:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: QN9090-PINT not being triggered</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1667773#M15144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Could you please help us with more details about your application? What is the communication protocol that you are planning to use?&lt;/P&gt;
&lt;P&gt;Just to clarify, are you trying to use this PINT, for example, as a "handshake" to indicate that a significant data transmission is about to start? Please consider that BLE applications have some time constrains that must be considered to avoid interrupting the stack process or destroying the connections.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 00:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1667773#M15144</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-06-13T00:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: QN9090-PINT not being triggered</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1668125#M15146</link>
      <description>&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;The Communication protocol will be UART.&lt;BR /&gt;Yes, the PINT is going to be used as "handshake" signal for the QN9090 to know that a transmission will start at the UART port.&lt;BR /&gt;While the PINT is enabled or the data being send via UART to the QN9090, there is no BLE link/connection so the QN9090 will be either advertising in Slow Mode or not Advertising at all&lt;BR /&gt;&lt;BR /&gt;I have a QN9090 DK6 (V3) devkit with the expansion board OM15082. This expansion board contains 4-leds and 4-buttons. I would like to get any NXP BLE example design working with a PINT on the button SW3 (this button is connected to PIO_7). The interrupt code should NOT be part of&amp;nbsp; the BLE App code. As additional info, my base NXP design is the private_profile_server working as Peripheral node&lt;BR /&gt;&lt;BR /&gt;Let me know if you need any more info, thanks for your help and interest&lt;BR /&gt;Cheers&lt;BR /&gt;Blas&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 08:06:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1668125#M15146</guid>
      <dc:creator>blas_m</dc:creator>
      <dc:date>2023-06-13T08:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: QN9090-PINT not being triggered</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1669474#M15149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please, try the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In source/app_preinclude.h file, set gKBD_KeysCount_c to 3 and, if implemented, disable (set to 0) low-power features (UsePowerDownMode and FullPowerDownMode)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EduardoZamora_0-1686761228819.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227726i9C8FF5C774F04A5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="EduardoZamora_0-1686761228819.png" alt="EduardoZamora_0-1686761228819.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EduardoZamora_0-1686761228819.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EduardoZamora_1-1686761228820.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227727i9BDAAA5BA528982E/image-size/large?v=v2&amp;amp;px=999" role="button" title="EduardoZamora_1-1686761228820.png" alt="EduardoZamora_1-1686761228820.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EduardoZamora_1-1686761228820.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In board/gpio_pins.h, define Port0 Pin7 as BUTTON3&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EduardoZamora_2-1686761228820.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227728i88A07B85B6C43C4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="EduardoZamora_2-1686761228820.png" alt="EduardoZamora_2-1686761228820.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EduardoZamora_2-1686761228820.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In source/main.c (for example private_profile_server.c), in BleApp_HandleKeys() function (which handles keyboard events), add the event corresponding to PB3, gKBD_EventPB3_c:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EduardoZamora_4-1686761744699.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227732iE1403D555AC82660/image-size/large?v=v2&amp;amp;px=999" role="button" title="EduardoZamora_4-1686761744699.png" alt="EduardoZamora_4-1686761744699.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EduardoZamora_4-1686761744699.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 16:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1669474#M15149</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-06-14T16:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: QN9090-PINT not being triggered</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1671210#M15163</link>
      <description>&lt;P&gt;Hi Eduardo, that works on the 'private_profile_server' example and our design!! Kudos to you.&lt;BR /&gt;Let me check how such implementation works with PINTs before mark it as a Solution&lt;BR /&gt;Thanks for the idea!!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 15:22:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1671210#M15163</guid>
      <dc:creator>blas_m</dc:creator>
      <dc:date>2023-06-16T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: QN9090-PINT not being triggered</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1673507#M15192</link>
      <description>&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;Problem solved.&lt;BR /&gt;Following your suggestions to add an additional switch functionality on the code, it allowed me to realize how the PINT are being used in the NXP BLE example design.&lt;BR /&gt;The file 'board.c' configures the switch pins on the Devkit and assigns them with an Interrupt and a physical PIN. Then I saw the PINT_0 &amp;amp; PINT_1 Interrupts were already being used.&lt;/P&gt;&lt;P&gt;On the top of that the different functions associated to configure the 'dk6_button_io_pins[]' also call other functions to clear-out the associated Interrupts registers which caused the problem that even though my code was assign the PIN_0 to my pin, this interrupt could be cleared out by another callback function.&lt;/P&gt;&lt;P&gt;Solution:&lt;BR /&gt;Assign to my own PINT any interrupt not being used by the devkit switches: PINT_2 or PINT_3&amp;nbsp;&lt;BR /&gt;Alternatively, Devkit switches can be disabled by commenting out :&amp;nbsp;KBD_Init(App_KeyboardCallBack); on main_task()&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blas_m_0-1687340099794.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228735i7F0ECAB6B42E0903/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blas_m_0-1687340099794.png" alt="blas_m_0-1687340099794.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;blas_m_0-1687340099794.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 09:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-PINT-not-being-triggered/m-p/1673507#M15192</guid>
      <dc:creator>blas_m</dc:creator>
      <dc:date>2023-06-21T09:42:07Z</dc:date>
    </item>
  </channel>
</rss>

