Skip to content

Check stack usage of btstack #650

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

Open
peterharperuk opened this issue May 30, 2025 · 1 comment
Open

Check stack usage of btstack #650

peterharperuk opened this issue May 30, 2025 · 1 comment
Assignees

Comments

@peterharperuk
Copy link
Contributor

See raspberrypi/pico-sdk#2268

@peterharperuk peterharperuk self-assigned this May 30, 2025
@mringwal
Copy link
Contributor

mringwal commented Jun 3, 2025

That's not trivial in the general case. Doubling the stack for all examples looks like a good first step.

Btw. part of the large stack usage results from being single-threaded and switching context from stack to app and back and so forth. The newer(ish) btstack_run_loop_execute_on_main_thread would allow to defer some maintenance work, which would also reduce the needed stack space. This needs to be added file by file, so no promises here, but feel free to ping us some time in the future.

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

No branches or pull requests

2 participants