Skip to content
Snippets Groups Projects
Commit a7d6ef3a authored by Angus Gratton's avatar Angus Gratton Committed by moon2
Browse files

esp32: Allow malloc() to allocate from SPIRAM.


Also shrinks the "prefer internal" threshold to 8KB, any allocation larger
than this will try PSRAM first.

Change the mbedTLS config to use regular malloc() as well, instead of
internal only.  The default is set to internal-only due to to potential
physical security issue of readout via PSRAM on the original ESP32.
However, as MicroPython runs from plaintext flash and all other context is
in the MP heap of PSRAM then it's hard to see how worsens physical security
for MP.

This work was funded through GitHub Sponsors.

Signed-off-by: default avatarAngus Gratton <angus@redyak.com.au>
parent 29d5f767
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment