-
Notifications
You must be signed in to change notification settings - Fork 440
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
ESP IDF v5 support #314
Comments
Any feedback appreciated. I have had a look and it appears that the PWM backlight support might need to be updated. |
@ammaree You should check Migration guide since there are some breaking changes https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/peripherals.html#lcd |
All the required changes have been made. If I remove the display/GUI component of the project it builds, links and runs reliably.
The changes required I believe, are in the lvgl component.
On 2022/07/02, 14:52, "Sukesh Ashok Kumar" ***@***.******@***.***>> wrote:
@ammaree<https://github.com/ammaree> You should check Migration guide since there are some breaking changes
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/build-system.html
—
Reply to this email directly, view it on GitHub<#314 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAYT7GDVJKI6B6G2WHECXPTVSA3SFANCNFSM5Y2UU3RA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@ammaree |
@kisvegabor
Thanks in anticipation... |
ESP-IDF 5.x is going with a direction using the concept of BSP. There is also a new driver architecture being discussed for lvgl next version here |
Thank for tagging me. I think the best would be to
LVGL v9 will include all the layers to connect LVGL and ESP-IDF by enabling a config in What do you think about it? |
LVGL 8.x is working fine with LovyanGFX driver, so I am fine for now. Hope Espressif populates all the display drivers in their bsp repo. |
Hi, having the same problem, not sure how to interpret the discussion, is there any solution to this issue? |
What display and controller? |
Here is the IDF 5.0 project working with LovyanGFX as the driver for LVGL 8.x LovyanGFX driver details are in the config files under |
Hi, Kind regards, Nicklas |
@nicklasb PlatformIO had a benefit for library integration using the config file. But now with IDF 5.0 onwards, IDF is moving in that direction with https://components.espressif.com/ In the context of LVGL, IDF 5.0 is moving to have BSP (Board Support Package) for devices on the components website. |
@nicklasb ILI9488 => https://components.espressif.com/components/atanisoft/esp_lcd_ili9488 |
It is also about the IDE integration and so on, but thanks for the info on the components! |
Espressif VS Code extension is really good now. Including installing ESP-IDF through the IDE. |
Also, I am not only using ESP-IDF or only Espressif MCU:s for my projects, I am trying to avoid vendor lock-in in all my ventures, if there is a community-driven approach, I try to stay with that as long as possible. |
TBH, Espressif could just as well have supported PlattformIO instead of creating a proprietary and competing platform. |
Not sure which one that is ( I think we are hijacking this issue now :) |
Are you saying that PlatformIO support of all these platforms using ESP-IDF? I guess we are, but it feels like I and many others have totally misunderstood something in that case. |
They integrate a build system to compile using the supported Following from the above link you shared.
Check your |
Ok, but again, the code I am writing is not only going to run on Espressif MCU:s as I carefully avoid vendor lock-in. PlatformIO provides me with a layer between me and the manufacturers, and that is very important to me, and obviously many other PlatformIO users. |
Guess you are using Arduino then which provides this layer using Wire and other standards protocols. This is, if the said microcontroller supports these standard protocols (in short Arduino support). One benefit of PlatformIO => silently downloads framework/sdks when you install a platform in it. Definitely provides convenience. Feel free to open a discussion here, if you want to continue => https://github.com/sukesh-ak/ESP32-TUX/discussions |
Tech comes and goes, there are many exciting platforms besides Arduino and ESP32, and either way I would never write only for any singular tech. I am just saying the same thing again and again, basically, so let's end it here. |
Cool. In the PC world its possible but not that much in the MicroController world because hardware is Several of them support Wire protocol including Raspberry Pi (WiringPi) so some portion of code can be reused. Otherwise, if a controller runs FreeRTOS then a lot of things can be similar. For example, AzureRTOS (known as ThreadX RTOS earlier before MS purchased it) has a FreeRTOS layer which is useful for porting in the case of STM32 controllers, since they have moved to AzureRTOS. Espressif uses FreeRTOS and now there is an Amazon version (after Amazon took over - FAQ). |
If you wan't to end a conversation, you can't make broad comparisons with the "PC World" and tell me where things are at like that. :-) I see no huge issues making MCU project pretty much hardware independent. |
It already exist called Arduino using Wire protocol (like I mentioned earlier). Runs on several controllers already. Hobby projects with single source files have been easy to make it work on different controllers. |
Could we perhaps de-escalate a bit here? I am just stating my goals and ambitions, I am sorry if they offend you, but I am afraid I will keep them regardless. Also, please don't read any attitudes in what I am writing. But I have been developing in anything from assembler to javascript for 35 years now, and code is code, and business is business. And I do know a bit of both. And because of that, perhaps I am ready to #if a bit more than most. |
Chill. You didn't offend me :) Good luck with your projects and I believe |
I think that ESP-IDF V5.x support should be incorporated into LVGL v8.x ASAP. The current lv_port_esp32 repo is already 2 years old and still tied to IDF V4 (and V3) as well as LVGL v7.9 (I think) Considering the growing market share and acceptance of the ESP32 {S?/C?/H?] it will allow many developers to move to LVGL v8.x and IDF v5.x, possibly with optional v4.x support? Personally, the sooner we can have IDF v5 with LVGL v8, the better |
I definitely agree on updating to LVGL v8 and IDF v5, however unfortunately I have no capacity to work on it now. We have a sponsorship program and I'd be happy to give a few hunred USD if someone updates this repo (and maybe lvgl_esp32_drivers too?) to LVGL v8 and IDF v5. Would you be interested in it? |
FYI: They upgraded v5 but didn't release an arduino port. I'm trying to port it now and it's a mess. |
Arduino versions are generated automatically when ESP-IDF is released |
So the mainline supports v5.X and the releases only go up to 4.3 is that correct? |
The docs say it's only upto 4.3 |
Are you talking about this specific example ( |
Apologies, should have been more clear, lv_port_esp32 is (was?) the problem. We have in the mean time changed to use LVGL 8.x (master) with LGFX (master) and that seems to work well. Ultimately the ideal would be latest LVGL with drivers offering:
Most probably LGFX drivers with LVGL? |
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. |
Would be great, if somebody could port it to esp-idf v5 |
Another 10 months later, is there ANY working configuration of LVGL with ESP-IDF v5.1.x or later, preferably v5.2.x? If not, any plans to ever support ESP-IDF version v5.x? |
@ammaree take this as a starting point: https://github.com/mhaberler/ESP32-TUX/commits/additional-platforms/ |
@mhaberler I suppose that @ammaree asked not on how to create an Lvgl version for ESP-IDF 5 port himself. |
I'm not planning to update this repository, however if someone is interested in working on it, let me know. We will release LVGL v9 on January 15, and from v9 we will move all display driver to the LVGL repo directly and I'm more interested in working on that. If you would like to contribute to that, it would be more than welcome. If there are any special IDF v5 consideration, please let me know in an issue in the main LVGL repo. |
I am not sure what you mean with IDF v5 considerations, are you saying that LVGL already supports ESP-IDF? If not, the problem I think is that people doesn't know where to start. |
Oh, maybe there is a fundamental misunderstanding here. So let's start from the beginning:
|
Wow, there certainly is a misunderstanding. And great news! I think that some people end up here on the esp32 port and never leave, they aren't reached by any communication about mainline ESP-IDF support. And this thread might be a bit TLDR. I for example have chosen to work on other aspects of my stuff the last year, and this has been the only place I have seen updates. I guess I could have understand it from something above, however i don't seem to be alone in that. Some proposals then:
|
Which "packages" do you mean exactly? Could you send a link?
Noted, thanks!
I agree, once we will have those 2 PR merged, I will add the banner.
This is what I have in mind as a table of content. Please add anything that seems to be missing.
|
Great!
On the main README on the repo: WRT headings, they look the part, just a small complaint would be about "Links the ESP docs", even though I hesitate, as extrasensory perception sure would be useful in programming some times. :-) |
Ahh, updated here 🙂
Do you still mean in the README? If so, I think once we will have a better ESP-IDF docs on our website, we should link it from the README too. |
LOOKING FOR ESP-IDF 5.x SUPPORT? DO NOT LOOK HERE BUT IN THE MAINLINE LVGL (It has been in there since v8.3, don't be like me and mope around in this repo forever) |
We use GitHub issues for development related discussions.
Please use the forum to ask questions.
Describe the issue
Fail to rebuild app after IDF upgrade
Code to reproduce the issue
Nothing changed from previous working code other than IDF upgrade
Expected Results
Working, error free compile
Actual Results
Various error messages
ESP32 Chip version
ESP32 WROVER
ESP-IDF version
v5 (Master)
Development kit used
ESP-WROVER-DEVKIT v4.1
Development machine OS
MacOS
Compilation warnings/errors (if available)
`
/Users/andremaree/Dropbox/devs/ws/z-repo/lvgl_esp32/lvgl_esp32_drivers/lvgl_tft/esp_lcd_backlight.c:10:10: fatal error: driver/ledc.h: No such file or directory
10 | #include "driver/ledc.h"
/Users/andremaree/Dropbox/devs/ws/z-repo/lvgl_esp32/lvgl_esp32_drivers/lvgl_tft/disp_spi.c:10:10: fatal error: driver/gpio.h: No such file or directory
10 | #include "driver/gpio.h"
/Users/andremaree/Dropbox/devs/ws/z-repo/lvgl_esp32/lvgl_esp32_drivers/lvgl_tft/disp_spi.h:18:10: fatal error: driver/spi_master.h: No such file or directory
18 | #include <driver/spi_master.h>
`
If possible, copy the compilation log into a file and attach it here
The text was updated successfully, but these errors were encountered: