rtel wrote on Tuesday, March 04, 2014:
I could implement the trace to test.
In the example and the soft from percepio the Queue have a name. While
in my test they have a name like “queue#1” in the percepio soft.
I think I did the right thing:
define configQUEUE_REGISTRY_SIZE 16
vQueueAddToRegistry (xQueue (signed char *) “q1”);
I’m on FreeRTOS 7.5.2.
I have just tried this in FreeRTOS version 8, and in that version
calling vQueueAddToRegistry() will in turn call the
traceQUEUE_REGISTRY_ADD() macro, and the queue name as seen in the trace
is set within that macro.
The trace macros have been updated, and it is possible that in prior
versions you had to call vTraceSetQueueName() manually, although I don’t
recall having to do that.
Can you step through traceQUEUE_REGISTRY_ADD() in your debugger? In my
version I see it calling prvTraceGetObjectNumber(), then
prvTraceGetObjectType(), then vTraceSetObjectName() - with the name of
the queue being set in the call to vTraceSetObjectName().