cancel
Showing results for 
Search instead for 
Did you mean: 

Graph from GitHub/Touchgfx Open Repository: No Buffer Allocated

Zwei.9
Associate III

0690X00000AAFOjQAP.bmpWhen I run it,i get this dialog.

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

Hi @ASar​,

It says so in the popup. "No buffer allocated". Try inserting this into your view:

#define CANVAS_BUFFER_SIZE (3600)
static uint8_t canvasBuffer[CANVAS_BUFFER_SIZE];
CanvasWidgetRenderer::setupBuffer(canvasBuffer, CANVAS_BUFFER_SIZE);

/Martin

View solution in original post

3 REPLIES 3
Martin KJELDSEN
Chief III

Hi @ASar​,

It says so in the popup. "No buffer allocated". Try inserting this into your view:

#define CANVAS_BUFFER_SIZE (3600)
static uint8_t canvasBuffer[CANVAS_BUFFER_SIZE];
CanvasWidgetRenderer::setupBuffer(canvasBuffer, CANVAS_BUFFER_SIZE);

/Martin

Zwei.9
Associate III

Thank you very much!

Martin KJELDSEN
Chief III

You're welcome :)