element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum CMSIS-RTOS
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 19 replies
  • Subscribers 461 subscribers
  • Views 6873 views
  • Users 0 members are here
  • rtos
Related

CMSIS-RTOS

msimon
msimon over 3 years ago

Hi everyone, 

I want to dive into RTOS for microcontrollers. I decided to use FreeRTOS then I came across CMSIS-RTOS. If I get it correct it is a wrapper for RTOSs so you can change underlying RTOS without chancing your code.  I wonder are there any real benefits of using CMSIS-RTOS rather than using native RTOS like FreeRTOS interface?

Thanks.

  • Sign in to reply
  • Cancel

Top Replies

  • Jan Cumps
    Jan Cumps over 3 years ago in reply to msimon +4
    Self promotion :) : balearicdynamics and I made a project last year , with FreeRTOS, that uses most of the principles there: scheduler and task semaphore/mutex message queue events and inter…
  • phoenixcomm
    phoenixcomm over 3 years ago +3
    FreeRTOS is very capable. why do you want to wrap it? In larger RealTime projects we do two things in this order 1. launch the OS like Debian. 2 now launch the task scheduler which is interrupt-driven…
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to BigG +3
    MBED OS and CMSIS-RTOS are changing so fast that I can't follow anymore what they are, what they wrap and what they are based upon I know TI-RTOS and FreeRTOS fairly well. Although they are completely…
Parents
  • BigG
    0 BigG over 3 years ago

    You could try mbedOS. I believe it's based off CMSIS-RTOS. os.mbed.com/.../index.html

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • msimon
    0 msimon over 3 years ago in reply to BigG

    FreeRTOS can be also used with CMSIS-RTOS. I can put it this way, which one is better a native FreeRTOS or a FreeRTOS with CMSIS-RTOS?

    BigG, why do you prefer mbedOS over FreeRTOS? Is it easy usage and mass libraries or are there any technical advantages? 

    I used mbed platform long time ago it is good for fast prototyping but it has so many abstractions that hides many things like Arduino platforms. I want something that can be used for real-time applications which can be also certified if required. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 3 years ago in reply to BigG

    MBED OS and CMSIS-RTOS are changing so fast that I can't follow anymore what they are, what they wrap and what they are based upon Slight smile

    I know TI-RTOS and FreeRTOS fairly well. Although they are completely different, I find it easy to switch and port between the two, because the concepts are the same:

    • scheduler
    • tasks
    • messages and queues
    • semaphores
    • events (between tasks)

    If I had to make a training :) that's targeting a particular vendor or controller, I'd choose an OS that has good examples from that vendor.
    If you then build a training example for the concepts above, I think you handle the 80% that's common between all of the RTOSes. 

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • msimon
    0 msimon over 3 years ago in reply to Jan Cumps

    Thanks  Jan Cumps. Therefore, I think it is better to go with native FreeRTOS. I am targeting STM32 because we have STM32 kits but I want it to be vendor independent. I think FreeRTOS is not bad as it can support many vendors.

    As you mentioned, schedulers, tasks, semaphores, mutex, messages, events, interrupts are main elements and I want to cover those. Those are fundamentals. I just want to make sure, the thing I am teaching is the most beneficial. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • BigG
    0 BigG over 3 years ago in reply to msimon

    Normally I don't pay much attention to emailed newsletters but this one caught my eye as the latest from ST mentions Azure RTOS with STM32F7.

    www.st.com/.../x-cube-azrtos-f7.html

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 3 years ago in reply to msimon

    Self promotion :) : balearicdynamics and I made a project last year, with FreeRTOS, that uses most of the principles there:

    • scheduler and task
    • semaphore/mutex
    • message queue
    • events and inter-task messages
    • tasks going to sleep
    • interrupt 

    additional:

    • controller going to low power
    • controller wakes up via HW interrupt when data arrives on UART and kicks off a message.
    • wifi
    • AWS IoT / MQTT

    image

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • msimon
    0 msimon over 3 years ago in reply to BigG

    It is interesting. I am biased against Microsoft products but this one looks OK. It also supports certifications. However, "X-CUBE-AZRTOS-F7 is only an STM32Cube integration of middleware stacks from Microsoft® Azure® RTOS." It is a bit confusing, I need to look for Azure RTOS in detail. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • msimon
    0 msimon over 3 years ago in reply to Jan Cumps

    Thanks Jan Cumps. It looks like a good example of RTOS project. I will also investigate low power RTOS design but I have a long way to go before I dive into it. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 3 years ago in reply to msimon

    This part is most of the time vendor dependent.
    What is independent: telling FreeRTOS what sleep modes are allowed. FreeRTOS knows when a next job is due and will know how to wake up.
    What is dependent: how you work with HW drivers in low power and wake up FreeRTOS when a HW event happens. Like most of the HW/driver logic, this is not abstracted by the RTOS.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 3 years ago in reply to msimon
    msimon said:
    need to look for Azure RTOS in detail. 

    It's FreeRTOS. My example above uses it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • msimon
    0 msimon over 3 years ago in reply to Jan Cumps

    Sorry, it was reply to BigG's comment but it sit under yours. I have also read you made hello world project with FreeRTOS, blinking an led :) 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • david.long
    0 david.long over 3 years ago in reply to Jan Cumps

    No, Azure RTOS is Threadx - previously a commercial RTOS from Express Logic.

    It has many similarities to FreeRTOS.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • david.long
    0 david.long over 3 years ago in reply to Jan Cumps

    No, Azure RTOS is Threadx - previously a commercial RTOS from Express Logic.

    It has many similarities to FreeRTOS.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Jan Cumps
    0 Jan Cumps over 3 years ago in reply to david.long

    You are right. I was mixing with Amazon's RTOS. That's the one I'm using in my example.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube