cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX FreeRTOS bug

erik23
Associate
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
2 REPLIES 2
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Amel NASRI
ST Employee
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.