From 13f3a226bb5d2a757579f390b60f147821c99fe4 Mon Sep 17 00:00:00 2001 From: Darian Leung Date: Mon, 9 Oct 2023 22:17:09 +0800 Subject: [PATCH] change(examples): Update example configurations for FreeRTOS v10.5.1 This commit updates the sdkconfig for some examples when building with the v10.5.1 kernel. The updates fixes the following: Place FreeRTOS functions into flash - Some examples use nearly 100% of available IRAM, thus any small increase in IRAM in other components (e.g., FreeRTOS) will lead to a build error. As a result, 'CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH' has been enabled in those examples to save some IRAM. - Some examples consume too much flash memory, leading to the 'factory' parition overflowing. IN those examples, 'CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE' has been enabled to use a larger 'factory' partition. --- .../nimble/bleprph_wifi_coex/sdkconfig.defaults.esp32 | 4 ++++ examples/provisioning/wifi_prov_mgr/sdkconfig.defaults.esp32 | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 examples/bluetooth/nimble/bleprph_wifi_coex/sdkconfig.defaults.esp32 create mode 100644 examples/provisioning/wifi_prov_mgr/sdkconfig.defaults.esp32 diff --git a/examples/bluetooth/nimble/bleprph_wifi_coex/sdkconfig.defaults.esp32 b/examples/bluetooth/nimble/bleprph_wifi_coex/sdkconfig.defaults.esp32 new file mode 100644 index 0000000000..4c6ba92505 --- /dev/null +++ b/examples/bluetooth/nimble/bleprph_wifi_coex/sdkconfig.defaults.esp32 @@ -0,0 +1,4 @@ +# Place FreeRTOS functions into flash to save some IRAM on the ESP32 +CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y +# Use the SINGLE_APP_LARGE partition to ensure the partition has enough space for the ESP32 build +CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y diff --git a/examples/provisioning/wifi_prov_mgr/sdkconfig.defaults.esp32 b/examples/provisioning/wifi_prov_mgr/sdkconfig.defaults.esp32 new file mode 100644 index 0000000000..baa01a02eb --- /dev/null +++ b/examples/provisioning/wifi_prov_mgr/sdkconfig.defaults.esp32 @@ -0,0 +1,2 @@ +# Place FreeRTOS functions into flash to save some IRAM on the ESP32 +CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y