Skip to content
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

Make LOOP_STACK_SIZE user configurable at compile-time. #5173

Merged
merged 1 commit into from
May 18, 2021

Conversation

everslick
Copy link
Contributor

This PR lets the user override the LOOP STACK SIZE set in sdkconfig (for example with -DARDUINO_LOOP_STACK_SIZE=12288).

This PR lets the user override the LOOP STACK SIZE set in sdkconfig (for example with -DARDUINO_LOOP_STACK_SIZE=12288).
@CLAassistant
Copy link

CLAassistant commented May 12, 2021

CLA assistant check
All committers have signed the CLA.

@lonerzzz
Copy link
Contributor

lonerzzz commented May 13, 2023

Another option from within the code is the following:

SET_LOOP_TASK_STACK_SIZE( 16*1024 ); // 16KB

setup()
{
	// setup code here
}

loop()
{
	// loop code here
}

@everslick everslick deleted the patch-8 branch May 13, 2023 19:52
@ullix
Copy link

ullix commented May 25, 2023

#5173 (comment)

SET_LOOP_TASK_STACK_SIZE( 16*1024 ); // 16KB

That would be marvelous, but it does not work for me. What kind of versions of what are needed to make it work, and what else needs to be set/configured?

@ullix
Copy link

ullix commented May 27, 2023

I stand corrected: it DOES work!

What it does NOT do, and which tripped me, is that it does NOT change the value CONFIG_ARDUINO_LOOP_STACK_SIZE. This remains at the default value, in my case 8192. But you see it from uxTaskGetStackHighWaterMark(<looptask>).

So thanks, this little command SET_LOOP_TASK_STACK_SIZE( 16*1024 ); // 16KB is very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants