AnsweredAssumed Answered

Bug in STM32Cube FreeRTOS wrapper (with fix)

Question asked by andrey.konovod on Jul 23, 2015
Latest reply on Jul 23, 2015 by Nesrine M
There is a bug in the cmsis_os.c file:
at line 757:
  return xQueueCreate(queue_def->queue_sz, (uint32_t) sizeof(queue_def->item_sz));

sizeof(item_sz) is always 4, so all queues are created with element size = 4, not item_sz.
It should be
  return xQueueCreate(queue_def->queue_sz, (uint32_t) queue_def->item_sz);
Also, there is another misuse of size_of in the same file at line 936.

Looks like there is already topic about it:
sorry for duplication