Lab1 - Keil MDK - ARM and FRDM - KL46Z
Lab1 - Keil MDK - ARM and FRDM - KL46Z
University
University of
of Engineering
Engineering and
and Technology
Technology
Processes Week
and Operating systems 9&10
Practice
Outline
• FRDM-KL46Z Overview.
• Keil Microcontroller Development
Kit for ARM (MDK – ARM)
3
FRDM-KL46Z Overview
FRDM-KL46Z Platform
• Developed by Freescale → NXP
• The FRDM-KL46Z is an ultra-low-
cost development platform.
• Main Features:
– Set of software and
hardware
tools for evaluating and
developing
microcontroller- based
applications
• IDE: CodeWarrior, Keil, IAR,
Mbed,…
– Kinetis L series KL4x MCU family
built on the ARM® Cortex™-
M0+ processor
4
FRDM-KL46Z Overview
FRDM-KL46Z Platform
• Hardware Overview:
– MKL46Z256VLL4 MCU (48 MHz,
256KB Flash, 32 KB RAM, Low
power)
– 4 digit segment LCD
module
– Capacitive touch slider
– Ambient light sensor
– MMA8451Q accelerometer
– MAG3110 Magnetometer
– 2 user LEDs
– 2 user push buttons
– Expand header
– Programmable OpenSDA
debug interface
5
FRDM-KL46Z References
Overview
References:
• FRDM-KL46Z User’s Manual:
• FRDM-KL46Z Schematic
6
FRDM-KL46Z
OpenSDA
Hardware
Interface
Description
OpenSDA: open-standard serial and debug adapter
provides a simple interface for loading
an OpenSDA Application
into the control processor’s Control processor
non-volatile memory.
PC Reset KL46Z
User Application: Raw binary (.bin) and Motorola S-record (.srec) files
[Open SDA User’s Guide ]
8
Exercise:1:
Exercise Running
RunningDemo
Demoapplication
application
-Method 1: Connect KL46Z kit to computer by KL46USB Port
- Method 2: Using OpenSDA interface by SDA Port
• Ensure that MSD Flash Programmer is load into
OpenSDA (Removable drive FRDM-KL46Z appear on host
computer).
• Copy & paste FRDMKL46_Demo_freedom.srec file (from
BBC/Example) to the FRDM-KL46Z drive.
• The new application should now be running on the
FRDM- KL46Z drive.
9
Exercise:1:
Exercise Running
RunningDemo
Demoapplication
application
10
Outline
• FRDM-KL46Z Overview.
• Keil Microcontroller Development Kit
for ARM (MDK – ARM)
11
Development Tool chain Overview (KEIL)
Overview
➢ Keil MDK-ARM: Keil Microcontroller Development Kit for ARM
helps you to create embedded applications for ARM Cortex-M processor-
based devices.
- MDK provides the tools and the environment to create and debug
applications using C/C++ or assembly language.
- Includes the µVision® IDE, debugger, compiler, assembler, linker,
middleware libraries, CMSIS.
12
Development Tool chain Overview (KEIL)
Overview
Microcontroller Development Kit Core
14
Keil Microcontroller Development Kit for ARM
Development Tool chain Overview (KEIL)
(MDK – ARM)
Overview
Software Pack Installer
15
Development Tool chain Overview (KEIL)
Overview
Verify the Installation using Example Projects
16
Development Tool chain Overview (KEIL)
CMSIS Overview
17
CMSIS: UsingTool
Development CMSIS - CORE
chain Overview (KEIL)
Usage of CMSIS-CORE in applications that run natively on a Cortex-M processor.
=> Bare-metal system, because it uses no real-time operating system.
Using CMSIS – CORE: A native Cortex-M application with CMSIS uses the software component
::CMSIS:CORE, together with the software component ::Device:Startup.
These components provide the following central files:
18
Development Tool chain Overview (KEIL)
19