cancel
Showing results for 
Search instead for 
Did you mean: 

Flickering problem with EDT display in portrait mode

mids400
Associate III

Hello everyone,

I have changed the display mode of my project to portrait, so I have made many changes to display all the elements in the right way. Actually, I have a lot of screens, containers, list layouts, etc., so it is a big project.

Unfortunately I now have flickering problem with only three screens that use the list layout in a scrolable container. I have tried everything to rid this issue but no way. The flickering seems to be as if it is synchronised with the ticks of the seconds counter, and I have noticed this because I have a time element on the screen!

The point is that everything seems to be correct and compatible (TouchGFX content and source code content).

EDT Display has a template board setup for Touchgfx but it does not generate an .ioc file to see if there is an issue with the frequency for example, but the question is it should not be because it works fine in landscape mode, right?

Has anyone had such an issue before? Also I am trying since 3 day and I am completely confused right now.

Best wishes

Mahdi

10 REPLIES 10
Smartembedded
Associate III

Hi mids400,

At landscape or portrait mode the display will be driven at the same frequency with same X,Y size, as the framework and tools handles the rotation.

Please sent me a PM with the part number, designer, TPA version and I will look into it.

Could you provide a video of it ?

Best regards,

Smartembedded.

Hi @Smartembedded,

Thanks for your reply!

First of all, let me say that I have found the reason of this problem and I could get rid of it, but the point that I don't understand is why?

Let me explain briefly, i am using a container as background for all the screens and this container uses an image with same diemensions of the display in portrait mode. So I removed the image and replaced it with a box.

Like this:

mids400_0-1696063281526.png

I have used this image before and it caused the flickering problem:

mids400_1-1696063480097.png

Do you have any idea about this? it's very strange behaviour..

Regards,

Mahdi

MM..1
Chief II

Try shw here your time element code or perfect model tick and screen tick codes...

Hi @MM..1 ,

Did you read my last answer?

Ofcourse and i dont see any lines of code. You ask solution, but no information reported. Flicker is based on bad using code...

Hi @MM..1,

You know the project includes more than 10 screens and each one has more than 1000 lines of source code. So, which code do you need to check?
The time element received as a telegram from external control Linux system, additionally some functionality I have not implemented myself.

We are speaking about a project that was working fine in landscape mode but now in portrait mode not, while both are using the same frequency and x-y size.

I ask only tick functions , when you know what handletick function is.

Flickers is based on many factors. Primary model::tick and info about your RTOS tasks is helpful, but this is your trouble , if you dont require solutions ...

Secondary check your screens and model codes never use haldelay or some other delay in code...

Hi,

I recall that in earlier versions of the designer you allways needed to start with a picture or a box to fill the entire background on a screen. Otherwise the framebuffer was not blank and could show random pixels and flickering.On the more recent versions this is done automatically behind the scenes on a new screen, but might not be the case for a custom container. I don't know if that could be the reason, but also depends what kind of flickering or pattern you observe.

@Smartembedded,

Could be actually this a reason because i am using the version 4.7.0 and the actuell version i think 4.21. 

Then I need maybe to migrate my project to the new version.