Cannot configure Port 1 Pin 8

Hello,

I need to use Port 1 pin 8 as an interrupt pin:

#define INT_PIN  NRF_GPIO_PIN_MAP(1, 8)

nrf_drv_gpiote_in_config_t int_pin_config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(false);
int_pin_config.pull = NRF_GPIO_PIN_PULLUP;
ret_code_t err_code = nrf_drv_gpiote_in_init(INT_PIN, &int_pin_config, int_pin_handler);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(INT_PIN, true);

This results in the error NRF_ERROR_INVALID_STATE, when nrf_drv_gpiote_in_init() is called. Everything works fine, if I use a port 0 pin. What can be the problem with using port 1?

I'm using the nRF52832, SDK 17.1.0, SoftDevice S132 7.2.0, and a custom board.

Parents Reply Children
No Data
Related