ITRON History ITRON1 – designed for 8 and 16 bit MCU ITRON2 – support 32 bit MCU μITRON2 – adaptation for low-cost MCU μITRON3 – scalability enhancements.

Slides:



Advertisements
Similar presentations
EMBEDDED SYSTEM SOFTWARE AND RTOS BASICS DIAGRAMS
Advertisements

Processing Order: Cooperative vs. Preemptive Process B2 Process A Process C Process B1 Process D Process A (low priority, cyclic) Process C (high priority,
Uniprocessor Scheduling Chapter 9 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College, Venice,
Real Time Versions of Linux Operating System Present by Tr n Duy Th nh Quách Phát Tài 1.
CMPT 401 Summer 2007 Dr. Alexandra Fedorova Lecture III: OS Support.
CMPT 401 Dr. Alexandra Fedorova Lecture III: OS Support.
3.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Process An operating system executes a variety of programs: Batch system.
Håkan Sundell, Chalmers University of Technology 1 Evaluating the performance of wait-free snapshots in real-time systems Björn Allvin.
More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
The eCos real-time operating system an open source tool to create embedded kernels and applications.
Real-Time Library: RTX
Tutorial 3 - Linux Interrupt Handling -
Chapter 6: Process Synchronization
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 6: Process Synchronization.
Chapter 5 Processes and Threads Copyright © 2008.
UEE072HM Developing a small scheduler. Processes Understanding the process is the key to a system –Created through compilation, linking and loading –Requires.
1 When to Switch Processes 3 triggers –System call, Interrupt and Trap System call –when a user program invokes a system call. e.g., a system call that.
Operating system Part three Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
MicroC/OS-II Embedded Systems Design and Implementation.
Process Description and Control A process is sometimes called a task, it is a program in execution.
Performance Evaluation of Real-Time Operating Systems
Outline Introduction to MQX Initializing and starting MQX
SOC Consortium Course Material SoC Design Laboratory Lab 8 Real-time OS - 2 Speaker: Yung-Chih Chen Advisor: Prof. Chun-Yao Wang November 17, 2003 Department.
1 I-Logix Professional Services Specialist Rhapsody IDF (Interrupt Driven Framework) CPU External Code RTOS OXF Framework Rhapsody Generated.
Scheduling Basic scheduling policies, for OS schedulers (threads, tasks, processes) or thread library schedulers Review of Context Switching overheads.
1 RTOS Design Some of the content of this set of slides is taken from the documentation existing on the FreeRTOS website
Tami Meredith, Ph.D. CSCI  Devices need CPU access  E.g., NIC has a full buffer it needs to empty  These device needs are often asynchronous.
Operating Systems Lecture 7 OS Potpourri Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard. Zhiqing Liu School of Software.
Threads G.Anuradha (Reference : William Stallings)
4P13 Week 3 Talking Points 1. Process State 2 Process Structure Catagories – Process identification: the PID and the parent PID – Signal state: signals.
Overview Task State Diagram Task Priority Idle Hook AND Co-Routines
RTX - 51 Objectives  Resources needed  Architecture  Components of RTX-51 - Task - Memory pools - Mail box - Signals.
ECGR-6185 µC/OS II Nayana Rao University of North Carolina at Charlotte.
MicroC/OS-II S O T R.  MicroC/OS-II (commonly termed as µC/OS- II or uC/OS-II), is the acronym for Micro-Controller Operating Systems Version 2.  It.
1 VxWorks 5.4 Group A3: Wafa’ Jaffal Kathryn Bean.
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
Spring/2002 Distributed Software Engineering C:\unocourses\4350\slides\DefiningThreads 1 More on Thread API.
Introduction Contain two or more CPU share common memory and peripherals. Provide greater system throughput. Multiple processor executing simultaneous.
Copyright © Curt Hill More on Operating Systems Continuation of Introduction.
Mutual Exclusion -- Addendum. Mutual Exclusion in Critical Sections.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Transmitter Interrupts Review of Receiver Interrupts How to Handle Transmitter Interrupts? Critical Regions Text: Tanenbaum
WORKING OF SCHEDULER IN OS
REAL-TIME OPERATING SYSTEMS
Process concept.
Advanced Operating Systems CIS 720
Topics Covered What is Real Time Operating System (RTOS)
OPERATING SYSTEMS CS3502 Fall 2017
O/S State Diagrams © 2004, D. J. Foreman.
System Structure and Process Model
System Structure and Process Model
Chapter 3: Windows7 Part 2.
System Structure B. Ramamurthy.
Computer System Overview
Chapter 3: Windows7 Part 2.
Mid Term review CSC345.
Last Week Introduced operating systems Discussed the Kernel
Lecture Topics: 11/1 General Operating System Concepts Processes
Process Description and Control
Lecture 2 Part 2 Process Synchronization
Process Description and Control
Process Description and Control
Process Description and Control
Process Description and Control
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Process Description and Control in Unix
Process State Model -Compiled by Sheetal for CSIT
Process Description and Control in Unix
Mr. M. D. Jamadar Assistant Professor
Linux Scheduling CSE 2431: Introduction to Operating Systems
Presentation transcript:

ITRON History ITRON1 – designed for 8 and 16 bit MCU ITRON2 – support 32 bit MCU μITRON2 – adaptation for low-cost MCU μITRON3 – scalability enhancements μITRON4 – compatibility enhancement Targeted for 32 bit MPU The first spec for ITRON Kernel Targeted for 8-bit and 16-bit MCU Scalability Enhancement Compatibility Enhancement Copyright © 2011 DSR Corporation 1

ITRON Usage (cont. ) Copyright © 2011 DSR Corporation 2

Configure the System RTOS configuration file Source files for the task Source files for the interrupt handler Configurator Compiling and linking Software Components Object file To ROM RTOS Libraries Software Components Other Libraries.c and.h files are generated as a result of configurator functioning Copyright © 2011 DSR Corporation 3

Task States (cont.) Copyright © 2011 DSR Corporation 4

Scheduling Rules (cont.) Scheduling example Task A of the highest priority Task B, C, D of the middle priority Task E of the lowest priority Workflow Task A terminates, task B moves to RUNNING state If task B goes to WAITING or SUSPENDEND state and then back to READY, it has the lowest precedence If Task A is reactivated, Task B is pre-empted and return to the READY state, it has the highest precedence Copyright © 2011 DSR Corporation 5

Dispatch Pending State Dispatch does not occur (dispatch pending state) – During execution of processing units with higher precedence than that of the dispatcher – The CPU in locked state – Dispatch disabled state Task state transition into SUSPENDED or DORMANT state is hold until dispatch is turned on – Task state transition may be done using service calls from non-task context Low priority task A is running Dispatch pending state during interrupt handler execution High priority task B is activated from interrupt handler Task state changes only after dispatcher executes Copyright © 2011 DSR Corporation 6

Semaphore (cont.) Semaphore usage example Semaphore acquire req. Semaphore acquired Semaphore (SID1) Work with shared resources Release semaphore Semaphore acquire req. Work with shared resources Sem. resource number = 0 Sem. resource number = 1 Start Semaphore acquired Dispatch Wait release, dispatch Task 1 (Priority: Low) Task 2 (Priority: High) Copyright © 2011 DSR Corporation 7

Eventflag (cont.) Eventflag usage example Event flag is cleared Set event flag 01 Release waiting flag=01 flag=00 Wait for event 11 Starting Dispatch Wait release, dispatch Task 1 (Priority: Low) Eventflag Task 2 (Priority: High) Copyright © 2011 DSR Corporation 8

Data Queue (cont.) Data queue functioning example: wait for receive Empty queue Data queue Receive message Release waiting Send message Wait release, dispatch Task 1 (Priority: Low) Task 2 (Priority: High) Dispatch Receive wait Copyright © 2011 DSR Corporation 9

Data Queue (cont.) Data queue functioning example: asynchronous send 1 message in queue Start Task 1 (Priority: Low) Data queue Task 2 (Priority: High) Time Send a message Empty queue Receive message Empty queue Copyright © 2011 DSR Corporation 10

Data Queue (cont.) Data queue functioning example: wait for send Queue is full Send a message Receive message Data queue Put data to queue Send-wait state Dispatch Wait release, dispatch Task 1 (Priority: Low) Data queue Task 2 (Priority: Low) Copyright © 2011 DSR Corporation 11

References μITRON4.0 Specification _en.pdf _en.pdf RTEMS ITRON 3.0 Users Guide eCOS μITRON API ITRON short description FAQ of ITRON Specification OS TOPEERS/JSP Copyright © 2011 DSR Corporation 12