I am using the nRF54L15 and NCS SDK v3.0.2 in my project. I need to wake up the board via interrupts from a pressure sensor and a gyro sensor.
The GPIO requirements are as follows:
-
Pressure sensor interrupt: P0.02
-
Gyro sensor interrupts: P0.00 and P0.01
To configure the pressure sensor interrupt, I added the following to my .overlay file:
/ {
press_int: press_int {
gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "PRESS_INT";
};
aliases {
press-int = &press_int;
};
};
In main.c, I used
#define PRESS_NODE DT_ALIAS(press_int)
static const struct gpio_dt_spec press = GPIO_DT_SPEC_GET(PRESS_NODE, gpios);
However, during compilation, I get the following error:
identifier "__device_dts_ord_DT_N_S_press_0_P_gpios_IDX_0_PH_ORD" is undefined
Could you please advise if I need to configure this GPIO differently, or if there's something missing in my device tree or code setup?
Best regards,
Hashir