diff options
| author | Angus Gratton <angus@redyak.com.au> | 2023-11-14 16:46:55 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-11-23 11:53:39 +1100 |
| commit | 960eef70e8a0073440d6d7edc2c05f6e2237e0af (patch) | |
| tree | 138a26d3c33684dfc1b89722bd23523fdab6eba9 /py/pairheap.c | |
| parent | 92f046971100eee91e8f7e935ffcfdc324f511cb (diff) | |
esp32/network_wlan: Reduce RAM usage if SPIRAM fails to initialise.
In ESP-IDF, enabling SPIRAM in menuconfig sets some Kconfig options:
- "Wi-Fi Cache TX Buffers" enabled. By default this tries to allocate 32 of
these when Wi-Fi is initialised, which requires 54,400 bytes of free heap.
- Switches "Type of WiFi TX buffers" from Dynamic to Static. This
pre-allocates all of the Wi-Fi transmit buffers.
Not a problem if PSRAM is initialised, but it's quite a lot of RAM if PSRAM
failed to initialise! As we use the same config for PSRAM & no-PSRAM builds
now, this either causes Wi-Fi to fail to initialise (seen on S2) or will
eat quite a lot of RAM.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'py/pairheap.c')
0 files changed, 0 insertions, 0 deletions
