How to install IDF and include LVGL?

bosnianbeast
Posts: 1
Joined: Thu Dec 21, 2023 1:50 pm

How to install IDF and include LVGL?

Postby bosnianbeast » Thu Dec 21, 2023 2:04 pm

ESP-IDF installation:

I have tried:

Download IDF installation from https://dl.espressif.com/dl/esp-idf/ and install it. Problem: fails to add paths when it runs powershell and cmd at the end of installation. I add them manually. Next problem is that it can't find any compilers. I go to idf git repo and run install.bat and export.bat. I successfully create a project using idf command line. When I try to build I get configuration success and build success. Then I run command to flash (from cmd) and get and error that the recognized chip is ESP32C3 not ESP32. When I try to change the target configuration using idf.py menuconfig, I get an error "Access violation" for some file in CMakeFiles.

Checktout git repo, run install.bat and export.bat manually, create project, build and when I flash I get the same error. Still not possible to run menuconfig.

Install vscode extension and let it download and install idf by itself. Same issue.

PlatformIO - this was the only successful option to flash. However, I add lvgl through libraries menu but and it compiles with some tweaks but it gives a lot of warnings saying that lv_conf has not been found.

I checked out this example https://github.com/lvgl/lv_platformio. Problem with this one is that it doesn't see SDL driver. I installed MSYS and added bin to path but it still gives the same error on compilation: fatal error: SDL2/SDL.h: No such file or directory.

I managed to set up espressif idf and ide sometime last year and I remember that it was painful then also. Why is this so hard? Can someone make a tutorial with these errors covered so that we don't have to go through the same frustration every time?

Who is online

Users browsing this forum: Bing [Bot] and 103 guests