I built an HMI using LVGL. Until now, I’ve been using Modbus TCP over the LAN. I want to switch to Wi-Fi, but as soon as I initialize the Wi-Fi, I get the following error:
It seems your binary is to big for the P4, check if the PSRAM is configured properly. You can try using size optimization: Optimize for size (-Os). Check the final binary and the reported memory size
Yes, I’m aware of that. However, I’m not exactly sure where I went wrong, or what I need to do.
I think I’ve configured the settings so that lvgl can use the PSRAM. What other settings do I need to adjust? (I’ve been struggling with the AI for quite a while before turning to the forum.) The memory table looks like this:
You can try the optimization and if that does not work you can try poking around the configs. I’ll try finding the rights configs but in the meantime you if have any progress let me know.
And I just remembered, the P4 does not have wifi, in your board you have another ESP to handle that?
I ran into similar memory problems with my P4.
Then with the ESP32-P4 is supported by Espressif, but only the ESP32-P4 Funtion EV board(pre-rev.3.00) is available.
It has limited ROM and RAM availble (about 1Mb flash) when used without extra settings.
Therefor the additional settings as below are used in the platformio.ini file. board_build.flash_size = 16MB board_build.partitions = custom_partitions.csv
The file custom_partitons.csv file wil maked use of the full memory potential. # Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ota, 0xe000, 0x2000, app0, app, ota_0, 0x10000, 0x300000, app1, app, ota_1, 0x310000,0x300000, ffat, data, fat, 0x610000,0x9E0000, coredump, data, coredump,0xFF0000,0x10000,
A deep dive into how to configure the the flash bank on the ESP32. I found it here and the actual setting here, from Espressif itself.
I have a significant amount of PSRAM—16MB—and I’ve enabled it in the configuration settings. But I’m not entirely sure how to do this: “How do I use the PSRAM space???” I mean, I think that when I enable the “enable PSRAM” option in the configuration, I’m not able to use the PSRAM at full performance???
Of course: But the ESP32-P4 Dev modules come in 16MB and 32MB versions; mine says “16MB Flash” on it. If you search for “ESP32-P4 Dev module” on Google, you’ll see that it lists “Flash: 16MB” or “32MB.” sdkconfig.zip (21.6 KB)