cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in STM32Cube FreeRTOS wrapper (with fix)

konovod
Associate
Posted on July 23, 2015 at 12:19

Hello.

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);

instead.

Also, there is another misuse of size_of in the same file at line 936.

---

Looks like there is already topic about it:

https://my.st.com/ffa1c357

sorry for duplication
2 REPLIES 2
Nesrine M_O
Lead II
Posted on July 23, 2015 at 15:23

Hi,

I will report the issue to our development team.

Thank you for the information and sorry for the inconvenience that it may bring.

-Syrine-

Nesrine M_O
Lead II
Posted on October 27, 2015 at 10:42

Hi,

Your reported issue is confirmed and fixed in the FreeRTOS V8.2.1, embedded in the new release of STM32 CubeF4 1.9.0 

-Syrine-