# \[ESP32-P4\] DSI display and SquareLine Studio

**URL:** <http://forum.squareline.io/t/esp32-p4-dsi-display-and-squareline-studio/6139>\
**Category:** How to\
**Created:** [October 9, 2025, 10:26am UTC](http://forum.squareline.io/t/esp32-p4-dsi-display-and-squareline-studio/6139 "2025-10-09T10:26:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitix](http://forum.squareline.io/letter_avatar_proxy/v4/letter/d/779978/32.png) [@Digitix](http://forum.squareline.io/u/Digitix)\
**Post date:** [October 9, 2025, 10:26am UTC](http://forum.squareline.io/t/esp32-p4-dsi-display-and-squareline-studio/6139/1 "2025-10-09T10:26:48Z")

</div>

Hello

I have used SquareLine Studio v1.53 to generated the C code but I can’t make it work on a ESP32- **P4** with DSI display bus, although the display driver and lvgl initialization works.  
I’m getting a black screen.

**Question** :  
SquareLine generated the code for lvgl v9.1 (settings).  
Does that code work (is compatible) with Arduino library lvgl v9.3?

I’m asking this because [Waveshare](https://www.waveshare.com/esp32-p4-module-dev-kit.htm?sku=30844) provides only v9.3 of the lib for this display.

It’s very strange, because the code compiles without error.  
It only freezes at that line:

```auto
ui_init();

```

Thank you

---

<div class="post-metadata">

**Author:** ![Digitix](http://forum.squareline.io/letter_avatar_proxy/v4/letter/d/779978/32.png) [@Digitix](http://forum.squareline.io/u/Digitix)\
**Post date:** [October 9, 2025, 10:30am UTC](http://forum.squareline.io/t/esp32-p4-dsi-display-and-squareline-studio/6139/2 "2025-10-09T10:30:38Z")

</div>

I solved the issue in the meantime by increasing this value in the lvgl config file:

#define LV\_MEM\_SIZE (256 \* 1024U)
