This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

err_code 8 meaning in nrf_drv_gpiote_init()

Hello, I am trying to configure gpiote to give an interrupt for wake on motion functionality in MPU9250 I am configuring the MPU for that by calling separate wake_on_motion() and then I am calling the gpiote_config(). Below given is my function:

static void gpio_config(void) { ret_code_t err_code;

err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);

nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_LOTOHI(true);
in_config.pull = NRF_GPIO_PIN_NOPULL;

err_code = nrf_drv_gpiote_in_init(MPU9250_INT_PIN, &in_config, int_pin_handler);
APP_ERROR_CHECK(err_code);

nrf_drv_gpiote_in_event_enable(MPU9250_INT_PIN, true);

}

but i am getting err_code 8 after calling this function.

What is its meaning ?