Skip to main content
sute
Associate III
Oct 25, 2023 8:25 AM UTC
Solved

STM32CubeIDE debug FreeRTOS queues

I am trying to view and debug the queues in my FreeRTOS project. To do this, I have to add the queues to registry with vQueueAddToRegistry. However, vQueueAddToRegistry takes an argument to a QueueHandle_t and in the project generated with STM32CubeMX I only have queue handles with the type osMessageQueueId_t. How do I get a QueueHandle_t that can be added to registry?

This topic has been closed for replies.
sute
suteBest answer
Associate III
Oct 25, 2023 9:50 AM UTC

Figured this out that I can just do a type cast and it seems the queues are already in the registry as long as the registry size is configured to be big enough in CubeMX.

1 reply

sute
suteAuthorBest answer
Associate III
Oct 25, 2023 9:50 AM UTC

Figured this out that I can just do a type cast and it seems the queues are already in the registry as long as the registry size is configured to be big enough in CubeMX.