cancel
Showing results for 
Search instead for 
Did you mean: 

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

ASieb.1
Associate

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

2 REPLIES 2
ElPueblo
Associate II

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?

ElPueblo
Associate II

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