0% found this document useful (0 votes)
51 views19 pages

Lab1 - Keil MDK - ARM and FRDM - KL46Z

Uploaded by

Quang Huy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views19 pages

Lab1 - Keil MDK - ARM and FRDM - KL46Z

Uploaded by

Quang Huy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

VietNam National University

University
University of
of Engineering
Engineering and
and Technology
Technology

EMBEDDED SYSTEM FUNDAMENTALS


(ELT3240, NHẬP MÔN HỆ THỐNG NHÚNG)

Dr. Nguyễn Kiêm Hùng


Email: [email protected]

Laboratory for Smart Integrated Systems


Introduction to Vi
Embedded Computing Week 1
gineering and Te
Instruction set Architecture
Week 2&3
Week
CPUs 4

Curriculum Computing Platform


-based Design
Week
5&6

Path Software Design and Week


Analysis 7&8

Processes Week
and Operating systems 9&10

Designing for Week


High Performance 11

System Design Week


Techniques 12&13

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:

• Quick Start Guide for FRDM-KL46Z:

• KL46 Sub-Family Reference Manual

• FRDM-KL46Z Schematic

• FRDM-KL46 Sample Code

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

MSD Flash programmers,


Run-control debug interfaces,
Provide a virtual serial port [Open SDA User’s Guide]
FRDM-KL46Z
Function of
Hardware
OpenSDADescription
Interface
Using the MSD Flash Programmer:
• Ensure that MSD Flash
Programmer is load into OpenSDA
(Removable drive FRDM-KL46Z
appear on host computer).
• Compile user application into Reset
PC KL46Z
Raw binary (.bin) and Motorola S-
record (.srec) files
• Copy & paste .bin or .srec file to the SDA
FRDM-KL46Z drive.
FRDM-KL46Z
• The new application should now be running
on the FRDM-KL46Z drive.
• This function will be tested in next exercise.

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

Cortex Microcontroller Software Interface Standard


13
Keil Microcontroller Development Kit for ARM
Development Tool chain Overview (KEIL)
(MDK – ARM)
Overview
Software Pack Installer

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)

Typical program compilation flow

19

You might also like