New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation errors in esp_helpers.c #193
Comments
Same problem |
Anything about this error? |
ESP32 and ESP32-S3 have different SPI names for setup. HSPI and VSPI is for ESP32. |
Thanks @paranormal-programmer to walk me into the right path. I manage to make the build successfully up to the latest version of LVGL. I have another question, as I'm trying to use the drivers on lv_micripython as modules so they shoud be build as mpy for my board, I need to generate bindings using gen_mpy.py or any other tool if available. I have try for the last two weeks, trying everything on my mind. even asking chatgpt. But i haven't manage to do it. This Probably its not the mean to ask, but any help in this, would be appreciated. Thanks in advance. |
I have two problem about compile the esp_helpers.c,
1、I think it is not support the esp32-s3, because I find there are not esp32-s3 in line 200 to /* Initialize spi bus master */
2、what compiler should I choose? (I am not using the windows-msvc-x64)
In file included from ../components/lvgl_esp32_drivers/lvgl_helpers.h:17, from ../components/lvgl_esp32_drivers/lvgl_helpers.c:10: ../components/lvgl_esp32_drivers/lvgl_helpers.c: In function 'lvgl_driver_init': ../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 ^~~~~~~~~ ../components/lvgl_esp32_drivers/lvgl_helpers.c:111:26: note: in expansion of macro 'TFT_SPI_HOST' lvgl_spi_driver_init(TFT_SPI_HOST, ^~~~~~~~~~~~ ../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 ^~~~~~~~~ ../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 d:\software\esp-idf\tools\xtensa-esp32s3-elf\esp-2021r2-patch2-8.4.0\xtensa-esp32s3-elf\xtensa-esp32s3-elf\sys-include\sys\reent.h:503, from D:/software/ESP-IDF/esp-idf/components/newlib/platform_include/sys/reent.h:17, from d:\software\esp-idf\tools\xtensa-esp32s3-elf\esp-2021r2-patch2-8.4.0\xtensa-esp32s3-elf\xtensa-esp32s3-elf\sys-include\string.h:11, from ../components/lvgl/src/lv_hal/../lv_misc/lv_area.h:17, from ../components/lvgl/src/lv_hal/lv_hal_disp.h:22, from ../components/lvgl/src/lv_hal/lv_hal.h:16, from ../components/lvgl/lvgl.h:30, from ../components/lvgl_esp32_drivers/lvgl_tft/disp_driver.h:16, from ../components/lvgl_esp32_drivers/lvgl_helpers.h:18, from ../components/lvgl_esp32_drivers/lvgl_helpers.c:10: ../components/lvgl_esp32_drivers/lvgl_helpers.c: In function 'lvgl_spi_driver_init': ../components/lvgl_esp32_drivers/lvgl_helpers.c:218:13: error: 'SPI_HOST' undeclared (first use in this function); did you mean 'SPI3_HOST'? assert((SPI_HOST <= host) && (HSPI_HOST >= host)); ^~~~~~~~ ../components/lvgl_esp32_drivers/lvgl_helpers.c:218:35: error: 'HSPI_HOST' undeclared (first use in this function); did you mean 'SPI3_HOST'? assert((SPI_HOST <= host) && (HSPI_HOST >= host)); ^~~~~~~~~ ninja: build stopped: subcommand failed. 终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。
The text was updated successfully, but these errors were encountered: