michaeln32 wrote on Tuesday, February 13, 2018:
Hi,
When we use xTaskCreateStatic() instead of xTaskCreate() -
Are both task TCB and stack are created staticlly in the ram not in the RTOS heap section ?
Thank you
Michael
michaeln32 wrote on Tuesday, February 13, 2018:
Hi,
When we use xTaskCreateStatic() instead of xTaskCreate() -
Are both task TCB and stack are created staticlly in the ram not in the RTOS heap section ?
Thank you
Michael
richard_damon wrote on Tuesday, February 13, 2018:
xTaskCreateStatic requires you to provide both a buffer for the TCB and for the Stack, and doesn’t use any of the Heap.
michaeln32 wrote on Tuesday, February 13, 2018:
Thank you !
I cant find the API xTaskCreateStatic().
Can you please tell me wher this function can be found (in which file) ?
michaeln32 wrote on Tuesday, February 13, 2018:
Can I use API xTaskCreateStatic() in my application or it is only for kernel use ?
michaeln32 wrote on Tuesday, February 13, 2018:
Can I use both API xTaskCreateStatic() and xTaskCreate() and in my application ?
tlafleur wrote on Tuesday, February 13, 2018:
Sure you can, just try it in a small test program…
On Tue, Feb 13, 2018 at 6:32 AM Michael Nesher <
michaeln32@users.sourceforge.net> wrote:
Can I use both API xTaskCreateStatic() and xTaskCreate() and in my
application ?xTaskCreateStatic
https://sourceforge.net/p/freertos/discussion/382005/thread/5bb81397/?limit=25#1b40Sent from sourceforge.net because you indicated interest in
SourceForge.net: Log In to SourceForge.netTo unsubscribe from further messages, please visit
SourceForge.net: Log In to SourceForge.net
–
~~ _/) _/)
_/) ``` _/) ~~
Tom Lafleur
tlafleur wrote on Tuesday, February 13, 2018:
A quick look at the documentation one will find: https://www.freertos.org/xTaskCreateStatic.html
A quick search of the source code on your computer will locate the reference code or macro for the function… if it’s not there, you are most likely running an old version of FreeRTOS.
tlafleur wrote on Tuesday, February 13, 2018:
Read the documentation.