MDK-ARM Keil, MDK-ARM Datasheet - Page 17

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Getting Started: Building Applications with RL-ARM
17
Setting-Up a Project
The first exercise in the examples accompanying this book provides a PDF
document giving a detailed step-by-step guide for setting up an RTX project.
Here we will look at the main differences between a standard C program and an
RTOS-based program. First, our µVision project is defined in the default way.
This means that we start a new project and select a microcontroller from the
®
µVision Device Database
. This will add the startup code and configure the
compiler, linker, simulation model,
debugger, and Flash programming
algorithms. Next, we add an empty C
module and save it as
to start a C-
main.c
based application. This will give us a
project structure similar to that shown
on the right. A minimal application
program consists of an Assembler file
for the startup code and a C module.
The RTX configuration is held in the
file
that must be added to
RTX_Config.c
your project. As its name implies,
holds the configuration
RTX_Config.c
settings for RTX. This file is specific to
the ARM processor-based
microcontroller you are using. Different versions of the file are located in
.
C:\KEIL\ARM\STARTUP
If you are using an ARM7 or ARM9-based microcontroller, you can select the
correct version for the microcontroller family you are using and RTX will work
“out-of-the-box”. For Cortex-M-based microcontrollers there is one generic
configuration file. We will examine this file in more detail later, after we have
looked more closely at RTX and understood what needs to be configured.
To enable our C code to access the RTX API, we need to add an include file to
all our application files that use RTX functions. To do this you must add the
following include file in main.
#include <RTL.h>

Related parts for MDK-ARM