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

GPIOTE in NRF52832

Hi All,

For my project I'm using NRF52832 IC and NRFsdk. I need 2 GPIO external interrupt to get notified.
I'm able to configure both pins and able to see the trigger when both are enabled.
In my case one pin will be always in enabled state and other pin while reading temperature sensor it will be enabled and after read I'm disabling.

When I do enable and disable code returns error.

Here is the code snippet:

if (!nrf_drv_gpiote_is_init()) {
err_code = nrf_drv_gpiote_init();
NRF_LOG_DEBUG("nrf_drv_gpiote_init with code %d", err_code);
//APP_ERROR_CHECK(err_code);
}

On boot always active pin I'm configuring and while reading temperature another pin. When enable another pin I get return as error at "err_code = nrf_drv_gpiote_is_init();" line.

Related