Question
STM32CubeMX FreeRTOS bug
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