Hi Expert,
At my nRF51 platform, I opened two GPIOTE users one of which is used to handle an external sensor interrupt. After invoking app_gpiote_user_register(&sensor_gpiote_user_id, low_to_high_bitmask, high_to_low_bitmask, sensor_gpiote_event_handler), I had to add my code logic at sensor_gpiote_event_handler callback, right? But my issue is triggered here when I try to read sensor data via TWI in this callback. Through deep debugging, I found the root casue is from the calling routine of sd_ppi_channel_assign in it. This API would never be returned, so the system hung there...
But if I do some trick to start a timer at sensor_gpiote_event_handler instead, then it will be OK to read sensor data at timer's timeout handler. it's weird.
AFAIK, GPIOTE_Handler shoule have the highest priority for application, are there some clues shared to me? Thanks a lot!