Skip to content

Commit 94de317

Browse files
committed
Merge branch 'fix/increase_ble_log_task_stack_size_for_xtensa_chips' into 'master'
fix(ble): increase default ble log stack size for xtensa chips See merge request espressif/esp-idf!43250
2 parents b11ce34 + 3e0d005 commit 94de317

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

components/bt/common/ble_log/Kconfig.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ config BLE_LOG_ENABLED
77
if BLE_LOG_ENABLED
88
config BLE_LOG_TASK_STACK_SIZE
99
int "Stack size for BLE Log Task"
10+
default 1024 if IDF_TARGET_ARCH_RISCV
11+
default 2048 if IDF_TARGET_ARCH_XTENSA
1012
default 1024
1113
help
1214
Stack size for BLE Log Task

components/bt/common/ble_log/ble_log_spi_out.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@
4141
#define SPI_OUT_LOG_STR_BUF_SIZE (100)
4242
#define SPI_OUT_MALLOC(size) heap_caps_malloc(size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT)
4343
#define SPI_OUT_TASK_PRIORITY (ESP_TASK_PRIO_MAX - 1)
44+
45+
#if CONFIG_IDF_TARGET_ARCH_RISCV
4446
#define SPI_OUT_TASK_STACK_SIZE (1024)
47+
#elif CONFIG_IDF_TARGET_ARCH_XTENSA
48+
#define SPI_OUT_TASK_STACK_SIZE (2048)
49+
#else
50+
static_assert(false, "BLE Log SPI Out: Unsupported target architecture");
51+
#endif /* CONFIG_IDF_TARGET_ARCH_RISCV */
4552

4653
#if SPI_OUT_TS_SYNC_ENABLED
4754
#define SPI_OUT_TS_SYNC_TIMEOUT_MS (1000)

0 commit comments

Comments
 (0)