-
Notifications
You must be signed in to change notification settings - Fork 7.6k
How to set CONFIG_ARDUINO_LOOP_STACK_SIZE? #4906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can not change it from within ArduinoIDE, but you should check first why you would need such a large stack in the loop task. That is not normal/OK |
I'm using mutual TLS with BearSSL or MbedTLS, both of which seem to use a lot of stack. Is there some other config place where I could set CONFIG_ARDUINO_LOOP_STACK_SIZE and have the Arduino environment pickup the changed value? Probably not the right place to ask but ... or what about with platformio - does that have way to set CONFIG_ARDUINO_LOOP_STACK_SIZE ? |
32kB is a huge stack size. Maybe solution would be to do something like that:
|
I've not tried fine tunning that size to workout what a minimal value is, just the default doesn't work and 8192*4 does. I just saw in the latest code it now has this define specifically coded to look like you could set it from somewhere else - https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/main.cpp#L20-L22 - so thought I'd ask where that somewhere else is. Should I just close this ticket if its not actually possible? |
People over at PlatformIO have suggested two possible changes: It would be very nice if there was a user configurable option for this. |
There is this: #5173 |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Hardware:
Board: Heltec ESP32
Core Installation version: 1.0.5
Description:
Updating to the ESP32 Arduino core 1.0.5 I see there is now a define for CONFIG_ARDUINO_LOOP_STACK_SIZE in main.cpp, how can I set that? I've tried the sketch below but it doesn't get picked up.
Sketch:
Debug Messages:
That sketch outputs 7524, whereas if I just update the stack size in main.cpp then uxTaskGetStackHighWaterMark does show the change.
Thanks for any pointers.
The text was updated successfully, but these errors were encountered: