# portBASE\_TYPE xTaskCreate

**URL:** <https://forums.freertos.org/t/portbase-type-xtaskcreate/5735>\
**Category:** Kernel\
**Created:** [June 8, 2010, 7:53am UTC](https://forums.freertos.org/t/portbase-type-xtaskcreate/5735 "2010-06-08T07:53:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 8, 2010, 7:53am UTC](https://forums.freertos.org/t/portbase-type-xtaskcreate/5735/1 "2010-06-08T07:53:04Z")

</div>

**[abuteir](https://sourceforge.net/u/abuteir/)** wrote on [Tuesday, June 08, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/fe7d2053/#5262):

I really beginner with freeROTS. my question is: why, after this code,

ret\_val = xTaskCreate (vMMI\_Menu, “MMI\_Menu”, configMINIMAL\_STACK\_SIZE, NULL, \  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tskIDLE\_PRIORITY+1, NULL);  
call the main code&nbsp; this&nbsp; function

signed portBASE\_TYPE xTaskCreate( pdTASK\_CODE pvTaskCode, const signed portCHAR \* const pcName, unsigned  
portSHORT usStackDepth, void \*pvParameters, unsigned portBASE\_TYPE uxPriority, xTaskHandle \*pxCreatedTask )  
{  
signed portBASE\_TYPE xReturn;  
tskTCB \* pxNewTCB;  
.

Thank you in advance

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [June 8, 2010, 8:59am UTC](https://forums.freertos.org/t/portbase-type-xtaskcreate/5735/2 "2010-06-08T08:59:58Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, June 08, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/fe7d2053/#0fc5):

Sorry - I don’t understand your question.&nbsp; Can you re-phrase it?

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 8, 2010, 10:41am UTC](https://forums.freertos.org/t/portbase-type-xtaskcreate/5735/3 "2010-06-08T10:41:17Z")

</div>

**[abuteir](https://sourceforge.net/u/abuteir/)** wrote on [Tuesday, June 08, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/fe7d2053/#5f7c):

hi richardbarry ,

I hope to get my idee.

when I have the code Main of simulation software studio 4. Exact in this line 'ret\_val = xTaskCreate (vMMI\_Menu, “MMI\_Menu”, configMINIMAL\_STACK\_SIZE, NULL, tskIDLE\_PRIORITY+1, NULL) ‘’ call this&nbsp; instead of calling the function ‘‘signed portBASE\_TYPE xTaskCreate( pdTASK\_CODE pvTaskCode, const signed portCHAR \* const pcName, unsigned&nbsp; portSHORT usStackDepth, void \*pvParameters, unsigned portBASE\_TYPE uxPriority, xTaskHandle \*pxCreatedTask )’’. I am tried to find the function ‘‘vMMI\_Menu’’ but i dont have it in my code .why the simulation he desen’t give me error or why he go in the ander function.&nbsp;

Thank you in advance

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [June 8, 2010, 3:48pm UTC](https://forums.freertos.org/t/portbase-type-xtaskcreate/5735/4 "2010-06-08T15:48:35Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, June 08, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/fe7d2053/#5676):

I think you are saying that you are using xTaskCreate() to create a task that is defined by the function vMMI\_Menu - but vMMI\_Menu does not appear anywhere in your project so you don’t understand how it can link.

I would agree with you, if vMMI\_Menu does not exist then the code cannot link.&nbsp; Maybe it isn’t linking?&nbsp; Or maybe vMMI\_Menu is #defined to something else?&nbsp; In any case I have looked through the FreeRTOS code and cannot see that the name vMMI\_Menu appears anywhere so I’m guessing it is a function you have defined yourself.

Regards.
