Keil Logo

CMSIS: RTOS: Execution hangs in while loop inside osRTXThreadListPut()

Information in this knowledgebase article applies to:

  • CMSIS RTOS Migration: RTX to RTX5
  • ARM CMSIS Pack: v4.5.0 to v5.0.1<>li


My application originally used CMSIS RTOS RTX. Now, in migrating to CMSIS RTOSv2 API and RTX 5 for new features, I also want to maintain an earlier code base.

By keeping the include to "cmsis_os.h", threads can be declared the same way as in the earlier CMSIS RTX. However, my application hangs in a while loop inside a function called "osRTXThreadListPut()".


New RTX_Config.h has not been setup like the original RTOS.


In the project window, go to the file "RTX_Config.h". Under the section "Thread Configuration", enable "Object specific memory allocation" to setup thread specific memory allocation. Many applications will require this option. Then modify the area below to match the original RTX's configuration file, "RTX_Conf_CM.c". The idle thread's stack size can also be specified in this section.



Last Reviewed: Wednesday, April 12, 2017

Did this article provide the answer you needed?
Not Sure
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.