cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in osMailCAlloc (cmsis_os.c)

kelvin2
Associate
Posted on May 29, 2017 at 16:50

I believe there is a bug in the osMailCAlloc function from cmsis_os.c V1.02 (STM32Cube_FW_F1_V1.4.0).

The function will always assign 0 to the first 4 bytes of the block, since sizeof an uint32_t is 4.

if (p) {

  for (i = 0; i < sizeof(queue_id->queue_def->item_sz); i++) {

    ((uint8_t *)p)[i] = 0;

  }

}

#stm32cube #freertos #cmsis
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on February 08, 2018 at 15:19

Hello,

This issue is fixed in the FreeRTOS V9 tag 03032017, already integrated in the STM32CubeF1 firmware package version 1.6.0.

Best Regards

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

2 REPLIES 2
Imen.D
ST Employee
Posted on May 30, 2017 at 10:41

Hi

Nogueira_da_Silva.Ke

,

Thanks for highlighting this issue.

I confirm this bug and it isreported internallyto be fixed in coming versions.

Thanks

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on February 08, 2018 at 15:19

Hello,

This issue is fixed in the FreeRTOS V9 tag 03032017, already integrated in the STM32CubeF1 firmware package version 1.6.0.

Best Regards

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen