• Materials in this course is the property of Amr Ali Abdel-Naby.. • Reproduction or transmission of the materials in any manner without the copyright owner permission is a law violation
Trang 1Introduction to uCOS-II V2.6
Trang 2About SwiftACT
• A Technology services startup company
o Under establishment
• Areas of specialties:
o Mobile telecommunication services development
o Embedded systems development
Trang 3About Me
• Graduated 2004
o ECE, ASU: 5 yrs distinction
• 5+ years in embedded systems development
Trang 4• Materials in this course is the property of Amr Ali Abdel-Naby
• Reproduction or transmission of the materials in any manner without the copyright owner permission is a law violation
Trang 5Course References
• MicroC/OS-II The Real-Time Kernel, 2nd Edition, by Jean J Labrosse
Trang 6• Mutual Exclusion Semaphores
• Event Flag Management
• Message Mailbox Management
• Message Queue Management
• Memory Management
Trang 7• Mutual Exclusion Semaphores
• Event Flag Management
• Message Mailbox Management
• Message Queue Management
• Memory Management
Trang 8• 1000s applications are using it all over the world.
• A good starting point to experience real-time OS
• Simple but yet very powerful
Trang 9µC/OS-II in Literature
• Four books were published to explain the internals:
o “μC/OS The Real-Time Kernel”, in 1992
o “μC/OS-II The Real-Time Kernel”, in 1998
o “μC/OS-II The Real-Time Kernel”, Second Edition in 2002
o “μC/OS-III The Real-Time Kernel”, in 2009
Trang 10µC/OS-II History
µC/OS-II V2.86
µC/OS-II V2.52
µC/OS-II V2.00
µC/OS
µC/OS V1.08
+ Memory Manager
+ Stack Checking
+ CPU Load Checking
µC/OS-II V2.00
+ Safety Critical
+ Mutexes + Semaphores
+ Event Flags
µC/OS-II V2.52
+ Timers +
250 Tasks + MMU & MPU
µC/OS-II V2.86
+
RR Scheduling
+ Infinite # of Tasks
&
Services
Trang 13• Highly portable ANSI C
• Assembly is kept minimum
• Supports 8-, 16-, 32-, 64- bit processors
• Ported over 100 different processors
• All ports are freely available
Trang 15• Use the service you only need
o Very few services Complete services available
o A group of #defines determines scalability.
• Minimum footprint = 2 KB
Trang 16• Fully preemptive
• Always runs the highest priority task that is ready to run
• Comparable with other preemptive kernels
Task Y ISR
Trang 17• Manages up to 64 tasks
• 8 tasks are used by µC/OS-II
• 56 tasks are left to applications
• A unique task/priority
• RR and FIFO are not supported
Trang 18• The only exceptions are OSTimeTick & some event flag services.
Trang 19Task Stacks
• Each task has its stack
• μC/OS-II allows different stack sizes
• Stack checking utility
• You can determine & decide how much stack is needed for each task
Trang 21Interrupt Management
• An interrupt can suspend a task execution
• The highest priority ready task runs after serving the interrupt
• Nested interrupts
o Up to 255 level
ISR
Trang 22Robust & Reliable
• Used by many products
• Support
• Tested & certified in safety critical systems
Trang 24µC/OS-II Market
• Distributors all over the word
• Huge customer list
Trang 25o If µC/OS will be distributed with your product as a binary
• Not royalty free