-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Improve STM32H7B3I DK configuration to run LVGL #68254
Improve STM32H7B3I DK configuration to run LVGL #68254
Conversation
7acc510
to
c10d188
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CharlesDias for this contribution.
Please update documentation as well, otherwise it is fine to me.
As a side note, I'd like we can make this less board specific and move whatever is possible to soc/arm/st_stm32/stm32h7
, but that can be done in a next step. Having this part of V3.6 would already be a good deal.
Dear @erwango, I saw that the job **Run tests with twister / twister-build (1) (pull_request_target) ** is failing because of some functions that are declared but not used. Could you give me some tip? Thank you.
|
Dear @erwango, could you clarify which documentation part I have to update? Thank you! |
https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/arm/stm32h7b3i_dk/doc/index.rst Here is an example https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/arm/stm32f746g_disco/doc/index.rst |
I'd suggest asking in discord Infrastructure channel. It should be possible not enabling this option when compiling external libraries. This is likely what is done when compiling TF-M. |
c10d188
to
3e8f1c5
Compare
d39f396
to
40d2111
Compare
Dear @erwango and @ajarmouni-st, I updated the documentation. Let me know if I need to do something else. Also, I posted the issue related to "Run tests with twister / twister-build (1) (pull_request_target)" on discord Infrastructure channel. Thanks! |
Related to the CI job that failed, I verified that the call to the lv_gpu_stm32_dma2d_wait_cb and lv_draw_stm32_dma2d_img functions were commented out on zephyrproject-rtos/lvgl@7cfca5d, and the _lv_draw_stm32_dma2d_copy_buffer is never called. In this case, those functions are not called anymore. Also, I ran the console commands: grep -r --include=*.{c,h} --include=CMakeLists.txt "_lv_draw_stm32_dma2d_copy_buffer" . Within the Zephyr project, and no modules, drivers, etc., call these functions. Should these functions be removed? |
I opened this PR (zephyrproject-rtos/lvgl#50) to remove the unused functions. |
If this is the actual fix, it has to be fixed in upstream lvgl first. |
The lvgl/lvgl#5561 has been merged into the upstream LVGL project, but not yet into https://github.com/zephyrproject-rtos/lvgl. Will the zephyrproject-rtos/lvgl repository only be updated when a new LVGL version becomes available? Thanks. |
@CharlesDias yes as soon as 8.3.12 is released we will update our fork. I would advise against tracking unreleased changes if the fix is not mission critical. |
40d2111
to
a23570f
Compare
Solved conflicts. |
a23570f
to
4579b38
Compare
@CharlesDias Great news, there will most likely be a LVGL release 8.4 that incorporates your fixes on 17 of March :^). Will follow up with a sync PR on our fork asap. Would love to see this one get merged. |
4579b38
to
13a1202
Compare
@CharlesDias What's the status of this PR ? I don't see CI errors anymore but LVGL fix is apparently not yet merged. |
@erwango, on my local build, the warnings still exist. I don't know why the CI doesn't catch them anymore. I tested with |
Ok, let's wait the warning to be fixed to be on the safe side. |
@CharlesDias Yesterday 8.4.0 was released. I opened PRs in the module and the main repo. Feel free to also check that your changes still work as intended :^) |
Hi, @faxe1008. I tested using the #70470 and still works! And the warnings disappeared. :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CharlesDias the update of the module was just merged. Noticed the thing with the copyright, but this also provides you with an opportunity to retrigger CI :^)
@@ -0,0 +1,9 @@ | |||
# | |||
# Copyright 2023 BrainCo Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: copied the Copyright :^)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks!
Update Kconfig to improve LVGL Demo performance. - enable ICache, DCache, and cache management. - enable Chrom-ART. - enable double frame buffer and full refresh. - set bits per pixel to 16. Signed-off-by: Charles Dias <[email protected]>
13a1202
to
8cf531b
Compare
Using the default configuration, the FPS range is 12 to 17, while CPU usage often reaches maximum capacity.
document_5026149297339499817.mp4
After updating the defconfig, it was possible to keep the 33 FSP with less CPU usage.
document_5026149297339499816.mp4