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.

LOG_printf()

Expert 1005 points

Hello,

I am using a simulator with CCS 3.3. The code that I am using is follow:

#include <std.h>
#include <log.h>
#include "Configuration1cfg.h"

void main()
{
 
}

void Task1(Arg arg1)
{

int i;
 for(i=0;i<100;i++)
 {
  TSK_sleep(100);
  LOG_printf(&trace,"In task %d\n",i);
 }
}

The problem that I have is as follow:

I cannot see the output of LOG_printf in trace window until I stop the running program. I want to see the output as it is generated by program. Is there any way that I can see the trace output without stopping the program?

I tried the following code without any success:

 TSK_disable();
  IDL_run();
  TSK_enable();

 

Any suggestion?

Best regards