Files
ESPEasy/lib
TD-er 6e3861505a [NeoPixel] Fix issue running addressable LEDs on ESP32S3 with OPI PSRAM
Fixes: #5253

For builds with "OPI PSRAM", the entire sketch is uploaded from flash to PSRAM at boot as PSRAM is way faster than flash. (about 3x faster)
This is also why the reported PSRAM size is about 5 MB while you have 8 MB PSRAM.

Another side-effect is that there is another threshold for allocating memory to internal or PSRAM based on size.
So starting from 64 LEDs, the malloc switches to use PSRAM instead of internal RAM.

Problem is that we can't use DMA from PSRAM while we have read- and write-access to it.
So the change in this test build is to force allocating memory on internal RAM and use a flag to make sure it is DMA accessible.

Timeout is set  to 100 msec, which is  enough for not really blocking the ESP, but should still not happen anyway as it allows for roughly 2000 LEDs to be updated in that period.
2025-02-13 23:43:52 +01:00
..
2022-12-07 21:56:06 +01:00

Attention

When adding libraries, replace any spaces in the folder name by an underscore _ to enable correct use by Arduino IDE.