Closed sonictruth closed 5 months ago
The fix was to set max_transfer_sz:
const spi_bus_config_t spi_bus_config = {
.max_transfer_sz = LCD_WIDTH * LCD_HEIGHT,
in .pio/libdeps/esp32-2432S032C/esp32_smartdisplay/src/lvgl_st7789.c ( https://github.com/rzeldent/esp32-smartdisplay/blob/release/2.0.3/src/lvgl_st7789.c#L36 )
Retested (without adding a max_transfer_sz) and works. Strange, the max_transfer_sz is never defined in SPI. Are using a large pixel buffer?
Anyone else with similar problems?
Anyone else with similar problems?
Yes ,I run in to the same issue with a esp32-3248S035C board.
Following @sonictruth comment I did the same modification in: .pio/libdeps/esp32-3248S035C/esp32_smartdisplay/src/lvgl_st7796.c
Anyone else with similar problems?
Yes , same issue with a esp32-2432S028R board.
Following @sonictruth comment I did the same modification in: .pio\libdeps\esp32-2432S028R\esp32_smartdisplay\src\lvgl_ili9341_spi.c
So, setting the .max_transfer_sz helped?
So, setting the .max_transfer_sz helped?
Yes, display works fine
Hi,
I tested a bit with the MAX_TRANSFER_SZ. When not specified (like how it was) it accepts 4k data. This is due to DMA constraints. So, I decided to make it equal to the maximum amount of bytes that can be transferred. So TRANSFER_SZ is set to VGL_BUFFER_PIXELS*sizeof(lv_color16_t). I tested with a few boards and worked.
This is for now only in the develop branch https://github.com/rzeldent/esp32-smartdisplay-demo/tree/develop. Could you try if this works for you?
Hi, I'm getting this errors and also the screen is not updating.
What could be the issue ? Thanks!