MDK-ARM Keil, MDK-ARM Datasheet - Page 23
![KIT REALVIEW MCU DEVELOPMENT](/photos/9/32/93274/mdk-arm_sml.jpg)
MDK-ARM
Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Specifications of MDK-ARM
For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 23 of 156
- Download datasheet (3Mb)
Getting Started: Building Applications with RL-ARM
23
The first task can create further active tasks with the os_tsk_create() function.
This launches the task and assigns its task ID number and priority. In the
example above we have two running tasks, task2 and task3, of the same priority,
which will both be allocated an equal share of CPU runtime. While the
os_tsk_create() call is suitable for creating most tasks, there are some additional
task creation calls for special cases.
It is possible to create a task and pass a parameter to the task on startup. Since
tasks can be created at any time while RTX is running, a task can be created in
response to a system event and a particular parameter can be initialized on
startup.
tskID3 = os_tsk_create_ex (Task3, priority, parameter);
When each task is created, it is also assigned its own stack for storing data during
the context switch. This task stack is a fixed block of RAM, which holds all the
task variables. The task stacks are defined when the application is built, so the
overall RAM requirement is well defined. Ideally, we need to keep this as small
as possible to minimize the amount of RAM used by the application. However,
some tasks may have a large buffer, requiring a much larger stack space than
other tasks in the system. For these tasks, we can declare a larger task stack,
rather than increase the default stack size.
static U64 stk4 [400/8];
A task can now be declared with a custom stack size by using the
os_tsk_create_user() call and the dedicated stack.
tskID4 = os_tsk_create_user (Task4, priority, &stk4, sizeof (stk4));
Finally, there is a combination of both of the above task-creating calls where we
can create a task with a large stack space and pass a parameter on startup.
static U64 stk5 [400/8];
tskID5 = os_tsk_create_user_ex (Tsk5, prio, &stk5, sizeof (stk5), param);
Exercise: Tasks
This exercise presents the minimal code to start the RTOS and create two
running tasks.
Related parts for MDK-ARM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MDK-ARM-B](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-B-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM-B
Manufacturer:
Keil Software
![MDK-ARM-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM
Manufacturer:
Keil Software
![MDK-ARM-BASIC](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-UF](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM UPG TO FLOATING LIC
Manufacturer:
Keil Tools
![MDK-ARM-F](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM W/ FLOATING LICENSE
Manufacturer:
Keil Software
![MDK-ARM3.1](/photos/26/86/268691/landingpagekeilrealviewarmkit_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM uVISION & C++ & RTX
Manufacturer:
Keil Tools
![MDK-ARM-SMB](/images/no-image3.png)
Part Number:
Description:
Development Software SUPP LICENSE RENEWAL 90+ DAYS NO TECH SUP
Manufacturer:
Keil Software
![KEIL-PK51-INTL](/images/manufacturer_photos/0/6/609/silicon_laboratories_inc_tmb.jpg)
Part Number:
Description:
KEIL C-COMPILER INTERNATIONAL
Manufacturer:
Silicon Laboratories Inc
![OM10045](/photos/9/21/92162/om10045_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR LPC213X ARM MCU
Manufacturer:
NXP Semiconductors
Datasheet:
![TWR-K60N512-KEIL](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
K60N512 Keil Tower Kit
Manufacturer:
Freescale Semiconductor
Datasheet: