micropython/ports
Angus Gratton 960eef70e8 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>
2023-11-23 11:53:39 +11:00
..
bare-arm
cc3200
embed
esp32 esp32/network_wlan: Reduce RAM usage if SPIRAM fails to initialise. 2023-11-23 11:53:39 +11:00
esp8266
mimxrt
minimal
nrf
pic16bit
powerpc
qemu-arm
renesas-ra renesas-ra/boards/ARDUINO_PORTENTA_C33: Fix incorrect I2C pins. 2023-11-17 15:40:33 +11:00
rp2 ports: Fix incorrect identifiers on Arduino boards. 2023-11-17 15:24:15 +11:00
samd samd: Use unique id for USB serial number. 2023-11-16 15:03:09 +11:00
stm32 ports: Fix incorrect identifiers on Arduino boards. 2023-11-17 15:24:15 +11:00
unix
webassembly
windows
zephyr