Skip to content

Commit 4931b37

Browse files
committed
Increase console task stack size.
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.
1 parent bee12d0 commit 4931b37

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/base_nodemcu/user_main.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ static void console_task(void *)
196196

197197
static void console_init(void)
198198
{
199-
esp_vfs_console_register();
200-
201199
fflush(stdout);
202200
fsync(fileno(stdout));
203201

@@ -260,7 +258,8 @@ static void console_init(void)
260258
#endif
261259

262260
xTaskCreate(
263-
console_task, "console", 1024, NULL, ESP_TASK_MAIN_PRIO+1, NULL);
261+
console_task, "console", configMINIMAL_STACK_SIZE,
262+
NULL, ESP_TASK_MAIN_PRIO+1, NULL);
264263
}
265264

266265

0 commit comments

Comments
 (0)