Skip to main content
ASieb.1
Visitor II
March 13, 2021
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

  • March 13, 2021
  • 2 replies
  • 1088 views

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
September 4, 2023

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
September 6, 2023

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