<?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 i.mx93 m33 core, issues with GPIO interrupt in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/i-mx93-m33-core-issues-with-GPIO-interrupt/m-p/1888710#M5820</link>
    <description>&lt;P&gt;playing/debugging&amp;nbsp; the imx93. I have a simple problem, maybe someone can point to what I do wrong here. I want to create&amp;nbsp;an interrupt with a GPIO state change. I use the drivers from NXP, fsl_rpgio.c/h provided with the SDK for the i.MX93)&lt;/P&gt;&lt;P&gt;First I set the MUX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    IOMUXC_SetPinMux    (IOMUXC_PAD_I2C1_SDA__GPIO1_IO01, 0U);
    IOMUXC_SetPinConfig (IOMUXC_PAD_I2C1_SDA__GPIO1_IO01, 
                         IOMUXC_PAD_DSE(15U) |
                         IOMUXC_PAD_FSEL1(2U) |
                         IOMUXC_PAD_PD_MASK);  &lt;/LI-CODE&gt;&lt;P&gt;Then I set up the port&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rgpio_pin_config_t pin_config = {
      kRGPIO_DigitalInput,
      0,
  };
  GPIO1-&amp;gt;PCNS = 0x0;      /* Set PCNS register value to 0x0 to prepare the RGPIO initialization */
  GPIO1-&amp;gt;ICNS = 0x03; 
  RGPIO_PinInit(GPIO1, 1, &amp;amp;pin_config);  //sets PDDR
  RGPIO_SetPinInterruptConfig(GPIO1, 1, kRGPIO_InterruptOutput0, kRGPIO_InterruptRisingEdge); //rising edge interrupt
  NVIC_SetPriority(GPIO1_0_IRQn, 3 /*25*/ /*HAL_GPIO_ISR_PRIORITY*/);
  NVIC_EnableIRQ(GPIO1_0_IRQn);&lt;/LI-CODE&gt;&lt;P&gt;for the interrupt handler I define (Reserved26 seems to be the General Purpose Input/Output 1 interrupt 0)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;void Reserved26_IRQHandler()
{
  RGPIO_ClearPinsInterruptFlags(GPIO1, 0, (1&amp;lt;&amp;lt;1));
}&lt;/LI-CODE&gt;&lt;P&gt;But the interrupt never comes. Did I overlook sth. obvious?&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 12:34:08 GMT</pubDate>
    <dc:creator>Vitus</dc:creator>
    <dc:date>2024-06-17T12:34:08Z</dc:date>
    <item>
      <title>i.mx93 m33 core, issues with GPIO interrupt</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/i-mx93-m33-core-issues-with-GPIO-interrupt/m-p/1888710#M5820</link>
      <description>&lt;P&gt;playing/debugging&amp;nbsp; the imx93. I have a simple problem, maybe someone can point to what I do wrong here. I want to create&amp;nbsp;an interrupt with a GPIO state change. I use the drivers from NXP, fsl_rpgio.c/h provided with the SDK for the i.MX93)&lt;/P&gt;&lt;P&gt;First I set the MUX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    IOMUXC_SetPinMux    (IOMUXC_PAD_I2C1_SDA__GPIO1_IO01, 0U);
    IOMUXC_SetPinConfig (IOMUXC_PAD_I2C1_SDA__GPIO1_IO01, 
                         IOMUXC_PAD_DSE(15U) |
                         IOMUXC_PAD_FSEL1(2U) |
                         IOMUXC_PAD_PD_MASK);  &lt;/LI-CODE&gt;&lt;P&gt;Then I set up the port&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rgpio_pin_config_t pin_config = {
      kRGPIO_DigitalInput,
      0,
  };
  GPIO1-&amp;gt;PCNS = 0x0;      /* Set PCNS register value to 0x0 to prepare the RGPIO initialization */
  GPIO1-&amp;gt;ICNS = 0x03; 
  RGPIO_PinInit(GPIO1, 1, &amp;amp;pin_config);  //sets PDDR
  RGPIO_SetPinInterruptConfig(GPIO1, 1, kRGPIO_InterruptOutput0, kRGPIO_InterruptRisingEdge); //rising edge interrupt
  NVIC_SetPriority(GPIO1_0_IRQn, 3 /*25*/ /*HAL_GPIO_ISR_PRIORITY*/);
  NVIC_EnableIRQ(GPIO1_0_IRQn);&lt;/LI-CODE&gt;&lt;P&gt;for the interrupt handler I define (Reserved26 seems to be the General Purpose Input/Output 1 interrupt 0)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;void Reserved26_IRQHandler()
{
  RGPIO_ClearPinsInterruptFlags(GPIO1, 0, (1&amp;lt;&amp;lt;1));
}&lt;/LI-CODE&gt;&lt;P&gt;But the interrupt never comes. Did I overlook sth. obvious?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 12:34:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/i-mx93-m33-core-issues-with-GPIO-interrupt/m-p/1888710#M5820</guid>
      <dc:creator>Vitus</dc:creator>
      <dc:date>2024-06-17T12:34:08Z</dc:date>
    </item>
  </channel>
</rss>

