|
|
@@ -18,12 +18,46 @@ if BLE_MESH
|
|
|
option in the Bluetooth Controller section in menuconfig, which is
|
|
|
"Scan Duplicate By Device Address and Advertising Data".
|
|
|
|
|
|
- config BLE_MESH_ALLOC_FROM_PSRAM_FIRST
|
|
|
- bool "BLE Mesh will first allocate memory from PSRAM"
|
|
|
- default n
|
|
|
+ choice BLE_MESH_MEM_ALLOC_MODE
|
|
|
+ prompt "Memory allocation strategy"
|
|
|
+ default BLE_MESH_MEM_ALLOC_MODE_INTERNAL
|
|
|
help
|
|
|
- When this option is enabled, BLE Mesh stack will try to allocate memory
|
|
|
- from PSRAM firstly. This will save the internal RAM if PSRAM exists.
|
|
|
+ Allocation strategy for BLE Mesh stack, essentially provides ability to
|
|
|
+ allocate all required dynamic allocations from,
|
|
|
+
|
|
|
+ - Internal DRAM memory only
|
|
|
+ - External SPIRAM memory only
|
|
|
+ - Either internal or external memory based on default malloc()
|
|
|
+ behavior in ESP-IDF
|
|
|
+ - Internal IRAM memory wherever applicable else internal DRAM
|
|
|
+
|
|
|
+ Recommended mode here is always internal, since that is most preferred
|
|
|
+ from security perspective. But if application requirement does not allow
|
|
|
+ sufficient free internal memory then alternate mode can be selected.
|
|
|
+
|
|
|
+ config BLE_MESH_MEM_ALLOC_MODE_INTERNAL
|
|
|
+ bool "Internal DRAM"
|
|
|
+
|
|
|
+ config BLE_MESH_MEM_ALLOC_MODE_EXTERNAL
|
|
|
+ bool "External SPIRAM"
|
|
|
+ depends on ESP32_SPIRAM_SUPPORT
|
|
|
+
|
|
|
+ config BLE_MESH_MEM_ALLOC_MODE_DEFAULT
|
|
|
+ bool "Default alloc mode"
|
|
|
+ depends on ESP32_SPIRAM_SUPPORT
|
|
|
+ help
|
|
|
+ Enable this option to use the default memory allocation strategy when
|
|
|
+ external SPIRAM is enabled. See the SPIRAM options for more details.
|
|
|
+
|
|
|
+ config BLE_MESH_MEM_ALLOC_MODE_IRAM_8BIT
|
|
|
+ bool "Internal IRAM"
|
|
|
+ depends on ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY
|
|
|
+ help
|
|
|
+ Allows to use IRAM memory region as 8bit accessible region. Every
|
|
|
+ unaligned (8bit or 16bit) access will result in an exception and
|
|
|
+ incur penalty of certain clock cycles per unaligned read/write.
|
|
|
+
|
|
|
+ endchoice # BLE_MESH_MEM_ALLOC_MODE
|
|
|
|
|
|
config BLE_MESH_FAST_PROV
|
|
|
bool "Enable BLE Mesh Fast Provisioning"
|