From 607c7a2b8508d2b189d8a6baa82e4a581c7e889e Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Tue, 12 Jan 2021 14:21:37 +0100 Subject: [PATCH] DMA: len must be less than 32767 --- src/hasp_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hasp_gui.cpp b/src/hasp_gui.cpp index 85b8b30a..0f5bc274 100644 --- a/src/hasp_gui.cpp +++ b/src/hasp_gui.cpp @@ -278,7 +278,8 @@ void guiSetup() #ifdef USE_DMA_TO_TFT static lv_color_t *guiVdbBuffer1, *guiVdbBuffer2 = NULL; - size_t guiVDBsize = 4 * 1024u; // 16 KBytes * 2 + // DMA: len must be less than 32767 + size_t guiVDBsize = 15 * 1024u; // 15 KBytes * 2 guiVdbBuffer1 = (lv_color_t *)heap_caps_malloc(sizeof(lv_color_t) * guiVDBsize, MALLOC_CAP_DMA); lv_disp_buf_init(&disp_buf, guiVdbBuffer1, NULL, guiVDBsize); // guiVdbBuffer2 = (lv_color_t *)heap_caps_malloc(sizeof(lv_color_t) * guiVDBsize, MALLOC_CAP_DMA);