AnsweredAssumed Answered

STM32CubeMX FreeRTOS bug

Question asked by larson.erik.001 on Jul 25, 2014
Latest reply on Apr 24, 2015 by Amel N
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.

#if defined (osObjectsExternal)  // object is external
#define osMailQDef(name, queue_sz, type) \
extern struct os_mailQ_cb *os_mailQ_cb_##name; \
extern osMailQDef_t os_mailQ_def_##name
#else                            // define the object
#define osMailQDef(name, queue_sz, type) \
struct os_mailQ_cb *os_mailQ_cb_##name; \
osMailQDef_t os_mailQ_def_##name =  \
{ (queue_sz), sizeof (type), (&os_mailQ_cb_##name) }
#endif

Outcomes