I'm trying to solve some issues with embedded software. The code has been flashed on an ESP32-S3-LCD-EV-Board v1.4, and it worked well: everything was displayed fine. Now, I don't have any ESP32-S3-LCD-EV-Board v1.4 and need to use an ESP32-S3-LCD-EV-Board v1.5. I have been trying to solve the issue for some time now and can't figure it out, which is why I am reaching out to this forum. I am not used to forums, so please excuse me if I don't provide everything you need to help me.
I've tried flashing this example: https://github.com/espressif/esp-dev-ki ... mart_panel on my board, and it works fine. I've been recording the logs sent by the ESP while booting. Here are the parts of the logs concerning the display with both software:
Logs of example:
Code: Select all
.[0;32mI (80) bsp_probe: Detect module with 16MB PSRAM.[0m
.[0;32mI (81) bsp_probe: Detect sub_board2 with 480x480 LCD (GC9503), Touch (FT5x06).[0m
.[0;32mI (89) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0.[0m
.[0;32mI (98) bsp_sub_board: Install panel IO.[0m
.[0;32mI (102) lcd_panel.io.3wire_spi: Panel IO create success, version: 1.0.1.[0m
.[0;32mI (109) bsp_sub_board: Initialize RGB panel.[0m
.[0;33mW (1722) lcd_panel.io.3wire_spi: Delete but keep CS line inactive.[0m
.[0;32mI (1742) gc9503: LCD panel create success, version: 3.0.1.[0m
.[0;32mI (1746) bsp_lvgl_port: Create LVGL task.[0m
.[0;32mI (1746) bsp_lvgl_port: Starting LVGL task.[0m
.[0;32mI (1762) bsp_extra_board: BLINK_GPIO setting 4.[0m
.[0;32mI (1762) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0.[0m
.[0;32mI (1770) ES8311: Work in Slave mode.[0m
.[0;32mI (1773) ES7210: Work in Slave mode.[0m
.[0;32mI (1793) ES7210: Enable ES7210_INPUT_MIC1.[0m
.[0;32mI (1794) ES7210: Enable ES7210_INPUT_MIC2.[0m
Code: Select all
.[0;32mI (00:00:00.190) bsp_probe: Detect module with 16MB PSRAM.[0m
.[0;32mI (00:00:00.196) bsp_probe: Detect sub_board2 with 480x480 LCD (GC9503), Touch (FT5x06).[0m
.[0;32mI (00:00:00.205) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0.[0m
.[0;32mI (00:00:00.215) bsp_sub_board: Install panel IO.[0m
.[0;32mI (00:00:00.220) lcd_panel.io.3wire_spi: Panel IO create success, version: 1.0.1.[0m
.[0;32mI (00:00:00.228) bsp_sub_board: Initialize RGB panel.[0m
.[0;33mW (00:00:01.897) lcd_panel.io.3wire_spi: Delete but keep CS line inactive.[0m
D (00:00:01.925) lcd_panel.rgb: new rgb panel(0) @0x3fcaf1b8, num_fbs=2, fb_size=460800, bb0 @0x0, bb1 @0x0, bb_size=0.[0m
D (00:00:01.925) lcd_panel.rgb: fb[0] @0x3c170d40.[0m
D (00:00:01.929) lcd_panel.rgb: fb[1] @0x3c1e1580.[0m
.[0;32mI (00:00:01.934) gc9503: LCD panel create success, version: 3.0.1.[0m
D (00:00:01.941) lcd_panel.rgb: rgb panel(0) start, pclk=16000000Hz.[0m
D (00:00:01.947) lcd_panel.io.i2c: new i2c lcd panel io @0x3fcb0364.[0m
.[0;32mI (00:00:01.955) bsp_lvgl_port: LVGL buffer size: 93KB.[0m
.[0;32mI (00:00:01.962) bsp_lvgl_port: Create LVGL task.[0m
.[0;32mI (00:00:01.965) bsp_lvgl_port: Starting LVGL task.[0m
.[0;33mW (00:00:01.991) S3-LCD-EV-BOARD: This board doesn't support changing the brightness of the LCD.[0m
.[0;32mI (00:00:02.084) APP-GUI: LCD initialization done.[0m
- ```cpp
- #include "esp_log.h"
- #include "bsp/esp32_s3_lcd_ev_board.h"
- #include "lvgl.h"
- #include "ui/ui.h"
- #include "freertos/FreeRTOS.h"
- #include "string.h"
- #include "freertos/task.h"
- #include "freertos/queue.h"
- #include "version.h"
- #include "esp_ota_ops.h"
- #include "esp_sleep.h"
- #include "driver/rtc_io.h"
- #include "soc/rtc.h"
- [...]
- void app_main(void)
- {
- banner();
- #if ENABLE_GUI_TOUCH == 1
- /* Initialize I2C (for touch and audio) */
- bsp_i2c_init();
- #endif
- /* Initialize display and LVGL */
- lv_disp_t * disp = bsp_display_start();
- bsp_display_rotate(disp, LV_DISP_ROT_270);
- /* Turn on display backlight */
- bsp_display_backlight_on();
- /* Add and show objects on display */
- app_lvgl_display();
- ESP_LOGI(TAG, "LCD initialization done.");
- [...]
- }
- ```