StoreProhibited exception in lv_timer.c

Hi!
Thank you for your answers.

I found the solution.
The problem was that with ESP32 (I’m using ESP32-WROVER) we can’t declare a global variable in PSRAM.

This is the guideline to implement LVGL with ESP32 with PSRAM :

1/ In Arduino IDE : Check that in menu tools > PSRAM is enabled

2/ declare a global variable lv_color_t* disp_draw_buf1;

3/ In setup()
disp_draw_buf1 = (lv_color_t *) ps_malloc (screenWidth * screenHeight / 10 * sizeof (lv_color_t));
lv_disp_draw_buf_init(&draw_buf, disp_draw_buf1, NULL, screenWidth * screenHeight / 10);

1 Like