Micro-Controller Operating Systems

MicroC/OS (μC/OS)
DeveloperMicrium, Inc.,
Silicon Labs
Written inANSI C
Working stateCurrent
Source modelOpen-source as of 2020
Initial release1991; 33 years ago (1991)
Latest releaseOS-III / 2016; 8 years ago (2016)
Repositorygithub.com/weston-embedded/uC-OS3
Marketing targetEmbedded devices
Available inEnglish
PlatformsARM Cortex-M3, -M4F, ARM7TDMI; Atmel AVR; eSi-RISC, and many others
Kernel typeReal-time microkernel
Default
user interface
μC/GUI
LicenseApache as of 2020; former Commercial, freeware education use
Official websiteweston-embedded.com/micrium/overview
Micrium OS
DeveloperSilicon Labs
Written inANSI C
Working stateCurrent
Source modelOpen-source
Initial release2020; 4 years ago (2020)
Latest releasePart of Gecko Platform 4.2.0.0,[1] part of Gecko SDK 4.2.0.0[2] / December 14, 2022; 2 years ago (2022-12-14)
Repositorygithub.com/SiliconLabs/gecko_sdk/tree/gsdk_4.2/platform/micrium_os
Marketing targetEmbedded devices
Available inEnglish
Platformsexclusively Silicon Labs silicon
Kernel typeReal-time microkernel
LicenseApache
Official websitewww.silabs.com/developers/micrium-os
Cesium RTOS
DeveloperWeston Embedded Solutions
Written inANSI C
Working stateCurrent
Source modelCommercial
Initial releaseJune 23, 2020; 4 years ago (2020-06-23) (forked from uC/OS-III V3.08.00)[3]
Latest releaseCs/OS3 3.09.02[3] / June 23, 2023; 17 months ago (2023-06-23)[3]
Marketing targetEmbedded devices
Available inEnglish
Platforms50+ unclear whether there is a 1-to-1 overlap with μC/OS
Kernel typeReal-time microkernel
LicenseCommercial
Official websiteweston-embedded.com/products/cesium

Micro-Controller Operating Systems (MicroC/OS, stylized as μC/OS, or Micrium OS) is a real-time operating system (RTOS) designed by Jean J. Labrosse in 1991. It is a priority-based preemptive real-time kernel for microprocessors, written mostly in the programming language C. It is intended for use in embedded systems.

MicroC/OS allows defining several functions in C, each of which can execute as an independent thread or task. Each task runs at a different priority, and runs as if it owns the central processing unit (CPU). Lower priority tasks can be preempted by higher priority tasks at any time. Higher priority tasks use operating system (OS) services (such as a delay or event) to allow lower priority tasks to execute. OS services are provided for managing tasks and memory, communicating between tasks, and timing.[4]

History

The MicroC/OS kernel was published originally in a three-part article in Embedded Systems Programming magazine and the book μC/OS The Real-Time Kernel by Labrosse.[5] He intended at first to simply describe the internals of a portable OS he had developed for his own use, but later developed it as a commercial product in his own company Micrium, Inc. in versions II and III.

In 2016 Micrium, Inc. was acquired by Silicon Laboratories[6] and it was subsequently released as open-source under the Apache license.

Silicon Labs continues to maintain an open-source product named Micrium OS for use on their own silicon[7] and a group of former Micrium, Inc. employees (including Labrosse) provides consultancy and support for both μC/OS and Cesium RTOS, a proprietary fork made just after the open-source release.[8]

μC/OS-II

Based on the source code written for μC/OS, and introduced as a commercial product in 1998, μC/OS-II is a portable, ROM-able, scalable, preemptive, real-time, deterministic, multitasking kernel for microprocessors, and digital signal processors (DSPs). It manages up to 64 tasks. Its size can be scaled (between 5 and 24 Kbytes) to only contain the features needed for a given use.

Most of μC/OS-II is written in highly portable ANSI C, with target microprocessor-specific code written in assembly language. Use of the latter is minimized to ease porting to other processors.

Uses in embedded systems

μC/OS-II was designed for embedded uses. If the producer has the proper toolchain (i.e., C compiler, assembler, and linker-locator[clarification needed]), μC/OS-II can be embedded as part of a product.

μC/OS-II is used in many embedded systems, including:

Task states

μC/OS-II is a multitasking operating system. Each task is an infinite loop and can be in any one of the following five states (see figure below additionally)

Further, it can manage up to 64 tasks. However, it is recommended that eight of these tasks be reserved for μC/OS-II, leaving an application up to 56 tasks.[9]

Kernels

The kernel is the name given to the program that does most of the housekeeping tasks for the operating system. The boot loader hands control over to the kernel, which initializes the various devices to a known state and makes the computer ready for general operations.[10] The kernel is responsible for managing tasks (i.e., for managing the CPU's time) and communicating between tasks.[11] The fundamental service provided by the kernel is context switching.

The scheduler is the part of the kernel responsible for determining which task runs next.[12] Most real-time kernels are priority based. In a priority-based kernel, control of the CPU is always given to the highest priority task ready to run. Two types of priority-based kernels exist: non-preemptive and preemptive. Nonpreemptive kernels require that each task do something to explicitly give up control of the CPU.[12] A preemptive kernel is used when system responsiveness is more important. Thus, μC/OS-II and most commercial real-time kernels are preemptive.[13] The highest priority task ready to run is always given control of the CPU.

Assigning tasks

Tasks with the highest rate of execution are given the highest priority using rate-monotonic scheduling.[14] This scheduling algorithm is used in real-time operating systems (RTOS) with a static-priority scheduling class.[15]

Managing tasks

In computing, a task is a unit of execution. In some operating systems, a task is synonymous with a process, in others with a thread. In batch processing computer systems, a task is a unit of execution within a job. The system user of μC/OS-II is able to control the tasks by using the following features:

  • Task feature
  • Task creation
  • Task stack & stack checking
  • Task deletion
  • Change a task's priority
  • Suspend and resume a task
  • Get information about a task[16]

Managing memory

To avoid fragmentation, μC/OS-II allows applications to obtain fixed-sized memory blocks from a partition made of a contiguous memory area. All memory blocks are the same size, and the partition contains an integral number of blocks. Allocation and deallocation of these memory blocks is done in constant time and is a deterministic system.[17]

Managing time

μC/OS-II requires that a periodic time source be provided to keep track of time delays and timeouts. A tick should occur between 10 and 1000 times per second, or Hertz. The faster the tick rate, the more overhead μC/OS-II imposes on the system. The frequency of the clock tick depends on the desired tick resolution of an application. Tick sources can be obtained by dedicating a hardware timer, or by generating an interrupt from an alternating current (AC) power line (50 or 60 Hz) signal. This periodic time source is termed a clock tick.[18]

After a clock tick is determined, tasks can be:

  • Delaying a task
  • Resume a delayed task

Communicating between tasks

Intertask or interprocess communication in μC/OS-II occurs via: semaphores, message mailbox, message queues, tasks, and interrupt service routines (ISRs). They can interact with each other when a task or an ISR signals a task through a kernel object called an event control block (ECB). The signal is considered to be an event.

μC/OS-III

μC/OS-III is the acronym for Micro-Controller Operating Systems Version 3, introduced in 2009 and adding functionality to the μC/OS-II RTOS.

μC/OS-III offers all of the features and functions of μC/OS-II. The biggest difference is the number of supported tasks. μC/OS-II allows only 1 task at each of 255 priority levels, for a maximum of 255 tasks. μC/OS-III allows any number of application tasks, priority levels, and tasks per level, limited only by processor access to memory.[19][20]

μC/OS-II and μC/OS-III are currently maintained by Micrium, Inc., a subsidiary of Silicon Labs, and can be licensed per product or per product line.

Uses in embedded systems

The uses are the same as for μC/OS-II

Task states

μC/OS-III is a multitasking operating system. Each task is an infinite loop and can be in any one of five states (dormant, ready, running, interrupted, or pending). μC/OS-III supports an unlimited number of task priorities but configuring μC/OS-III to have between 32 and 256 task priorities typically suits most embedded systems well.[21]

Round robin scheduling

When two or more tasks have the same priority, the kernel allows one task to run for a predetermined amount of time, named a quantum, and then selects another task. This process is termed round robin scheduling or time slicing. The kernel gives control to the next task in line if:

  • The current task has no work to do during its time slice, or
  • The current task completes before the end of its time slice, or
  • The time slice ends.

Kernels

The kernel functionality for μC/OS-III is the same as for μC/OS-II.

Managing tasks

Task management also functions the same as for μC/OS-II. However, μC/OS-III supports multitasking and allows an application to have any number of tasks. The maximum number of tasks is limited by only the amount of computer memory (both code and data space) available to the processor.

A task can be implemented viarunning to scheduled completion, in which the task deletes itself when it is finished, or more typically as an infinite loop, waiting for events to occur and processing those events.

Managing memory

Memory management is performed in the same way as in μC/OS-II.

Managing time

μC/OS-III offers the same time managing features as μC/OS-II. It also provides services to applications so that tasks can suspend their execution for user-defined time delays. Delays are specified by a number of either clock ticks, or hours, minutes, seconds, and milliseconds.

Communicating between tasks

Sometimes, a task or ISR must communicate information to another task, because it is unsafe for two tasks to access the same specific data or hardware resource at once. This can be resolved via an information transfer, termed inter-task communication. Information can be communicated between tasks in two ways: through global data, or by sending messages.

When using global variables, each task or ISR must ensure that it has exclusive access to variables. If an ISR is involved, the only way to ensure exclusive access to common variables is to disable interrupts. If two tasks share data, each can gain exclusive access to variables by either disabling interrupts, locking the scheduler, using a semaphore, or preferably, using a mutual exclusion semaphore. Messages can be sent to either an intermediate object called a message queue, or directly to a task, since in μC/OS-III, each task has its own built-in message queue. Use an external message queue if multiple tasks are to wait for messages. Send a message directly to a task if only one task will process the data received. While a task waits for a message to arrive, it uses no CPU time.

Ports

A port involves three aspects: CPU, OS, and board specific (BSP) code. μC/OS-II and μC/OS-III have ports for most popular processors and boards in the market and are suitable for use in safety critical embedded systems such as aviation, medical systems, and nuclear installations. A μC/OS-III port involves writing or changing the contents of three kernel specific files: OS_CPU.H, OS_CPU_A.ASM, and OS_CPU_C.C. Finally create or change a board support package (BSP) for the evaluation board or target board being used. A μC/OS-III port is similar to a μC/OS-II port. There are significantly more ports than listed here, and ports are subject to continuous development. Both μC/OS-II and μC/OS-III are supported by popular SSL/TLS libraries such as wolfSSL, which ensure security across all connections.

Licensing change

After acquisition by Silicon Labs, Micrium in 2020 changed to open-source model licensing in February 2020. This includes uC/OS III, all prior versions, all components: USB, file system, GUI, TCP/IP, etc.

Documentation and support

Support is available via a typical support forum, and several comprehensive books, of which some are tailored to a given microcontroller architecture and development platform, as free PDFs, or as low-cost purchase in hard-cover. Paid support is available from Weston Embedded Solutions.

References

  1. ^ "Gecko Platform 4.2.0.0 GA" (PDF). 2022-12-14. Retrieved 2023-01-04.
  2. ^ "gecko_sdk Releases on github.com". GitHub. Retrieved 2023-01-04.
  3. ^ a b c "Cs/OS3 Release Notes". Weston Embedded Solutions.
  4. ^ "NiosII GCC with MicroC/OS". School of Electrical and Computer Engineering. Cornell University. June 2006. Retrieved 25 April 2017.
  5. ^ Labrosse, Jean J. (15 June 2002). μC/OS The Real-Time Kernel (2nd ed.). CRC Press. ISBN 978-1578201037.
  6. ^ "What is Micrium?". Weston Embedded Solutions. Retrieved 2023-01-04.
  7. ^ "Micrium Software and Documentation". Retrieved 2023-01-04.
  8. ^ "Why Cesium RTOS?". Weston Embedded Solutions. Retrieved 2023-01-04.
  9. ^ Labrosse, Jean J. MicroC/OS-II: The Real Time Kernel (2nd ed.). p. 77.
  10. ^ Wikiversity:Operating Systems/Kernel Models#Monolithic Kernel
  11. ^ Labrosse, Jean J. MicroC/OS-II: The Real Time Kernel (2nd ed.). p. 39.
  12. ^ a b Labrosse, Jean J. MicroC/OS-II: The Real Time Kernel (2nd ed.). p. 40.
  13. ^ Labrosse, Jean J. MicroC/OS-II: The Real Time Kernel (2nd ed.). p. 42.
  14. ^ Liu, Chung Lang; Layland, James W. (1973). "Scheduling algorithms for multiprogramming in a hard real-time environment". Journal of the ACM. 20 (1): 46–61. CiteSeerX 10.1.1.36.8216. doi:10.1145/321738.321743. S2CID 59896693.
  15. ^ Bovet, Daniel. "Understanding The Linux Kernel". Archived from the original on 2014-09-21.
  16. ^ Labrosse, Jean J. MicroC/OS-II: The Real Time Kernel (2nd ed.). pp. 45–49.
  17. ^ Labrosse, Jean J. MicroC/OS-II: The Real Time Kernel (2nd ed.). pp. 273–285.
  18. ^ Labrosse, Jean J. MicroC/OS-II: The Real Time Kernel (2nd ed.). pp. 145–152.
  19. ^ "μC/OS-II and μC/OS-III Features Comparison". Micrium.
  20. ^ "μC/OS-III overview". Micrium.
  21. ^ https://media.digikey.com/PDF/Data%20Sheets/Micrium%20PDFs/UC_OS-III_RTOS.pdf#:~:text=Micrium%E2%80%99s%20%CE%BCC%2FOS-III%20supports%20ARM7%2F9%2C%20Cortex-MX%2C%20Nios-II%2C%20PowerPC%2C%20Coldfire%2C,are%20available%20for%20download%20from%20the%20Micrium%20website.

Sources

Read other articles:

Anime television series Not to be confused with Technotise. TexhnolyzeNorth American cover of the first DVD volumeGenreCyberpunk[1][2]Psychological thriller[3]Surrealism[1] Anime television seriesDirected byHiroshi HamasakiProduced byHenry GotōSatoshi ShikataYasuyuki UedaYoshimichi MurataWritten byChiaki J. KonakaMusic byKeishi UrataHajime MizoguchiStudioMadhouseLicensed byAUS: Universal/SonyNA: FunimationUK: MVM FilmsOriginal networkF...

 

Mexican politician This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Patricia Mercado – news · newspapers · books · scholar · JSTOR (April 2011) (Learn how and when to remove this template message...

 

1962 filmLa FayetteDirected byJean DrévilleWritten byJean Bernard-LucJean DrévilleFrançois PonthierSuzy PrimJacques SigurdProduced byJean DrévilleStarringPascale Audret Jack HawkinsMichel Le RoyerOrson WellesCinematographyRoger HubertClaude RenoirEdited byRené Le HénaffMusic byPierre DuclosSteve LaurentProductioncompaniesLes Films CopernicCosmosDistributed byComacico (France)Release date8 February 1962 (France) (premiere)Running time158 minutesCountryFrance/ItalyLanguageFrench/EnglishBu...

Stadium in Miami Gardens, Florida Dolphin Stadium redirects here. For the stadium in Queensland, Australia, see Dolphin Stadium (Brisbane). Hard Rock StadiumExterior view of Hard Rock Stadium,as seen in January 2020Former names List Joe Robbie Stadium (1987–1996) Pro Player Park (1996) Pro Player Stadium (1996–2005) Dolphins Stadium (2005–2006) Dolphin Stadium (2006–2009) Land Shark Stadium (2009–2010) Sun Life Stadium (2010–2016) New Miami Stadium (2016) Hard Rock Stadium (2016�...

 

شتايناو أن در شتراسه    شعار   الإحداثيات 50°19′00″N 9°28′00″E / 50.316666666667°N 9.4666666666667°E / 50.316666666667; 9.4666666666667  [1] تقسيم إداري  البلد ألمانيا[2][3]  خصائص جغرافية  المساحة 104.86 كيلومتر مربع (31 ديسمبر 2017)[4]  ارتفاع 175 متر  عدد السكان  عد...

 

Seluncur indahIsabelle Delobel dan Olivier Schoenfelder dalam dansa es.Induk organisasiUni Skating InternasionalKarakteristikAnggota timPerorangan, berpasangan, bereguGender campuranAdaPeralatanSepatu skating indahKeberadaanOlimpiade1908 (di Olimpiade Musim Panas sebelum adanya Olimpiade Musim Dingin pertama pada tahun 1924) Seluncur indah (bahasa Inggris: figure skating) adalah cabang olahraga Olimpiade yang melombakan kemahiran olahragawan berseluncur dalam nomor perlombaan perorangan, berp...

Untuk kegunaan lain, lihat Kasihan (disambiguasi). Bagian dari seri tentangEmosi Afeksi Kemarahan Kecemasan Derita Jengkel Pengharapan Kegelisahan Ketakacuhan Kegairahan Kekaguman Kebosanan Kepercayaan Kejijikan Kepuasan Keberanian Keingintahuan Depresi Hasrat Keputus asaan Kekecewaan Kemuakan Ketidakpercayaan Ekstasi Kejengahan Empati Entusiasme Iri Euforia Ketakutan Frustasi Perasaan bersyukur Kenestapaan Rasa bersalah Kebahagiaan Kebencian Harapan Horor Permusuhan Penghinaan Minat Kecembur...

 

Синелобый амазон Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:ЗавропсидыКласс:Пт�...

 

Sekretaris Jenderal ke-11 Jaap de Hoop Scheffer bertemu Presiden George W. Bush pada tanggal 2 Maret 2006.[1] Sekretaris Jenderal Pakta Pertahanan Atlantik Utara (NATO) adalah ketua Dewan Atlantik Utara, organisasi pembuat keputusan tertinggi aliansi pertahanan ini. Sekretaris Jenderal juga menjabat sebagai kepala sta organisasi dan juru bicaranya.[2] Selain tugas-tugas resmi ini, Sekretaris Jenderal harus membina hubungan dekat dengan kepala negara setiap negara NATO dan beke...

2018 single by Kylie MinogueStop Me from FallingSingle by Kylie Minoguefrom the album Golden Released9 March 2018 (2018-03-09)Recorded2017Genre Pop[1] country pop[2] Length3:01Label Darenote BMG Songwriter(s) Kylie Minogue Sky Adams Steve McEwan Danny Shah Producer(s)Sky AdamsKylie Minogue singles chronology Dancing (2018) Stop Me from Falling (2018) Golden (2018) Music videosStop Me from Falling on YouTubeStop Me from Falling (Remix) on YouTubeGente de Zona re...

 

Pelepasan sebuah lampion terbang saat perayaan Yi Peng di dekat Chiang Mai, Thailand Lampion terbang adalah lampion udara tradisional yang ditemukan di beberapa kebudayaan Asia. Lampion ini dibuat dari kertas yang sudah diminyaki dan terpasang pada bingkai bambu, di dalamnya terpasang lilin kecil atau sel bahan bakar lainnya lilin. Ketika menyala, api memanaskan udara di dalam lampion, sehingga menurunkan kepadatan dan menyebabkan lampion naik ke udara. Di Indonesia, lampion terbang dinyalaka...

 

Short-fuselage derivative of the Airbus A300 airliner A310 redirects here. For other uses, see A310 (disambiguation). A310 An A310, landing gear and flaps extended, from Air Transat, formerly one of its largest operators Role Wide-body aircraftType of aircraft National origin Multinational[a] Manufacturer Airbus First flight 3 April 1982; 42 years ago (1982-04-03) Introduction April 1983 with Swissair Status In limited service Primary users Mahan AirULS Airlines...

追晉陸軍二級上將趙家驤將軍个人资料出生1910年 大清河南省衛輝府汲縣逝世1958年8月23日(1958歲—08—23)(47—48歲) † 中華民國福建省金門縣国籍 中華民國政党 中國國民黨获奖 青天白日勳章(追贈)军事背景效忠 中華民國服役 國民革命軍 中華民國陸軍服役时间1924年-1958年军衔 二級上將 (追晉)部队四十七師指挥東北剿匪總司令部參謀長陸軍�...

 

Welsh professional golfer For the Australian actor, see Steve Dodd. For the Australian footballer, see Steven Dodd. For the police officer killed by an IRA bomb, see Harrods bombing. Stephen DoddPersonal informationFull nameStephen Christopher DoddBorn (1966-07-15) 15 July 1966 (age 57)Cardiff, WalesHeight5 ft 11 in (1.80 m)Weight187 lb (85 kg; 13.4 st)Sporting nationality WalesResidenceBarry, WalesCareerTurned professional1990Current tour(s)European Se...

 

A historical river-side town in the Perak Upper District For the federal constituency represented in the Dewan Rakyat, see Pasir Salak (federal constituency). This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Pasir Salak – news · newspapers · books · scholar · JSTOR (December 2009) (Learn how and when to remov...

Este artículo o sección necesita referencias que aparezcan en una publicación acreditada. Busca fuentes: «Hotel» – noticias · libros · académico · imágenesEste aviso fue puesto el 1 de abril de 2017. Para otros usos de este término, véase Hotel (desambiguación). El Hotel Negresco (5 estrellas) en Niza, Francia. El Hotel Kämp (5 estrellas) en Helsinki, Finlandia. Un hotel es un edificio planificado y acondicionado para otorgar servicios de alojamiento a las ...

 

For other uses, see Chenzhou (disambiguation). Prefecture-level city in Hunan, People's Republic of ChinaChenzhou 郴州市Prefecture-level cityChen River and the residential on the river bank in Chenzhou CityChenzhou's administrative area in HunanChenzhouLocation of the city center in HunanCoordinates (Chenzhou municipal government): 25°46′12″N 113°00′58″E / 25.770°N 113.016°E / 25.770; 113.016CountryPeople's Republic of ChinaProvinceHunanMunicipal sea...

 

American politician (born 1945) Carolyn Cheeks KilpatrickMember of theU.S. House of Representativesfrom MichiganIn officeJanuary 3, 1997 – January 3, 2011Preceded byBarbara-Rose CollinsSucceeded byHansen ClarkeConstituency15th district (1997–2003)13th district (2003–2011)Member of theMichigan House of RepresentativesIn officeJanuary 1, 1979 – January 1, 1997Preceded byJackie Vaughn IIISucceeded byKwame KilpatrickConstituency18th district (1979–1982)8th district (19...

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (يوليو 2017) أولمبيك مراكش شعار النادي الاسم الكامل نادي أولمبيك مراكش (نادي عند علي سابقا) تأسس عام 2001 الملعب ملعب الح�...

 

Questa voce o sezione sugli argomenti conflitti e storia d'Italia non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti dei progetti di riferimento 1, 2. Guerre di LombardiaData1423 – 1454 LuogoLombardia EsitoPace di Lodi del 1454 Modifiche territoriali Venezia ottiene Bergamo e Brescia da Milano il confine dei due stati viene fissato su...