This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

FreeRTOS vPrintString() error

Other Parts Discussed in Thread: HALCOGEN, TMS570LS0432

Greetings!


I use TMS570LS0432 Hercules Launchpad. I tried to print string on terminal window of CCSv6 using FreeRTOS. I use HALCOGEN to generate code. This is the code I wrote



/* USER CODE BEGIN (0) */
#include"FreeRTOS.h"
/* USER CODE END */

/* Include Files */

#include "sys_common.h"

/* USER CODE BEGIN (1) */
#include"os_task.h"
/* USER CODE END */


/* USER CODE BEGIN (2) */

void vPrintString( const portCHAR *pcString )
{
    /* Print the string, suspending the scheduler as method of mutual
    exclusion. */
    vTaskSuspendAll();
    {
        printf( "%s", pcString );
    }
    xTaskResumeAll();
}

void vTask1(void *pvParameters)
{
    portTickType xLastWakeTime=xTaskGetTickCount();

    for(;;)
    {
        vPrintString("Task1 is running\n");
        vTaskDelayUntil( &xLastWakeTime, 1000);
    }
}
/* USER CODE END */

void main(void)
{
/* USER CODE BEGIN (3) */
   xTaskCreate(vTask1, "Task1", 100, NULL, 1, NULL);

    vTaskStartScheduler();

    for(;;);
/* USER CODE END */
}

/* USER CODE BEGIN (4) */

/* USER CODE END */

After debugging I dont see string on the Terminal Window. Baudrate is set to 9600, Serial Connection, Data Bits are 8, Stop bits are 2 in the terminal settings window. Please help me to know the necessary changes to be made to make this code work. Thanks in advance.