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.

RTA LOG_printf() - displaying data in time sequence with multiple LOG buffers

Other Parts Discussed in Thread: OMAPL138

Hi All

We are using CCS4.2, Bios 5_41_10_36 on OMAPL138 with emulator (XDS560v2).

Usual problem is if we add too many LOG_printf's to the system it affects real time behaviour too drastically - we decided to use multiple LOG buffers/pre-defines to overcome this as follows:

#ifdef USE_LOG1

    LOG_printf(&log1, "This is LOG buffer 1")

#endif // USE_LOG1

#ifdef USE_LOG2

    LOG_printf(&log2, "This is LOG buffer 2")

#endif // USE_LOG2 etc

We enable "combinations" of LOG buffers which don't break the application as would happen if all are enabled... all is good at this point.

HOWEVER:

When we enable more than one LOG buffer the timing sequence is maintained for each LOG buffer "individually" not as a combined display output. ie

----------------------------------------------------------------------------------------------------------------

Time     Logger   

0            LOG1

2            LOG1

4            LOG1

1            LOG2

3            LOG2

5            LOG2

----------------------------------------------------------------------------------------------------------------

Is there an easy way for the output to be displayed in this manner

----------------------------------------------------------------------------------------------------------------

Time     Logger   

0            LOG1

1            LOG2

2            LOG1

3            LOG2

4            LOG1

5            LOG2

----------------------------------------------------------------------------------------------------------------

BR

Barry

  • Barry,

    First: sorry for the slow reply.  For some reason we didn’t see this thread until today.

    The answer to your question is: no, there isn’t a way to sort these automatically.  Each LOG has its own set of sequence numbers to show ordering of the records within that LOG’s buffer.  And individual records can be timestamped too, to allow correlation with records in other LOG buffers.  But LOG records are read from the target one LOG buffer at a time, and then immediately displayed.

    To get these sorted I think you’ll need to export them (to .csv format) and then sort them from that file.

    Scott

  • Hi Scott

    Thanks for getting back to me  with the answer.

    The post processing option (via export & *.csv) is what I am doing now - this does work though is not ideal by any means.

    It would seem a trivial option to add the post processing capability when viewing the LOG's . Hopefully an improvement in the tools for later...

    Best regards

    Barry