Skip to main content
erik23
Visitor II
July 25, 2014
Question

STM32CubeMX FreeRTOS bug

  • July 25, 2014
  • 2 replies
  • 746 views
Posted on July 25, 2014 at 06:01

In both the STM32F2 V1.1 and STM32F4 V1.3 repositories, there is a bug in the FreeRTOS definition for a mailbox. In cmsis_os.h the definition for osMailQDef is missing a semicolon. Show below with highlight of missing semicolon.

&sharpif defined (osObjectsExternal)  // object is external

&sharpdefine osMailQDef(name, queue_sz, type) \

extern struct os_mailQ_cb *os_mailQ_cb_♯&sharpname

;

\

extern osMailQDef_t os_mailQ_def_♯&sharpname

&sharpelse                            // define the object

&sharpdefine osMailQDef(name, queue_sz, type) \

struct os_mailQ_cb *os_mailQ_cb_♯&sharpname

;

\

osMailQDef_t os_mailQ_def_♯&sharpname =  \

{ (queue_sz), sizeof (type), (&os_mailQ_cb_♯&sharpname) }

&sharpendif

#stm32cubemx
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
July 25, 2014
Posted on July 25, 2014 at 17:12

Please report [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx]CubeMX issues in it's own forum where ST staff are actively supporting it.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Amel NASRI
Technical Moderator
April 24, 2015
Posted on April 24, 2015 at 12:15

Hello Eric,

The reported bug will be fixed in next cmsis_os version that will be embedded in all coming Cube packages.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.