Closed netmonk closed 2 years ago
creating task with 1024*2 stack size is too small
I don't have such code in my repository.
$ find . -name *.c | xargs grep xTaskCreate
./ping-pong/main/main.c: xTaskCreate(&task_primary, "task_primary", 1024*3, NULL, 5, NULL);
./ping-pong/main/main.c: xTaskCreate(&task_seconfary, "task_secondary", 1024*3, NULL, 5, NULL);
./basic/main/main.c: xTaskCreate(&task_tx, "task_tx", 1024*3, NULL, 5, NULL);
./basic/main/main.c: xTaskCreate(&task_rx, "task_rx", 1024*3, NULL, 5, NULL);
Perhaps you cloned an older repo.
Plz try latest.
Exact, it was on basic.c and I didn’t pull since 3 of may. All apologise.
creating task with 1024*2 stack size is too small and therefore lead to carsh loop with stack overflow when lauching either task_rx or task_tx in basic exemple.
Solution is to increase stack size at task creation.