cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CUBE RTOS STATE Not showing all Queues/Semaphores

NMartin
Associate III

Hello, 

I am trying to use the STM32CUBE RTOS STATE panel within VSCode as opposed to setting a watch variable for xQueueRegistry, but the state panel does not match what is shown in the queue registry. Only the first queue is shown. 

NMartin_0-1764276589115.png

NMartin_1-1764276266856.png
Also, I am curious how to get Semaphores to show up in the semaphores portion of the tree in the state panel. The semaphores I am using are binary semaphores which under the hood are just generic queues.
NMartin_2-1764276444019.png

 

 

1 REPLY 1
LaurentL
ST Employee

Hello,

For the Semaphores that are just generic queues, I would say it is normal to not see them as Semaphores.

But why we don't see all the Queues, I don't know.

I remember that we had an issue to list the registry queue.

Do you have a msg in console debug log like "Missing symbol: xQueueRegistrySize." ?

In order for RTOS_proxy to return objects (Semaphores and Queues) from the queue registry, your application must have this code :

uint32_t xQueueRegistrySize = configQUEUE_REGISTRY_SIZE;

Check that the code is not optimized because variable not used.

I had to add this line in the appli code : 

uint32_t temp = xQueueRegistrySize;

The first line was added in global and this one in main.

Can you try this to see the queues.

 
Rgds,

Laurent

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.