Description
I have a 4D Board and would like to run lvgl on it.
Looking for any hints in what direction I could invesigate further.
What MCU/Processor/Board and compiler are you using?
- CPU : ESP32-S3R8
- Board : 4D GEN4-ESP32-70CT-CLB - https://resources.4dsystems.com.au/datasheets/esp32/gen4-esp32-RGB/
- backlight : ETA1611S2G
- touch controler : Focaltech FT5446
- RTC : NXP PCF8563T/5
- SPI flash : Giga-Devices GD25Q127C, 16MB
What do you want to achieve?
Run LGVL Demo on board the same way as here: 4D Systems gen4-ESP32-50CT - board certification review | LVGL’s Blog
What have you tried so far?
- ESP-IDF 4.4.7 , could compile and run basic samples.
- used the steps here GitHub - lvgl/lv_port_esp32: LVGL ported to ESP32 including various display and touchpad drivers
- Compiled everything for esp32 , could not flash it due to chip imcompatibility
- Compilation fails once the target is switched to esp32s3
Code to reproduce
Add the relevant code snippets here.
The code block(s) should be between ```c
and ```
tags:
n file included from /media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.h:17,
from /media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.c:10:
/media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.c: In function 'lvgl_driver_init':
/media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_spi_conf.h:68:22: error: 'HSPI_HOST' undeclared (first use in this function); did you mean 'SPI3_HOST'?
#define TFT_SPI_HOST HSPI_HOST
^~~~~~~~~
/media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.c:111:26: note: in expansion of macro 'TFT_SPI_HOST'
lvgl_spi_driver_init(TFT_SPI_HOST,
^~~~~~~~~~~~
/media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_spi_conf.h:68:22: note: each undeclared identifier is reported only once for each function it appears in
#define TFT_SPI_HOST HSPI_HOST
^~~~~~~~~
/media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.c:111:26: note: in expansion of macro 'TFT_SPI_HOST'
lvgl_spi_driver_init(TFT_SPI_HOST,
^~~~~~~~~~~~
In file included from /media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.c:11:
/media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.c: In function 'lvgl_spi_driver_init':
/media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.c:219:51: error: 'spi_names' undeclared (first use in this function); did you mean 'spi_dev_s'?
ESP_LOGI(TAG, "Configuring SPI host %s (%d)", spi_names[host], host);
^~~~~~~~~
/media/developer/dev1/work/st/_esp/esp_idf/esp-idf/components/log/include/esp_log.h:421:137: note: in definition of macro 'ESP_LOG_LEVEL'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~~
/media/developer/dev1/work/st/_esp/esp_idf/esp-idf/components/log/include/esp_log.h:353:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
/media/developer/dev1/work/st/_esp/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_helpers.c:219:5: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "Configuring SPI host %s (%d)", spi_names[host], host);
^~~~~~~~
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.