Repository navigation
Let ESP32-S3 boards build with the LVGL display core - #11976
mikeysklar wants to merge 2 commits into
Conversation
Building with CIRCUITPY_DISPLAYIO_LVGL=1 only worked on the P4 and S31. - Link the PPA components and turn on LVGL's PPA draw unit only on chips that have a PPA. - Add LV_CONF_INCLUDE_SIMPLE whenever LVGL is on, not only in the P4 and S31 sections. - Use 64-byte GC blocks when LVGL is on, so heap draw buffers meet LV_DRAW_BUF_ALIGN. The P4 and S31 already do. - Drop the extra initializer in JpegDecoderFast.c. The LVGL displayio_area_t has no next field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Changing the firmware partition requires changing the bootloader and makes an incompatible change. But is S3 compiled with |
|
The ESP-S3 is Qualia with LVGL on, same commit:
With I'm fine with using |
|
I don't think you should turn anything off. -Os is fine though. |
|
How much flash does BLE take? |
|
@mikeysklar I have not done a lot of trying to shrink the espressif builds via ESP-IDF settings as opposed to disabling modules. Could do a little research on that. What does LVGL buy us on Qualia as opposed to classic displayio? Speed? |
|
Best case on the Qualia 720x720 with the LVGL full screen was 2x as fast.
LVGL also leaves about 2 MB less heap after display init. I don't think that trade is worth it on the S3. JPEG already uses the fast decoder, and I can add an esp-dsp FFT for ulab. If we still want it, turning off BLE alone is enough with ESP-IDF doesn't have much left to give:
|
These are fine to disable because there aren't external pins to use them with. I wouldn't disable BLE though because it may still be useful with a display. |
Turn off espcamera, qrio, epaperdisplay, _eve and canio, which have no external pins on this board, and build ESP32-S3 LVGL builds at -Os so the firmware fits the 2 MB app partition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Qualia boards now turn off espcamera, qrio, epaperdisplay, _eve and canio, keeps BLE, and builds with -Os. That leaves 25 kB free. Full-screen LVGL refresh is slower until two follow-up PRs land, then up to 2x faster.
|
What
ESP32-S3 boards can now be built with the LVGL display core turned on.
Why
It only built on the P4 and S31, which have a graphics accelerator the S3 lacks.
LV_CONF_INCLUDE_SIMPLEJpegDecoderFast.cCIRCUITPY_DISPLAYIO_LVGL=1 CIRCUITPY_BLEIO_NATIVE=0 CIRCUITPY_ULAB=0Which way should an S3 board make room: turn modules off, or a larger firmware partition?
Written with Claude Code. Results are build logs and serial output from the board.
🤖 Generated with Claude Code