How to use TE signal as display refrash trigger in LVGL9

What MCU/Processor/Board and compiler are you using?

ESP32S3

What LVGL version are you using?

LVGL9.1

What do you want to achieve?

use TE signal as display refrash trigger

What have you tried so far?

I try adding lv_display_delete_refr_timer(disp) in lv_port_disp_init function, than call _lv_display_refr_timer(NULL) in TE call back function.
I also try adding _lv_display_refr_timer(NULL) in the main loop but it crash in my ESP32S3 dev board。

Code to reproduce

  /*Delete the original display refresh timer*/
  lv_disp_t * disp = lv_disp_get_default();
  lv_display_delete_refr_timer(disp)

  while(1) {
      /* Periodically call the lv_task handler.
       * It could be done in a timer interrupt or an OS task too.*/
      lv_timer_handler();
      usleep(5 * 1000);

      /*Call this anywhere you want to refresh the dirty areas*/
     _lv_display_refr_timer(NULL);
  }

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.