Skip to main content
konovod
Visitor II
July 23, 2015
Question

Bug in STM32Cube FreeRTOS wrapper (with fix)

  • July 23, 2015
  • 2 replies
  • 714 views
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
    This topic has been closed for replies.

    2 replies

    Nesrine M_O
    Associate
    July 23, 2015
    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
    Associate
    October 27, 2015
    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-