Thanks for the link, mabl, I found what I was searching for.
Sorry when it looks like I don't use the documentation before asking, but I am still trying to get used to the ChibiOS documentation. It's weird sometimes for me.
Also, I am really really missing a seach field inside the documentation?!
Stack size question
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Stack size question
You can Google it, using advanced search you can restrict the results from chibios.org or chibios.sourceforge.net.
Giovanni
Giovanni
- sabdulqadir
- Posts: 49
- Joined: Fri Mar 23, 2018 7:29 pm
- Has thanked: 13 times
- Been thanked: 4 times
Re: Stack size question
Giovanni wrote:Each thread has its own separate stack, so you need to give each thread enough space. This is the most critical thing when doing multithreaded embedded programming.
Automatic variables are allocated in the function stack frame so if you allocate 4KB inside a function then all threads calling that function must have enough space in their own stack.
More info in this page: http://www.chibios.org/dokuwiki/doku.ph ... :kb:stacks
Giovanni
The link is not working now http://www.chibios.org/dokuwiki/doku.ph ... :kb:stacks.
Is the page available somewhere?
Thanks,
AQ
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Stack size question
It is part of those pages not yet restored after the crash, I have it stored and will upload it later.
Giovanni
Giovanni
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Return to “Development and Feedback”
Who is online
Users browsing this forum: No registered users and 5 guests