keever50 commented on PR #16281: URL: https://github.com/apache/nuttx/pull/16281#issuecomment-2845653392
@linguini1 I am not sure what i am doing wrong. It is also not working on master for me. I tried expanding my code, but this also does not work. I followed some button examples, which dont work for me. My debugger shows the interrupts are never triggered. I am however not using the GPIO driver. I want a "bare metal" approach, but I'm guessing something goes wrong there? Perhaps this looks similar to the Pico SDK, but behaves completely differently. ```C int custom_irq(int irq, FAR void *context, FAR void *arg) { syslog(LOG_DEBUG, "HELLO!"); rp2040_gpio_put(BOARD_GPIO_LED_PIN, false); return 0; } void rp2040_boardearlyinitialize(void) { #ifdef CONFIG_ARCH_BOARD_COMMON rp2040_common_earlyinitialize(); #endif /* --- Place any board specific early initialization here --- */ /* Set board LED pin */ rp2040_gpio_init(BOARD_GPIO_LED_PIN); rp2040_gpio_setdir(BOARD_GPIO_LED_PIN, true); rp2040_gpio_put(BOARD_GPIO_LED_PIN, true); /* Test interrupt */ volatile int ret; rp2040_gpio_disable_irq(3); rp2040_gpio_init(3); rp2040_gpio_setdir(3, false); rp2040_gpio_set_pulls(3, 1, 0); ret = rp2040_gpio_irq_attach(3, RP2040_GPIO_INTR_EDGE_LOW, custom_irq, NULL); rp2040_gpio_enable_irq(3); } ``` result: ret = 0 function does not get triggered (also not the breakpoint). Are all the interrupts being reset after board initialization somewhere? I need help to figure this out -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org