Skip to main content
ASieb.1
Visitor II
Mar 13, 2021 11:18 AM UTC
Question

I am trying to use The Flexcolor with Cache. GUIDRV_FlexColor_SetFunc(pDevice, &PortAPI, GUIDRV_FLEXCOLOR_F66709, GUIDRV_FLEXCOLOR_M16C0B8); // without cache, works ...GUIDRV_FLEXCOLOR_M16C1B8); // with cache does not work

Is it necessary to set up the cache somehow? If so, how do I do this?

This topic has been closed for replies.

2 replies

Associate II
Sep 4, 2023 8:18 AM UTC

It's a shot in the dark after two years, but.. did you manage to make it work with GUIDRV_FLEXCOLOR_M16C1B8? I have the same issue, when selecting GUIDRV_FLEXCOLOR_M16C1B8 the screen gets all messed up.

Should I initialize the cache somewhere?

Associate II
Sep 6, 2023 7:59 AM UTC

Oh well, In case another one stumbles upon this thread while searching for answers,  for me the solution was to change GUI_NUMBYTES to allocate enough memory to include the cache. So you have to include 500B for the driver to work, the size of the line buffer (LCD_XSIZE × ((BitsPerPixel + 7) ÷ 8)) and the size of the cache (LCD_XSIZE × LCD_YSIZE × BytesPerPixel)

 

Hope this helps someone