Skip to content

LVGL 9 doesn't use LV_MEM_CUSTOM or LV_ENABLE_GC (BSP-714) #635

@mattmatt206

Description

@mattmatt206

Board

ESP32S3-WROOM1-N16R8 Custom Board

Hardware Description

LCD RGB565 480x854

IDE Name

VSCode

Operating System

Windows 11

Description

in /lvgl9/esp_lvgl_port.c
function lvgl_port_task_deinit

lv_deinit is only called for the following
#if LV_ENABLE_GC || !LV_MEM_CUSTOM

Neither of which is in LVGL9

I think it should be
#if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN

Sketch

esp_err_t test_dev_lcd_lvgl_deinit(void)
{
    esp_err_t ret = ESP_OK;

    // Remove display from LVGL
    if (disp != NULL) {
        ret = lvgl_port_remove_disp(disp);
        ESP_RETURN_ON_ERROR(ret, TAG, "Failed to remove display from LVGL");
        disp = NULL;
    }

    ESP_ERROR_CHECK(esp_lcd_panel_del(panel_handle));
    panel_handle = NULL;

    // Deinitialize LVGL port
    ret = lvgl_port_deinit();
    ESP_RETURN_ON_ERROR(ret, TAG, "Failed to deinitialize LVGL port");

    return ESP_OK;
}

void deinit()
{
    ESP_ERROR_CHECK(lvgl_port_stop());
    vTaskDelay(pdMS_TO_TICKS(100));
    ESP_ERROR_CHECK(test_dev_lcd_lvgl_deinit());
}

Other Steps to Reproduce

No response

I have checked existing issues, README.md and ESP32 Forum

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions