lab_09_note - Contents 1.

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Contents 1. Overview......................................................................................................................................2 2. Background Information..............................................................................................................2 2.1. About μC/OS-II................................................................................................................2 2.2. Task in μC/OS-II..............................................................................................................2 2.3. Task Scheduling & Context Switch .................................................................................3 2.4. Coding Guidelines for Embedded RTOS.........................................................................4 2.5. Starting μC/OS-II.............................................................................................................5 2.6. Setting up the ARMulator ................................................................................................6 3. Instructions...................................................................................................................................6 3.1. Building μC/OS-II............................................................................................................6 3.2. Porting Program to μC/OS-II...........................................................................................8 3.3. Building Program with μC/OS-II...................................................................................11 4. Exercise......................................................................................................................................13 5. References..................................................................................................................................14 Real-Time OS 1. Overview This lab is a guide to Real-time Operating System (RTOS) in SoC design. This lab is based on μC/OS-II, a compact but complete RTOS shipped with ARM Firmware Suite (AFS). Internal mechanism of μC/OS-II is beyond the scope of this lab. For more detailed information about μC/OS-II, please refer to the book “MicroC/OS-II, the real-time kernel” by Jean J. Labrosse. 2. Background Information 2.1. About μC/OS-II z Soft Real-time – tasks are performed as fast as possible z Portable – runs on architectures ranging from 8-bit to 64 bit z Scalable – features are configurable at compile time z Multitasking – support 64 tasks simultaneously; including 8 reserved tasks z Preemptive – preemptive multi-tasking with priority scheduling z Kernel Services – provides task, time, memory management API; inter-process communication API; task synchronization API z Nested Interrupt – up to 255 levels of nested interrupt z Priority Inversion Problem – does not support priority inheritance z Not using MMU – no well protected memory space like Unix or Win 2.2. Task in μC/OS-II 2....
View Full Document

Page1 / 15

lab_09_note - Contents 1.

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online