
So I first tried to feed the wdt with esp_task_wdt_feed() function. I called it in the beginning of task function, and then called it in while loop. But the result was same.
Then I tried calling vTaskDelay (for 1msec) at the end of loop. But still same.
Lastly I tried calling taskYIELD macro at the end of loop. Still same.
As I said before, if I remove the ble init functions in app_main, the warning disappears. That's why I wonder whether esp_ble_gatts_app_register function causes something.