1 / 7

LPC2148 ARM7 myKernel Details

LPC2148 ARM7 myKernel Details. - Bhavin Kamdar. Keil’s RTX Kernel Features. MyKernel Features. myKernel Memory map. The first 4096+256 bytes of RAM space is reserved for the kernel and task stack Each task is assigned 512 bytes of stack (512 * 8=4096 bytes)

sirius
Download Presentation

LPC2148 ARM7 myKernel Details

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LPC2148 ARM7 myKernel Details - BhavinKamdar

  2. Keil’s RTX Kernel Features

  3. MyKernel Features

  4. myKernel Memory map • The first 4096+256 bytes of RAM space is reserved for the kernel and task stack • Each task is assigned 512 bytes of stack (512 * 8=4096 bytes) • The kernel requires 256 bytes of memory to store task stack pointers, task return addresses and other scheduler variables

  5. myKernel Scheduler • The scheduler for myKernel is written completely in assembly to have full control over task stack and context switching. • Scheduler executes in privilged mode of ARM whereas all task are executed in user mode only. • Two complementary functions are provided in scheduler to add and remove tasks.

  6. myKernel Scheduler (cntd) • Each task is given a time slice of 10ms • The task context during a task switch is saved and retrieved from the task stack only • Scheduler identifies task by a 8 bit process ID (PID).

  7. Mutex / Task lists • Each peripheral (UART0, GLCD, MMC and BT module) has its own binary semaphore • Semaphore checking is implemented in assembly to provide true Read-while-write access • Also each peripheral has an optional task list which allows access to peripheral in turn.

More Related