How can I manage communication between tasks using queues in FreeRTOS?

How can I manage communication between tasks using queues in FreeRTOS? My queue data seems to be getting lost, and I'm encountering the error: "Queue send failed". Here's my queue creation and send code:
xQueue = xQueueCreate(10, sizeof(int));
int value = 42;
xQueueSend(xQueue, &value, portMAX_DELAY);

@Middleware & OS @Helper
Solution
@ZacckOsiemo
It's been resolved and my code works better now after adding the function that confirms if the queue was actually created, regarding d syntax error seems I didn't add a ; were it was required, this little error caused me almost a day of headache, thanks for the help guys, @everyone

This is my code now 👇
Was this page helpful?