lvgl/lv_port_stm32f469_disco

Unable to integrate LVGL port for STM32F469i DISCO into an STM32 Project

praman-matter opened this issue · 17 comments

I tried using the port as suggested in :
https://blog.lvgl.io/2017-07-15/stm32f429_disco_port

But it seems to create the port as a separate directory/project with its own main.c.

So how to use this and verify graphics? The path is not visible to my STM32F's main.c. I cannot invoke init for tft from my main.c..

The main.c in the port remains unexecutabe - so it seems the make file also needs to be changed?

Could you please guide me ?

Thanks!
Pavitra

Hi,

This project wasn't updated for a while however it should work as it is. Have you used SWSTM32 (Ac6) IDE to open it?

These are the kinds of errors-arm-none-eabi-gcc "../src/stm32f4xx_it.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32 -DSTM32F4 -DSTM32F469NIHx -DDEBUG -DSTM32F469xx -DUSE_HAL_DRIVER -c -I"/Volumes/GoogleDrive/My Drive/STM/Projects/LVGL_test/lv_port_stm32f469_disco_sw4stm32-master" -I"/Volumes/GoogleDrive/My Drive/STM/Projects/LVGL_test/lv_port_stm32f469_disco_sw4stm32-master/inc" -I"/Volumes/GoogleDrive/My Drive/STM/Projects/LVGL_test/lv_port_stm32f469_disco_sw4stm32-master/Utilities/STM32F469I-Discovery" -I"/Volumes/GoogleDrive/My Drive/STM/Projects/LVGL_test/lv_port_stm32f469_disco_sw4stm32-master/HAL_Driver/Inc/Legacy" -I"/Volumes/GoogleDrive/My Drive/STM/Projects/LVGL_test/lv_port_stm32f469_disco_sw4stm32-master/HAL_Driver/Inc" -I"/Volumes/GoogleDrive/My Drive/STM/Projects/LVGL_test/lv_port_stm32f469_disco_sw4stm32-master/CMSIS/core" -I"/Volumes/GoogleDrive/My Drive/STM/Projects/LVGL_test/lv_port_stm32f469_disco_sw4stm32-master/CMSIS/device" -I"/Volumes/GoogleDrive/My Drive/STM/Projects/LVGL_test/lv_port_stm32f469_disco_sw4stm32-master" -O3 -ffunction-sections -Wall -fstack-usage -MMD -MP -MF"src/stm32f4xx_it.d" -MT"src/stm32f4xx_it.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "src/stm32f4xx_it.o"
../src/stm32f4xx_it.c:41:10: fatal error: lvgl/lv_hal/lv_hal_tick.h: No such file or directory
41 | #include "lvgl/lv_hal/lv_hal_tick.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [src/subdir.mk:30: src/stm32f4xx_it.o] Error 1
"make all" terminated with exit code 2. Build might be incomplete.

Have you also cloned/updated submodules?

How did you download it from the GitHub repo?

Ah; I see. Downloading as a ZIP won't work as we use submodules; you'll need to use git clone --recursive.

OK done with git clone -- reursive. It appears as a project within my project. So there are two main.c. How to invoke tft_init() from my main.c

You should be able to clone recursively and then just import the project by itself. It shouldn't be within your own project.

It wasn't migrated to CubeIDE, but it is a proper SW4STM32 (the previous version) project so it should be able to be imported. 😕

stale commented

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.