Skip to content

Commit

Permalink
Increase console task stack size.
Browse files Browse the repository at this point in the history
This allegedly resolves the reboot crashes seen on ESP32-S3 Zero.
It also removes the peculiar need to explicitly call
esp_vfs_console_register(), the absence of which previously would
trigger an assertion failure in xQueueGenericSend on input.
  • Loading branch information
jmattsson committed Oct 18, 2024
1 parent bee12d0 commit 4931b37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/base_nodemcu/user_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ static void console_task(void *)

static void console_init(void)
{
esp_vfs_console_register();

fflush(stdout);
fsync(fileno(stdout));

Expand Down Expand Up @@ -260,7 +258,8 @@ static void console_init(void)
#endif

xTaskCreate(
console_task, "console", 1024, NULL, ESP_TASK_MAIN_PRIO+1, NULL);
console_task, "console", configMINIMAL_STACK_SIZE,
NULL, ESP_TASK_MAIN_PRIO+1, NULL);
}


Expand Down

0 comments on commit 4931b37

Please sign in to comment.