-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsdkconfig.defaults.esp32s3
More file actions
59 lines (55 loc) · 2.6 KB
/
sdkconfig.defaults.esp32s3
File metadata and controls
59 lines (55 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ESP32-S3-specific defaults
# Applied automatically when: idf.py set-target esp32s3
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
# PSRAM
CONFIG_SPIRAM=y
CONFIG_SPIRAM_MODE_OCT=y
CONFIG_SPIRAM_SPEED_80M=y
CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
# Push WiFi/LWIP dynamic allocations to PSRAM to free internal DRAM.
# WiFi static RX buffers still must live in internal DMA-capable RAM,
# so their count is bounded below by sdkconfig (see WiFi section).
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
# Bluetooth (BLE only -- ESP32-S3 has no Classic BT support)
CONFIG_BT_ENABLED=y
CONFIG_BT_BLUEDROID_ENABLED=y
CONFIG_BT_BLE_ENABLED=y
CONFIG_BT_GATTC_ENABLE=y
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y
CONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST=y
CONFIG_BT_BLE_SMP_ENABLE=y
CONFIG_BT_HID_HOST_ENABLED=y
# WiFi
# Static RX buffers (1600 B each) are allocated from internal DMA-capable
# RAM and cannot be moved to PSRAM. On boards that share internal DRAM
# with a large display framebuffer (M5Stack PaperS3: M5GFX keeps a 4-bpp
# 540x960 grayscale buffer in internal RAM) and Bluedroid, only a handful
# of these slots fit. Setting this to 16 caused esp_wifi_init() to fail
# with ESP_ERR_NO_MEM on PaperS3 ("Expected to init 16 rx buffer, actual
# is 4"). Use a value that fits on the most memory-constrained supported
# board; dynamic RX/TX buffers below pick up the slack from PSRAM via
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP.
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=4
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=32
# RX BA window must be <= 2 * static_rx_buffer_num (IDF constraint).
CONFIG_ESP_WIFI_RX_BA_WIN=6
# Move RX-management buffers from the WiFi static internal-RAM pool to
# the regular heap (which lands in PSRAM thanks to
# SPIRAM_TRY_ALLOCATE_WIFI_LWIP above). Without this, esp_wifi_init()
# fails on PaperS3 with
# wifi:esf_buf_setup_static: alloc eb fail(1)
# WiFiMgr: esp_wifi_init failed: ESP_ERR_NO_MEM
# whenever the user starts a Git sync while the BLE keyboard is paired
# (Bluedroid + M5GFX have already consumed most of the internal DRAM by
# then, so even one extra static eb does not fit).
CONFIG_ESP_WIFI_DYNAMIC_RX_MGMT_BUF=1
# Minimum count for the few mgmt short buffers that remain static (the
# IDF lower bound is 6). Default is 32, which is wasteful for a station
# that only ever talks to one AP for HTTPS Git sync.
CONFIG_ESP_WIFI_MGMT_SBUF_NUM=6
# Disable A-MPDU aggregation. Each direction reserves additional
# internal-RAM aggregation/reorder buffers, and Git sync over HTTPS
# does not need the throughput. Saves several KB of internal DRAM.
CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=n
CONFIG_ESP_WIFI_AMPDU_RX_ENABLED=n