Hi Victor,
Sorry for the confusion.Let me start over. I am using MIMXRT-1052 on custom board. I am using Mcuxpresso. I tried to get interrupts from two GPIO2 pins which we discussed. But ı cannot get interrupt from pins. I check my code over and over again but ı cant get interrupt. So ı thought my processor pins were damaged. So ı gave up trying to get interrupt. Changed pins direction to output. When ı toggle to pins cant see 3V from both. So i figured out that is the problem. Our pins were damaged. We tried to toggle by selecting random pins among GPIO1, GPIO2, GPIO3. GPIO1, GPIO2 and GPIO3 pins supplied by NVCC_GPIO(3v). The remaning pins except our damaged pins were able to generate 3V. So we choose the interrupt pins from among the working pins and there is no problem now. But the two damaged pins still not working.
"Could you please share with me the project that you are using to test this? " - Sorry already deleted test project. But Still using same code.
/* GPIO configuration of RST on GPIO_AD_B1_00 (pin J11) */
gpio_pin_config_t RST _config = {
.direction = kGPIO_DigitalOutput,
.outputLogic = 0U,
.interruptMode = kGPIO_NoIntmode
};
/* Initialize GPIO functionality on GPIO_AD_B1_00 (pin J11) */
GPIO_PinInit(GPIO1, 16U, &RST _config);
/* GPIO configuration of IRQ_1 on GPIO_AD_B1_01 (pin K11) */
gpio_pin_config_t IRQ_1 _config = {
.direction = kGPIO_DigitalInput,
.outputLogic = 0U,
.interruptMode = kGPIO_IntRisingEdge
};
/* Initialize GPIO functionality on GPIO_AD_B1_01 (pin K11) */
GPIO_PinInit(GPIO1, 17U, &IRQ_1 _config);
/* Enable GPIO pin interrupt on GPIO_AD_B1_01 (pin K11) */
GPIO_PortEnableInterrupts(GPIO1, 1U << 17U);
Kind Regards,
Omer