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
  • BigG
    0 BigG over 3 years ago in reply to msimon
    msimon said:
    which one is better a native FreeRTOS or a FreeRTOS with CMSIS-RTOS?

    I personally cannot answer that question as I've not spent much time learning about FreeRTOS. I am sure there are others like Jan Cumps who can provide expert opinion.

    mbedOS is now much more mature. Up to version 6.15 the last time I checked. What I like about it is that it does not require you to set up the configuration settings to use it. It just works well for what I want to do. It is also very well structured and well documented so once you know the basics you can quickly move onto more advanced optimizations to suit your particular hardware. Based on the commercial applications I have seen, I cannot see why certification will be a problem. Also from what I've come across online, bare metal programming still tends to work better for time critical real-time applications.

    Another newer packaged RTOS system for consideration is the Zephyr project. https://zephyrproject.org/

    At the end of the day, it's complexity that wrecks most projects. Keeping it as simple as you can always pays dividends. So best of luck.

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

    Thanks BigG. I agree that bare metal is the best but structuring and maintaining the code can be difficult in a complex system. A schedular can simplifies things significantly. 

    I also heard that Zephyr is getting popular. I need to keep eye on it. Btw, I am not developing a product, I am preparing a course. I want something commercial and mature so students can benefit. 

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

    Aha, I see. Not sure if you've come across this site. Has a useful overview of the different options out there. https://www.osrtos.com/

    Appears fairly up to date. Looking through the list I've come across TinyOS, ContikiOS and then MongooseOS for ESP32/ESP8266. TI have a version too: www.ti.com/.../TI-RTOS-MCU (and oops almost forgot https://www.silabs.com/developers/micrium)

    Then I know Microsoft are pushing their own commercial RTOS too, by way of Azure RTOS (https://azure.microsoft.com/en-us/services/rtos/) and AWS offer their version of freeRTOS too (aws.amazon.com/.../).

    Hope that helps.

    PS. speaking of courses have you seen this one from ARM: www.arm.com/.../real-time-operating-systems

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

    Thanks for the sources BigG. I didn't see osrtos that is an interesting site thanks. 

    Personally, I love TI MSPs. Though they are not user friendly, you learn the underlying system. But, we have STM32 boards, that is one of the reason TI-RTOS is not an option. Micrium is also a good option as it is the other widely used RTOS.

    Yes, I am aware of ARM courses. That is one of the sources I will follow for the background work. 

    • 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 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
Reply
  • 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
Children
  • 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
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