Closed zhy2020 closed 1 year ago
Hi @zhy2020 -
Try using a large stack size setting such as CONFIG_ESP_MAIN_TASK_STACK_SIZE=55500
in your sdkconfig
file.
Perhaps also use ESP_LOGI()
instead of printf();
, via #include <esp_log.h>
ESP_LOGI
thanks.
@zhy2020 Did the stack size adjustment help? Do you have it working successfully?
Did the stack size adjustment help? Do you have it working successfully?
Yes,the program working successfully. Thanks.
That's excellent! Congratulations!! :)
What sort of project are you working on?
btw - the stack size I gave you is grossly oversized. I have an example using uxTaskGetStackHighWaterMark
here to really find out how much stack is used so that CONFIG_ESP_MAIN_TASK_STACK_SIZE
can be set more appropriately.
That's excellent! Congratulations!! :)
What sort of project are you working on?
btw - the stack size I gave you is grossly oversized. I have an example using
uxTaskGetStackHighWaterMark
here to really find out how much stack is used so thatCONFIG_ESP_MAIN_TASK_STACK_SIZE
can be set more appropriately.
I am an amateur developer trying to make a Bluetooth remote based on ESP32.Thank you very much for your help, otherwise it might waste me a long time to solve this problem.
Hi @zhy2020 I'm glad you were able to get this working for your project! If all is well, you can go ahead and close this issue.
Cheers
Some additional information: Main task related documentation section is available here. It is recommended to spawn an independent task for any application specific code, main task runs at fairly low priority (just above the idle
task priority) and with bare minimal stack size (although its configurable).
Closing this issue.
Hi, when I create ecc_private_key, an ERROR message is displayed: ERROR A stack overflow in task main has been detected. And reboot. Can you help me see what's wrong with the code? while (true) { // create private key ecc_key key; int ret; WC_RNG rng;