| 1 | # Rust often needs a bit of an extra main task stack size compared to C (the default is 3K) |
| 2 | # You might have to increase this further if you allocate large stack variables in the main task |
| 3 | CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192 |
| 4 | |
| 5 | # Increase a bit these stack sizes as they are also a bit too small by default |
| 6 | CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096 |
| 7 | CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=4096 |
| 8 | |
| 9 | # You might have to increase this further if you spawn your own Rust threads |
| 10 | # that allocate large stack variables; or better yet - use |
| 11 | # `std::thread::Builder::new().stack_size(XXX)` for spawning |
| 12 | CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT=4096 |