Skip to main content
rreay
Associate
September 10, 2014
Question

STM32CubeMX, FreeRTOS and Signals

  • September 10, 2014
  • 4 replies
  • 1688 views
Posted on September 10, 2014 at 16:50

I use CubeMX to add FreeRTOS to my project, currently running on a 429 discovery board. Cube adds FreeRTOS and a CMSIS-RTOS wrapper.

I'd like the use the FreeRTOS Event Groups or the CMSIS-RTOS Signals but Event Groups don't appear to be included and Signals remain unimplemented in cmsis_os.c

Am I missing something or are these features just not there?

#stm32cubemx #freertos
This topic has been closed for replies.

4 replies

gvigelette
Associate II
September 11, 2014
Posted on September 11, 2014 at 02:14

Hi Rob,

The FreeRTOS version used in STM32Cube is 7.6 which didn't contain event groups, not sure what you are trying to accomplish but the CMSIS has signal management and generic wait functions that should be able to accomplish similar functionality as event groups.  I included some links to the api documentation, hopefully it helps.  The other solution would be to update the FreeRTOS version to 8.x.x manually and use the native functionality that you are looking for.

http://www.keil.com/pack/doc/cmsis_rtx/group___c_m_s_i_s___r_t_o_s___signal_mgmt.html

http://www.keil.com/pack/doc/cmsis/RTOS/html/group___c_m_s_i_s___r_t_o_s___wait.html

rreay
rreayAuthor
Associate
September 11, 2014
Posted on September 11, 2014 at 15:35

The signal management functions aren't implemented in the cmsis_os.c file included by CubeMX.  I guess half of what I was asking was did I miss a configuration that I needed to make CubeMX generate that code.

I mentioned event groups because I assumed that was how the CMSIS-RTOS Signal Management would have been implemented, I didn't realize that Event Groups weren't in 7.6.  

I can get a similar effect with a MessageQ of ints but the advantage of the signals functions is the ability to wait on multiple signals 

Oussema Hajjem_O
Visitor II
September 30, 2014
Posted on September 30, 2014 at 16:12

Hi Rob,

I confirm that signal management are not implemented in the actual CMSIS-RTOS wrapper, because we are using the FreeRTOS v7.6

The next STM32Cube release will be based on FreeRTOS v8, so the event groups will be available.

Thanks and regards.

stefan239955_stm1_stmicro_com
Visitor II
April 1, 2015
Posted on April 01, 2015 at 13:48

Hi LEO

I still miss the signal management implementation.

Please, can you comment on that?

Thanks and regards.