LVGL Works only in debug mode

Description

LVGL Works only in debug mode

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

I am using nrf52840, Segger embedded studio, LVGL 7.11, ST7789 240X240 LCD, J Link debugger

What do you want to achieve?

I want to be able to successfully flush the UI onto the display when I use build and run mode, but it happens only in debug mode.