removed debug_printf(“!”); and everything works just fine, as it turns out my function was taking too much time and interfering with interrupt handler.
removed debug_printf(“!”); and everything works just fine, as it turns out my function was taking too much time and interfering with interrupt handler.