forked from theelims/ESP32-sveltekit
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
There are 2 constraints currently
- Boards with 4MB of flash memory cannot currently contain an OTA partition is the firmware size of MoonLight is above 2MB.
- Boards without PSRAM are low on memory
Flash
- And because of flash size I also have no ota on these (4MB) boards as well.
- Limited set of certificates is worthwhile investigating.
- The pioarduino platform , increases since let's say a year ago. Alternative is the tasmota platform: https://github.com/tasmota/platform-espressif32/releases/ which could save about 300KB of flash space! it doesn’t include wifisecureclient, and we need that. See also: Change platform to Tasmota #24
- Svelte wwwdata.h is 1.6MB . zipped it is 511KB, comparing WLED: 240KB, 65KB zipped, although it is comparing apples with oranges
- Using terser save 20KB, see theelims@bdbb849 , waiting on upstream to merge in via Ethernet support theelims/ESP32-sveltekit#107
- Lower debug level EXT_LOGD creates a lot of messages...
Memory
- the server / back end consumes a lot of memory, see here some measurements It is so big because if it has a few of the sveltekit classes, templated , e.g. WebSocketService, that adds another 488 bytes already… in a lot of modules
this is a possible reason we have low heap on non-psram boards.
To investigate if this can be made smaller
esp32-d0-moonbase: 72.2 % of 310 KB (86 KB free, Max alloc 47 KB)
Metadata
Metadata
Assignees
Projects
Status
Backlog