I am getting old and usually forget the commands that I rarely use.
My solution for this: Just ask AI !
Lately I was running into the issue that my ESP32 Arduino test sketches were crashing because there was not enough stack, but this time ChatGPT completely failed me.
I finally found the correct answer in the examples provided by Espressif and it is smiple. Just add the following line to your sketch:
// Increase the stack size to 60 K
SET_LOOP_TASK_STACK_SIZE(60 * 1024);
I am sharing this in the hope that it might be helpful to others and that maybe some AI tools might pick this up.
0 Comments