From 96a826508429595e463e961d97d466bd91b6cb45 Mon Sep 17 00:00:00 2001 From: Song Ruo Jing Date: Mon, 12 Aug 2024 16:14:47 +0800 Subject: [PATCH] fix(uart): increased stack size for the task in uart_events example The example cannot run successfully on ESP32S3 due to task stack overflow Introduced in a4e6f57a4053e304059c4269af34358f2a1ac411 --- .../uart/uart_events/main/uart_events_example_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/peripherals/uart/uart_events/main/uart_events_example_main.c b/examples/peripherals/uart/uart_events/main/uart_events_example_main.c index d5200164bda..19f8726a03a 100644 --- a/examples/peripherals/uart/uart_events/main/uart_events_example_main.c +++ b/examples/peripherals/uart/uart_events/main/uart_events_example_main.c @@ -47,7 +47,7 @@ static void uart_event_task(void *pvParameters) bzero(dtmp, RD_BUF_SIZE); ESP_LOGI(TAG, "uart[%d] event:", EX_UART_NUM); switch (event.type) { - //Event of UART receving data + //Event of UART receiving data /*We'd better handler data event fast, there would be much more data events than other types of events. If we take too much time on data event, the queue might be full.*/ @@ -146,5 +146,5 @@ void app_main(void) uart_pattern_queue_reset(EX_UART_NUM, 20); //Create a task to handler UART event from ISR - xTaskCreate(uart_event_task, "uart_event_task", 2048, NULL, 12, NULL); + xTaskCreate(uart_event_task, "uart_event_task", 3072, NULL, 12, NULL); }