FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [July 2013 Threads] Method in task doesnt run well.Posted by runfirst on July 6, 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; Usart_SendString(USART3,"first\r\n"); delay(300); Usart_SendString(USART3,"second\r\n"); delay(300);
i=Starts();
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?
RE: Method in task doesnt run well.Posted by runfirst on July 6, 2013 sorry, my code has error. it is fixed now. no need reply to this question.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|