STM32F746-DISCO MXCUBE touch not working

I have stm32F746-disco example running in cubeIDE successfully. The example does not use an IOC to setup peripherals.

Now I am trying to use cubeMX to create a new stm32F746-disco project with IOC file.

I am displaying the ui on the screen properly, but the touch in not working.

I am not sure if I am initializing something incorrectly in cubeMX and not sure if I need to call touch_init as the example uses?

lv_init(); tft_init(); touchpad_init(); ui_init();Preformatted text``

Not sure how this all works yet, but I do see a callback to read the touchpad:

/** Function pointer to read input device data.*/
    lv_indev_read_cb_t read_cb;

I would think this is processed from
` lv_task_handler();`

Not sure why it read_cb is not being processed as  lv_task_handler(); is being called.?

I got it to work.

I needed to set:

lv_tick_set_cb(HAL_GetTick);

after lv_init call in main.

Not sure why this is not used in the example code, but in the cubeMX project it appears to be needed.