EasyManuals Logo

Espressif ESP32-S2 User Manual

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1561 background imageLoading...
Page #1561 background image
Chapter 4. API Guides
How to configure parameters
ESP32-S2s memory is shared by protocol stack and applications.
Here, we have given several configuration ranks. In most cases, the user should select a suitable rank for parameter
configuration according to the size of the memory occupied by the application.
The parameters not mentioned in the following table should be set to the default.
Rank Iperf High-
performance
De-
fault
Memory
saving
Mini-
mum
Available memory (KB) 4.1 24.2 78.4 86.5 116.4
WIFI_STATIC_RX_BUFFER_NUM 8 6 6 4 3
WIFI_DYNAMIC_RX_BUFFER_NUM 24 18 12 8 6
WIFI_DYNAMIC_TX_BUFFER_NUM 24 18 12 8 6
WIFI_RX_BA_WIN 12 9 6 4 3
TCP_SND_BUF_DEFAULT (KB) 24 18 12 8 6
TCP_WND_DEFAULT(KB) 24 18 12 8 6
WIFI_IRAM_OPT 15 15 15 15 0
WIFI_RX_IRAM_OPT 16 16 16 0 0
LWIP_IRAM_OPTIMIZATION 13 13 0 0 0
INSTRUCTION_CACHE 16 16 16 16 8
INSTRUCTION_CACHE_LINE 16 16 16 16 16
TCP TX throughput (Mbit/s) 37.6 33.1 22.5 12.2 5.5
TCP RX throughput (Mbit/s) 31.5 28.1 20.1 13.1 7.2
UDP TX throughput (Mbit/s) 58.1 57.3 28.1 22.6 8.7
UDP RX throughput (Mbit/s) 78.1 66.7 65.3 53.8 28.5
Note: The test was performed with a single stream in a shielded box using an ASUS RT-N66U router. ESP32-S2
s CPU is single core with 240 MHz, ESP32-S2s flash is in QIO mode with 80 MHz.
Ranks:
Iperf rank ESP32-S2 extreme performance rank used to test extreme performance.
High-performance rank The ESP32-S2s high-performance configuration rank, suitable for scenarios that
the application occupies less memory and has high-performance requirements.
Default rank ESP32-S2s default configuration rank, the available memory, and performance are in balance.
Memory saving rank This rank is suitable for scenarios where the application requires a large amount of
memory, and the transceiver performance will be reduced in this rank.
Minimum rank This is the minimum configuration rank of ESP32-S2. The protocol stack only uses the
necessary memory for running. It is suitable for scenarios that have no requirement for performance and
the application requires lots of space.
Using PSRAM
PSRAM is generally used when the application takes up a lot of memory. In this mode, the CON-
FIG_ESP32_WIFI_TX_BUFFER is forced to be static. CONFIG_ESP32_WIFI_STATIC_TX_BUFFER_NUM indi-
cates the number of DMA buffers at the hardware layer, increase this parameter can improve performance. The
following are the recommended ranks for using PSRAM:
Espressif Systems 1550
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Espressif ESP32-S2 and is the answer not in the manual?

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish