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

NRF_ERROR_NO_MEM on nrfx_gpiote_in_init

When attempting to initiate GPIOTE pins, I get an NRF_ERROR_NO_MEM on the 5th pin. I saw reference to there being a maximum of 4 high accuracy channels but I am attempting to initiate with low accuracy.

// button inputs
nrfx_gpiote_in_config_t config = NRFX_GPIOTE_CONFIG_IN_SENSE_TOGGLE(false);
config.pull = NRF_GPIO_PIN_PULLDOWN;

for(int i = 0; i < ATPALDigitalInputMaxNumberInputs; i++) {
    NRF_LOG_INFO("pin %d", m_hardwareCustomisation->digital.inputs.buttonMapping[i]);
    err_code = nrfx_gpiote_in_init(m_hardwareCustomisation->digital.inputs.buttonMapping[i], &config, gpiote_event_handler);
    APP_ERROR_CHECK(err_code);
}

<info> app: pin 6
<info> app: pin 7
<info> app: pin 8
<info> app: pin 9
<info> app: pin 10
<error> app: ERROR 4 [NRF_ERROR_NO_MEM] at /Users/nick/Documents/Repos/AirTurnFirmwareV2/src/ATPAL_Nordic.c:1139
PC at: 0x00027F0D
<error> app: End of error report

Parents Reply Children
No Data
Related