Stack size question

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Stack size question

Postby Tectu » Mon May 21, 2012 9:20 am

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?!

User avatar
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

Postby Giovanni » Mon May 21, 2012 9:23 am

You can Google it, using advanced search you can restrict the results from chibios.org or chibios.sourceforge.net.

Giovanni

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Stack size question

Postby Tectu » Mon May 21, 2012 9:32 am

awesome tip

Thank you guys :)

User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

Re: Stack size question

Postby sabdulqadir » Thu Aug 13, 2020 1:13 am

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

User avatar
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

Postby Giovanni » Thu Aug 13, 2020 6:18 am

It is part of those pages not yet restored after the crash, I have it stored and will upload it later.

Giovanni

User avatar
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

Postby Giovanni » Thu Aug 13, 2020 12:33 pm



Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 5 guests