![]() ![]() When allocating a size equal to or larger than the threshold, the allocator will try external memory first. ![]() When allocating a size less than the threshold, the allocator will try internal memory first. This allows any application to use the external RAM without having to rewrite the code to use heap_caps_malloc(., MALLOC_CAP_SPIRAM).Īn additional configuration item, CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL, can be used to set the size threshold when a single allocation should prefer external memory: However, it is also added to the pool of RAM that can be returned by the standard malloc() function. In this case, memory is added to the capability allocator as described for the previous option. ![]() Select this option by choosing “Make RAM allocatable using malloc() as well” from CONFIG_SPIRAM_USE.
0 Comments
Leave a Reply. |