I’m tryng to use canvas in 320x280 display (esp32 2432s028), but I have problem with memory usage.
This is the log:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6276
load:0x40078000,len:15748
load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3860
entry 0x4008063c
I (31) boot: ESP-IDF v5.4-552-ge37d33cc1c-dirty 2nd stage bootloader
I (31) boot: compile time May 22 2025 15:58:10
I (31) boot: Multicore bootloader
I (34) boot: chip revision: v3.1
I (37) boot.esp32: SPI Speed : 40MHz
I (41) boot.esp32: SPI Mode : DIO
I (44) boot.esp32: SPI Flash Size : 4MB
I (48) boot: Enabling RNG early entropy source…
I (52) boot: Partition Table:
I (55) boot: ## Label Usage Type ST Offset Length
I (61) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (68) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (74) boot: 2 factory factory app 00 00 00010000 00100000
I (81) boot: End of partition table
I (84) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=13bdch ( 80860) map
I (119) esp_image: segment 1: paddr=00023c04 vaddr=3ff80000 size=0001ch ( 28) load
I (120) esp_image: segment 2: paddr=00023c28 vaddr=3ffb0000 size=02254h ( 8788) load
I (126) esp_image: segment 3: paddr=00025e84 vaddr=40080000 size=0a194h ( 41364) load
I (147) esp_image: segment 4: paddr=00030020 vaddr=400d0020 size=43098h (274584) map
I (241) esp_image: segment 5: paddr=000730c0 vaddr=4008a194 size=0aa7ch ( 43644) load
I (268) boot: Loaded app from partition at offset 0x10000
I (268) boot: Disabling RNG early entropy source…
e[0;32mI (278) cpu_start: Multicore appe[0m
e[0;32mI (287) cpu_start: Pro cpu start user codee[0m
e[0;32mI (287) cpu_start: cpu freq: 160000000 Hze[0m
e[0;32mI (287) app_init: Application information:e[0m
e[0;32mI (290) app_init: Project name: demoe[0m
e[0;32mI (294) app_init: App version: 1e[0m
e[0;32mI (299) app_init: Compile time: May 23 2025 12:13:01e[0m
e[0;32mI (305) app_init: ELF file SHA256: 567e5dd45…e[0m
e[0;32mI (310) app_init: ESP-IDF: v5.4-552-ge37d33cc1c-dirtye[0m
e[0;32mI (316) efuse_init: Min chip rev: v0.0e[0m
e[0;32mI (321) efuse_init: Max chip rev: v3.99 e[0m
e[0;32mI (326) efuse_init: Chip rev: v3.1e[0m
e[0;32mI (331) heap_init: Initializing. RAM available for dynamic allocation:e[0m
e[0;32mI (338) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAMe[0m
e[0;32mI (344) heap_init: At 3FFD2F08 len 0000D0F8 (52 KiB): DRAMe[0m
e[0;32mI (350) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAMe[0m
e[0;32mI (357) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAMe[0m
e[0;32mI (363) heap_init: At 40094C10 len 0000B3F0 (44 KiB): IRAMe[0m
e[0;32mI (371) spi_flash: detected chip: generice[0m
e[0;32mI (374) spi_flash: flash io: dioe[0m
e[0;32mI (379) main_task: Started on CPU0e[0m
e[0;32mI (383) main_task: Calling app_main()e[0m
e[0;32mI (388) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 e[0m
e[0;32mI (396) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 e[0m
e[0;32mI (526) LVGL: Starting LVGL taske[0m
e[0;32mI (577) lcd: Setting LCD backlight: 75%e[0m
[Warn] (0.050, +50) lv_draw_buf_create_ex: No memory: 320x280, cf: 18, stride: 640, 179200Byte, lv_draw_buf.c:296
[Error] (0.055, +5) lv_canvas_set_draw_buf: Asserted at expression: draw_buf != NULL (NULL pointer) lv_canvas.c:93
e[0;31mE (5523) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:e[0m
e[0;31mE (5523) task_wdt: - IDLE0 (CPU 0)e[0m
e[0;31mE (5523) task_wdt: Tasks currently running:e[0m
e[0;31mE (5523) task_wdt: CPU 0: maine[0m
e[0;31mE (5523) task_wdt: CPU 1: IDLE1e[0m
e[0;31mE (5523) task_wdt: Print CPU 0 (current core) backtracee[0m
I have the same problem also with 300x200 dimensions. I set RGB565 color depth, 10 dots per inch, standard C per malloc…