mirror of
https://github.com/esphome/esphome.git
synced 2026-05-30 07:16:11 +08:00
[micro_wake_word] Increase INFERENCE_TASK_STACK_SIZE to 8192 for P4 chip (#16390)
This commit is contained in:
@@ -23,7 +23,13 @@ static const size_t DATA_TIMEOUT_MS = 50;
|
|||||||
|
|
||||||
static const uint32_t RING_BUFFER_DURATION_MS = 120;
|
static const uint32_t RING_BUFFER_DURATION_MS = 120;
|
||||||
|
|
||||||
|
#ifdef CONFIG_IDF_TARGET_ESP32P4
|
||||||
|
// ESP32-P4 PIE-optimized esp-nn kernels (e.g. depthwise_conv_s8_ch1_pie) require
|
||||||
|
// significantly more stack than other variants, causing stack protection faults at 3072.
|
||||||
|
static const uint32_t INFERENCE_TASK_STACK_SIZE = 8192;
|
||||||
|
#else
|
||||||
static const uint32_t INFERENCE_TASK_STACK_SIZE = 3072;
|
static const uint32_t INFERENCE_TASK_STACK_SIZE = 3072;
|
||||||
|
#endif
|
||||||
static const UBaseType_t INFERENCE_TASK_PRIORITY = 3;
|
static const UBaseType_t INFERENCE_TASK_PRIORITY = 3;
|
||||||
|
|
||||||
enum EventGroupBits : uint32_t {
|
enum EventGroupBits : uint32_t {
|
||||||
|
|||||||
Reference in New Issue
Block a user