File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -716,9 +716,14 @@ def _final_validate(config):
716
716
if "psram" in full_config :
717
717
if CORE .using_esp_idf :
718
718
add_idf_sdkconfig_option ("CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL" , True )
719
- #add_idf_sdkconfig_option("CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL", 50768)
719
+ add_idf_sdkconfig_option ("CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL" , 50768 )
720
+ add_idf_sdkconfig_option ("CONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST" , True )
721
+ add_idf_sdkconfig_option ("CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY" , True )
720
722
else :
721
723
cg .add_build_flag (f"-DCONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL=1" )
724
+ cg .add_build_flag (f"-DCONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=50768" )
725
+ cg .add_build_flag (f"-DCONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST=1" )
726
+ cg .add_build_flag (f"-DCONFIG_BT_BLE_DYNAMIC_ENV_MEMORY=1" )
722
727
else :
723
728
LOGGER .info ("Consider enabling PSRAM support if it's available for the NimBLE Stack." )
724
729
You can’t perform that action at this time.
0 commit comments