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

GPIOTE event handler not triggered

Hi team.

Whenever an interrupt comes in the hardware gpio handler is expected to get triggered but for me it doesn't get triggered properly in one scenario and works in other case 

if i configure like below handler is not getting triggered (hardware interrupt is occurring though)

nrfx_gpiote_in_init(pin_no, &gpio_config, (nrfx_gpiote_evt_handler_t)gpio_evt_cb) 
nrfx_gpiote_in_event_enable(pin_no, true);

if i do like below it works. i m not sure why it works if i do an uninit and then init 

nrfx_gpiote_in_init(pin_no, &gpio_config, (nrfx_gpiote_evt_handler_t)gpio_evt_cb) 
nrfx_gpiote_in_event_enable(pin_no, true);

nrfx_gpiote_in_uninit(pin_no);

nrfx_gpiote_in_init(pin_no, &gpio_config, (nrfx_gpiote_evt_handler_t)gpio_evt_cb) 
nrfx_gpiote_in_event_enable(pin_no, true);

what could be causing the issue?

Parents Reply Children
No Data
Related