BRT Community

General Category => Discussion - EVE => Topic started by: jctibor on September 06, 2024, 12:32:07 PM

Title: Drawing color issues
Post by: jctibor on September 06, 2024, 12:32:07 PM
Hello BRT comminity,

first of all. let me introduce myself, i am embedded developer of power inverters etc, i am really newbee in diplays developlment. So i am not able to describe this issue, i think that is has some exact describtion. Therefore it is hard to solve this issue. I will show you on the pictures:

(http://pic1.jpg)
(http://pic2.jpg)


This my first example project, this issue comes when i rotate the display view and i solve it by changing PCLK freq (probably was walkaround). In second ones, it doesnt works. Cau you help me please?

My HW:
Riverdi RVT101HVBNWC00-B with EVE4(BT817Q)
Riverdi STM32 dev. board

Lib:
EVE asset builder SDK (from sample app)

Best regards

Title: Re: Drawing color issues
Post by: BRT Community on September 11, 2024, 03:10:39 PM
Hello,

Welcome to the BRT Community,

Could you advise which display settings you use with your display?

Also, could you advise which conversion settings you use in the EVE Asset Builder and which command you use to set up and play your video,

Best Regards, BRT Community

Title: Re: Drawing color issues
Post by: jctibor on September 12, 2024, 08:27:46 AM
Hello,

thank you for reply. i am not sure if it is related with EAB video settings, because as you can see, this effect is also apparent on touch screen calibration dots, which are not user accessible and are (i assume) built in in eve chip.

(http://eab_video.png) (video settings in attachement, it is sample shot on EAB examples)

This is code for playing video, it is borrowed from https://github.com/Bridgetek/EveApps/blob/master/SampleApp/Video/Src/Video.c
void SAMAPP_Video_fromFlashFullScreen()
{
#if defined(EVE_FLASH_AVAILABLE) && defined(FT81X_ENABLE)// FT81X only
    const uint32_t flashSource = 260288;

    if (!FlashHelper_SwitchFullMode(s_pHalContext))
    {
        APP_ERR("SwitchFullMode failed");
        return;
    }
    Draw_Text(s_pHalContext, "Example for: Video display from Flash - full screen ");

    SAMAPP_INFO_START;
    EVE_CoCmd_flashSource(s_pHalContext, flashSource);
    EVE_CoCmd_playVideo(s_pHalContext, OPT_FULLSCREEN | OPT_FLASH | OPT_SOUND | OPT_NOTEAR);

    EVE_Cmd_waitFlush(s_pHalContext); //Video plays after this
    EVE_CoCmd_nop(s_pHalContext);
    EVE_Cmd_waitFlush(s_pHalContext);
    SAMAPP_DELAY_NEXT;
#endif
}


The display settings are as follows:

else if (display == EVE_DISPLAY_WXGA_1280x800_65Hz && freq == 72000000)
{
/*
BT817 known values:
REG_FREQUENCY: 72MHz
Resolution: 1280x800
Refresh rate: 65Hz
*/
#if EVE_HARDCODED_DISPLAY_TIMINGS
if (supportedResolution)
{
config->Width = 1280;
config->Height = 800;
config->HCycle = 1411;
config->HOffset = 120;
config->HSync0 = 0;
config->HSync1 = 100;
config->VCycle = 815;
config->VOffset = 14;
config->VSync0 = 0;
config->VSync1 = 10;
config->PCLK = 1;
config->PCLKFreq = 0x8a1;
}
#endif
config->CSpread = 0;
config->Dither = 0;
config->PCLKPol = 0;
config->OutBitsR = 0;
config->OutBitsG = 0;
config->OutBitsB = 0;
}


PCLKFreq may not be the original value, because as i mentioned in the original post, first time i observe this issue, it helps changing this freq.

If you need more info, please let me know.
Did you ever seen this phenomena on BT817?
Thank you very much.
Regards,
Jiri
Title: Re: Drawing color issues
Post by: jctibor on September 12, 2024, 09:42:38 AM
I SOLVE IT !!

It was caused by "config->PCLKPol = 0;" .. changing it to config->PCLKPol = 1;, it dissappear.

Thank you!
Title: Re: Drawing color issues
Post by: BRT Community on September 16, 2024, 11:44:22 AM
Hi,

Thanks for letting us know and great to hear that you have resolved the issue,

Best Regards, BRT Community