I would like to see the operation of FreeRTOS in code composer studio
I was going to use tracealyzer but it did not work.
Because I am using MSP430 board but MSP430 board does not support J-link debugger.
Board has to support J-link debugger to use tracealyzer.
So I wonder if there any way to trace FreeRTOS?
I would like to see RTOS running with timestamp.
for example,
Task execution time
Task execution sequence
State of the task at a time
…
Is there any function that I can trace these features?
Tracalyzer does not require J-link. Maybe streaming trace data does (not sure), but the snapshot recorder definitely doesn’t. With the snapshot recorder you can trace data into a circular buffer, then use whatever features the IDE provides (differs from Eclipse version to Eclipse version - CCS being an Eclipse based IDE) to copy the buffer from the device to the computer that is running the Tracealyzer tool for viewing. This is how ALL the examples in the FreeRTOS download work - none of them rely on J-Link, and I’m sure it will be described in the documentation that comes with Tracealyzer. You can also contact Percepio support.
I also had another question about tracing FreeRTOS.
Is there any method that I can trace these features below?
Task execution time / function execution time
Task execution sequence
State of the task at a time <- this feature maybe I could see with vTaskList (?)
…
The other thing I’m using is the vTaskList() and variants. This gets me a list of all tasks, e.g.
TCB Static Handle Name State Prio Stack Beg Stack End Size Stack Top Unused Runtime
2 no (0) 0x200022A0 Shell Running (1,1) 0x20002290 0x20001A00 2200 B 0x20002064 ( 560 B) 1648 B 0x00000884 ( <1%)
4 no (0) 0x20003900 IDLE Ready (0,0) 0x200038F0 0x200032B8 1600 B 0x20003894 ( 96 B) 1512 B 0x00039C06 ( 99%)
3 no (0) 0x20003120 Main Ready (0,0) 0x20003110 0x20002308 3600 B 0x2000309C ( 120 B) 3472 B 0x00000000 ( <1%)
5 no (0) 0x20003FB0 Tmr Svc Blocked (2,2) 0x20003FA0 0x20003968 1600 B 0x20003F24 ( 128 B) 1424 B 0x00000000 ( <1%)
1 no (0) 0x20001998 MidiPlay Suspended(1,1) 0x20001988 0x20001350 1600 B 0x20001904 ( 136 B) 1472 B 0x00000000 ( <1%)