-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NRF52 SDK 15.0 usable input Interrupts limited to 1 by NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS #10949
Comments
@anton-veretenenko Able to make a PR to fix? |
Not sure how to do it correctly yet. Limit can be set as high as 32 available GPIOs but then it just reserves memory for all pins even when not used. |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
As there has been no update on this for 18 months I am going to close this. Please re-open if this is still an issue. |
Description
Target
NRF5x
Version
mbed-os rev #7482462434d5 (tags: latest, mbed-os-5.13.0)
NRF SDK 15.0
After updating to mbed 5.13 I have lost all my input interrupts except 1.
Currently only 1 pin can be used for input interrupt with InterruptIn with default config.
nrfx_gpiote.c driver checks for NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS in "channel_port_alloc" function.
NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS is set to 1 by sd_config.h for target.
Example
For btn2 "nrfx_gpiote_in_init" in nrfx_gpiote.c will return NRFX_ERROR_NO_MEM leaving this interrupt not initialized without any error message.
Making custom target with
resolves this issue with higher limit set to 8.
Should we think about vendor sdk when working with mbed?
Additional resources
https://devzone.nordicsemi.com/f/nordic-q-a/34882/wrong-configuration-for-ble_app_hrs_freertos-example-in-sdk-15-0/134040
Issue request type
The text was updated successfully, but these errors were encountered: