xTaskCreateStatic

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

xTaskCreateStatic

xTaskCreateStatic requires you to provide both a buffer for the TCB and for the Stack, and doesn’t use any of the Heap.

xTaskCreateStatic

Thank you ! I cant find the API xTaskCreateStatic(). Can you please tell me wher this function can be found (in which file) ?

xTaskCreateStatic

Can I use API xTaskCreateStatic() in my application or it is only for kernel use ?

xTaskCreateStatic

Can I use both API xTaskCreateStatic() and xTaskCreate() and in my application ?

xTaskCreateStatic

Sure you can, just try it in a small test program.. On Tue, Feb 13, 2018 at 6:32 AM Michael Nesher 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#1b40

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

>

~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~ Tom Lafleur

xTaskCreateStatic

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.

xTaskCreateStatic

Read the documentation.

xTaskCreateStatic

https://www.freertos.org/StaticVsDynamicMemoryAllocation.html