This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to wait for multiple threads on CMSIS-RTOS API

Hi, experts.

I'm recently working on CMSIS-RTOS API with MDK-ARM V5.1, on STM32F103 MCU.

I'd like to know how to wait for multiple threads.(and mode)

and

I'd like to know how to wait for any one of thread.(or mode)

I've find the example of waiting for one thread.

  refer to:

  http://www.keil.com/pack/doc/cmsis/RTOS/html/group___c_m_s_i_s___r_t_o_s___signal_mgmt.html#ga38860acda96df47da6923348d96fc4c9

But, I can't find the example of waiting for multiple threads.

I'm appreciated for your prompt response.

Sincerely yours

Nagaoka

Parents
  • Hello Tino,

    did you have a look at the example projects that are part of MDK v5? Usually, the RTOS-Blinky project comes with four threads that are simulating a stepper motor driver. Please check this example: open Pack Installer, go to the Examples tab, filter for Category "Getting Started" and Copy the CMSIS-RTOS Blinky (MCBSTM32F200). Opening the project, please check the source code. This should explain how to work with multiple threads. Also, check the documentation for CMSIS-RTOS RTX available at CMSIS-RTOS RTX: CMSIS-RTOS compliant Kernel.

    Kind regards,

    Christopher

Reply
  • Hello Tino,

    did you have a look at the example projects that are part of MDK v5? Usually, the RTOS-Blinky project comes with four threads that are simulating a stepper motor driver. Please check this example: open Pack Installer, go to the Examples tab, filter for Category "Getting Started" and Copy the CMSIS-RTOS Blinky (MCBSTM32F200). Opening the project, please check the source code. This should explain how to work with multiple threads. Also, check the documentation for CMSIS-RTOS RTX available at CMSIS-RTOS RTX: CMSIS-RTOS compliant Kernel.

    Kind regards,

    Christopher

Children