Method in task doesnt run well.

runfirst wrote on Saturday, July 06, 2013:

I set a task:
   xTaskCreate( vTimeTask, (signed char *) “TIME1”, configMINIMAL_STACK_SIZE,     NULL, mainTIME_TASK_PRIORITY, &T1 );

In this task, I sending out string by uart:
int i;


and in this Starts() method, I put only oneline:
Usart_SendString(USART3,“System starts……\r\n”);  //this line has problem.

Strainge thing is that there is only few chars show on uart: “Syste”
However, if I move Usart_SendString(USART3,“System starts……\r\n”);  out of method Starts(), it runs well.

And same codes runs well without FREERTOS platform.

how to fix this?

runfirst wrote on Saturday, July 06, 2013:

sorry, my code has error. it is fixed now.
no need reply to this question.