-
Notifications
You must be signed in to change notification settings - Fork 7k
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
samples: lvgl: enhacements for CI check and mimxrt1060_evkc updates #84458
base: main
Are you sure you want to change the base?
samples: lvgl: enhacements for CI check and mimxrt1060_evkc updates #84458
Conversation
421c52a
to
66537f9
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.
Not against this per se but some thoughts:
- This needs to be split into two commits, one deals with fixing the memory requirement and the other adds a test harness.
- Do not know if it is a usual thing to have a test harness for the samples. I would have thought thats what the tests are for.
while (1) { | ||
if ((count % 100) == 0U) { | ||
sprintf(count_str, "%d", count/100U); | ||
lv_label_set_text(count_label, count_str); | ||
printf("run %d\n", count/100U); |
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.
count is uint32_t
, needs to be %u
I was hoping someone would say that :) I don't really think it adds any value (having the text show up on the console proves literally nothing as to whether the sample actually works and display things correctly), and it unnecessarily clutters the user's console with "unhelpful" messages. It is useful to add tests for checking lvgl works correctly, no doubt about that, but I think it should be done in... tests :) The samples' primary objective should remain to provide to the point code that people can use as a starting point. |
# Enable PXP DMA engine and set rotation angle to 0 degrees. | ||
# This allows us to verify the DMA driver functions without altering | ||
# the output image |
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.
the comment here also seems to imply this conf is really only here for testing purposes? ("verify the DMA driver"??). This doesn't sound right. Also, maybe CONFIG_MCUX_ELCDIF_PXP should simply default to Y at the board/soc level when DMA is enabled?
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.
this is reused from former mimxrt1060_evk board, CONFIG_MCUX_ELCDIF_PXP consumes a lot, we do not want it enabled by default if user do not use display.
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.
Not enabling it by default is okay, but the comment needs to be changed.
I'd honestly just drop it - why would you enable DMA and PXP related settings if not to use/test them?
# Copyright 2023 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Enable PXP DMA engine and set rotation angle to 0 degrees. |
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.
where is rotation angle set to 0?
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.
@kartben this is reused from former platform, in PXP engine we can rotate the image by 90/180/270 degree, so this is default setting.
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.
This still needs to be addressed, imo. The comment is not needed if it is a default. It tends to confuse anyone who reads it, because nowhere is there any config about rotation in here.
without this fix, the build will fail by twister #84456 , as the
|
66537f9
to
dfaf544
Compare
Hmm ok, the build issue is annoying. Either remove the console harness completely or go with this change then. |
dfaf544
to
48d8493
Compare
@faxe1008 thanks, I have split the PR into two commits, and update the commit message. Please check. |
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.
For the 48d8493be4ffd7ba91deb8dd2496f8f7bad7c51f the commit message needs adjusting:
- The board is mimxrt1060_evkc and this specific commit does not fix tests: samples/subsys/display/lvgl/samples: HARNESS:Console:no regex patterns configured. #84456
# Copyright 2023 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Enable PXP DMA engine and set rotation angle to 0 degrees. |
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.
This still needs to be addressed, imo. The comment is not needed if it is a default. It tends to confuse anyone who reads it, because nowhere is there any config about rotation in here.
# Enable PXP DMA engine and set rotation angle to 0 degrees. | ||
# This allows us to verify the DMA driver functions without altering | ||
# the output image |
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.
Not enabling it by default is okay, but the comment needs to be changed.
I'd honestly just drop it - why would you enable DMA and PXP related settings if not to use/test them?
48d8493
to
dff399b
Compare
@faxe1008 , thanks for reminding, I miss your former change request, and update now. please review again. sorry for troubles. and thanks again. |
FWIW I agree with @faxe1008 of removing the console harness altogether |
There is still the
The PR does provide some output, but I feel like it does not provide any verification besides "the LVGL event loop has run at least once". The changes themselves look fine now. Not gonna +1 for now, but I will remove my nack. |
Changes look good, but unsure if the overall distinction between samples and tests is correctly applied here.
@faxe1008 @kartben , the ideas are:
|
add console output for sanity check in CI. this will make twister build pass with harness: console fixes: zephyrproject-rtos#84456 Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
unify the configs and remove platform_allow as possible Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
add mipi and lcd_if tag for NXP platforms Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
dff399b
to
3324962
Compare
fix runtime memory issue on mimxrt1060_evkc
also add regx support for this sample
fixes: #84456