vWriteTraceToBuffer() bugs CodeWarrior

onefranck wrote on Wednesday, February 25, 2009:

Hello all,

My goal is to use tracecon application to view the kernel activity.  but the call to vWriteTraceToBuffer is causing exceptions into my program.  Anyone has used this utility on ColdFire with CodeWarrior?

I might have to change a bit the code of this macro function, but I prefer not to.  Any hints would be appreciated…


onefranck wrote on Wednesday, February 25, 2009:

Well let me refine my post.  I was’nt correctly calling vTaskStartTrace(), providing it some wrong parameters.

I will allocate some memory to my pcBuffer before calling to   vTaskStartTrace()

onefranck wrote on Wednesday, February 25, 2009:

hehe, took me a while figuring out that my board has no disk and cannot save file, this is really funny.  Since I cant save the trace file I’m looking at the trace Macros…

here is my question:  How can I use the trace macros to pause and resume a timer in order to count the Idle TIme??

Is it possible?


edwards3 wrote on Wednesday, February 25, 2009:

Some IDEs allow you to copy a RAM buffer to a file on the host.

Search for trace macros and traceTASK_SWITCHED_IN in the forum I think you will find some solutions.

onefranck wrote on Thursday, February 26, 2009:

Thanks Medwards,
I have implemented the two macros (SWITCHED_IN and OUT) and got something working with my timers library.