Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z



Similar documents
Building and Debugging a project using Keil MDK-ARM Eclipse plug-in

Virtual Office Remote Installation Guide

CLEARONE DOCUMENT (REVISION 1.0) October, with Converge Pro Units

Using DAVE with MDK Version 5

Installing Remote Desktop Connection

3. USB DRIVER Installation of USB driver Driver for Infinity SD Data Logger. INFINITY Series Acquisition Tools Manual

Creating a Project with PSoC Designer

Guide for Remote Control PDA

DIRECT INTERNET 3. Install Guide for the Mac OS Operating System

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

Running the R4 Software on a USB Port

Procedure for updating Firmware of EZ4 W or ICC50 W

DEPLOYING A VISUAL BASIC.NET APPLICATION

Celluon Laserkey - User Guide for Microsoft Windows XP

To successfully initialize Microsoft Outlook (Outlook) the first time, settings need to be verified.

Export the address book from the Blackberry handheld to MS Outlook 2003, using the synchronize utility in Blackberry Desktop Manager.

Troubleshooting Guide

ScanShell.Net Install Guide

1. Right click using your mouse on the desktop and select New Shortcut.

OMEGA STUDIO SOFTWARE INSTALLATION GUIDE

Midland BT Updater BTUpdater Program Program file (x86) ), Midland


Downloading Images and Movies from a Digital Camera to OLYMPUS Master 2

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Installing S500 Power Monitor Software and LabVIEW Run-time Engine

Congratulations on your purchase of a BPM Microsystems device programmer. Your new device programmer was designe d to provid e years of suppor t for

Tech Tips Helpful Tips for Pelco Products

1. Open the preferences screen by opening the Mail menu and selecting Preferences...

How to install USB driver (MICRO/I)

Driver Installation for Windows XP Home Edition and Windows XP Professional

Getting Started with Kinetis SDK (KSDK)

Software Installation Requirements

ProjectWise Explorer V8i User Manual for Subconsultants & Team Members

Centurion PLUS CPC4 Download Guide

Quick Start Using DASYLab with your Measurement Computing USB device

How to setup a network printer using HP Universal Printer Driver

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

Installing the USB driver for Firmware 7 or later For use with E-blocks programmer boards and PICmicro Development boards.

Crown Field Support Engineering

Getting Started with the LabVIEW Embedded Module for ARM Microcontrollers 1.0 For the Keil MCB2300

Installation Instructions for 9555 USB Driver

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

NEWTECH INFOSYSTEMS, INC. NTI Backup Now EZ. NTI Backup Now EZ User's Guide

Colorfly Tablet Upgrade Guide

EE8205: Embedded Computer System Electrical and Computer Engineering, Ryerson University. Introduction to Keil uvision and ARM Cortex M3

ENABLE LOGON/LOGOFF AUDITING

Fujitsu SCSI Scanner Installation Procedures Windows 95\98\98SE\ME\2000\XP\Vista

Programmazione Microcontrollori

BushSoft Accounts - Installation manual

How to Connect to Berkeley College Virtual Lab Using Windows

Working with Office Applications and ProjectWise

Centran Version 4 Getting Started Guide KABA MAS. Table Of Contents

Tutorial Build a simple IBM Rational Publishing Engine (RPE) template for IBM Rational DOORS

Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

XConsole GUI setup communication manual September 2010.

Connecting your Blackberry to Aliant Hosted Exchange. Instructions for connecting Blackberry hand-held devices to Aliant Hosted Exchange

To add Citrix XenApp Client Setup for home PC/Office using the 32bit Windows client.

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

KI6501 Data Manager. Software User Manual

Kepware Technologies KEPServerEX Client Connectivity Guide for GE's Proficy ifix

CMP-102U. Quick Installation Guide

How to Download Images Using Olympus Auto-Connect USB Cameras and Olympus Master

SA-9600 Surface Area Software Manual

How to setup a VPN on Windows XP in Safari.

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

Guide to Installing BBL Crystal MIND on Windows 7

BASLER ACE QUICK INSTALLATION GUIDE

Data Logging Software and Cable Bundle Model DL-SC3 User Manual. Overview

How to install USB driver (MICRO/I)

Instructions for Installing and Using the FOCUS DL-15 Data Transfer Software

How schedule AccuTRConsole to run every hour

FLASH PROCEDURE for GSM BENTEL and DSC cards

Use Remote Desktop capabilities to Access your Work PC from home over VPN

Sirona SIDEXIS Installation

Getting Started with MozyPro Online Backup Online Software from Time Warner Cable Business Class

The FlexiSchools Online Order Management System Installation Guide

User s Manual. Management Software for ATS

Voice over IP. Orator Dictation Voice-over-IP Quick Start Installation Guide

How to Install Applications (APK Files) on Your Android Phone

Iridium Satellite Phonebook Tool Version H2PT0901 User Guide v3.2

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Entire Connection Version 4.2.1

Print Server Application Guide

Flip Video Digital Camcorder Startup Guide and Making Movies Tutorial Trevor Oakley, Teen Services Librarian, Saratoga Springs Public Library

Installing Java 5.0 and Eclipse on Mac OS X

DRIVER INSTALLATION PROCEDURE WINDOWS 8 (32 or 64 BIT)

UM1969 User manual. Getting started with STM32F746G discovery software development tools. Introduction

The FlexiSchools Online Order Management System Installation Guide

Olympus DSSPlayer Pro R5

NAS 249 Virtual Machine Configuration with VirtualBox

Do not connect the printer to your computer s USB port until step #10

13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES

How to install and use the File Sharing Outlook Plugin

DIRECT INTERNET 3. Install Guide for the Windows XP Operating System

Industrial Security Facilities Database (ISFD) Troubleshooting Tips

Configuring the SST DeviceNet OPC Server

Printer Sharing of the PT-9500pc in a Windows Environment

owncloud Configuration and Usage Guide

Installer Assistance Windows XP

PCLinq2 Hi-Speed USB Bridge-Network Cable. Quick Network Setup Guide

Transcription:

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z This tutorial is intended for starting a new project to develop software with Freescale FRDM-KL25Z board using Keil Microcontroller Development Kit for ARM (MDK-ARM) version 5.11a. Starting version 5 the device support software components are separated from the MDK software and called Device Family Packs. As release v5.11a, many ARM microcontroller Device Family Packs are available. Software development with Device Family Packs is slightly different from software development in MDK v4. 1 of 16

Create a New Project in Keil MDK v5.11a 1. Launch Keil uvision IDE by double clicking on the icon. If the icon was not created by the installation, open the folder where Keil MDK was installed (by default C:\Keil_v5). Under the folder UV4 you should find UV4.exe. Right click and hold on UV4.exe then drag it to the desktop. Release the mouse button then select Create shortcuts here. A short cut like the one above will be created. 2. From menu, select Project>New uvision Project 2 of 16

3. In the Create New Project dialog box, click New folder. Browse to a folder location where you would like to create your project folder. 4. Type in the folder name, for example Blinky511a then click the Open button. This will create a folder named Blinky511a to hold all the files for the new project. It will also take you inside that folder. 3 of 16

5. While in the project folder, type Blinky in the File name field and click Save button. This creates a project with the project named Blinky. For the new MDK v5 project, the project file has the file extension of.uvprojx (the MDK v4 and MDK v5 with legacy package creates project file with extension of.uvproj. 6. The Project Wizard will prompt you to select the device type for the project target. You may drill down the device family tree to find MKL25Z128xxx4. If you installed a large number of supported devices, it may be a large task to find the device in the family trees. In that case, type in part of the device name in the Search field and the matching devices will appear in the window below. 4 of 16

7. Next, the Project Wizard will help you manage the run-time environment. Expand the Software Component selections and check CMSIS>CORE and Device>Startup then click OK button. 8. You should see a target created in the Project pane. If you click the + signs to open the target, you would see the CMSIS and startup codes were created in the project. Click New button for a new text file in the editing window. 5 of 16

9. Copy the code below into the new text file window. This is a simple program to blink the red LED on the FRDM-KL25Z board. // This program blinks the red LED on the FRDM-KL25 board. // The red LED is connected to PORTB pin 18 and is low active. #include <MKL25Z4.H> void delay(int n) { int i; for(i = 0; i < n; i++) ; } int main (void) { SIM->SCGC5 = 0x0400; PORTB->PCR[18] = 0x0100; FPTB->PDOR = 0x40000; FPTB->PDDR = 0x40000; // enable clock to Port B // make pin PTB18 as GPIO // switch Red/Green LED off // enable PTB18/19 as Output } while(1) { FPTB->PCOR = 0x40000; delay(5000000); FPTB->PSOR = 0x40000; delay(5000000); } // make the pin output low // make the pin output high 6 of 16

10. Click Save button to save the file with the code. By default the file will be saved in the project folder. 11. Give the file name Blinky.c and click Save button. The editor is context sensitive. Once you make it a C source file, the file content will change the color. 7 of 16

12. Once the source file is saved, it needs to be associated with the project. Right click on Source Group 1 and select Add Existing Files to Group Source Group 1 13. Locate the file Blinky.c, click select it then click the Add button. Click Close button to proceed. 14. Once the file is added to the project, it will appear in under Source Group 1. 8 of 16

15. Click Build button to build the project. 16. You should get a clean build with this project. 9 of 16

17. Once we have a project built, we need to configure the debug interface so that we may download the program to the target and test it. Make sure the FRDM-KL25Z board is connected to the computer with the USB cable. 18. Click Options for Target button. 19. Select Debug tab. Click the pull-down menu on the right and select Pemicro OSJtag/Multilink/Cyclone. Click the radio button before Use:. 10 of 16

20. Check Load Application at Startup and Run to main(). Click the Settings button. 21. In the next P&E Connection Manager dialog box, pull down the Interface: and select OpenSDA Embedded Tower Debug - USB Port. 11 of 16

22. If the board is properly connected to the computer, the Port: information should recognize the USB connection. If the Port: field does not display a USB connection, you might want to verify the P&E driver installation. 23. In the Target CPU Information, pull down the CPU selection and select KL25Z128M4. If you don t see choices for CPU, the P&E Driver update was not completed properly. Go back and try to reinstall the update and make sure it is installed at the same folder Keil MDK-ARM was installed. 12 of 16

24. Make sure Use SWD is checked then click the OK button. 25. Click on the Start/Stop Debug Session button. 13 of 16

26. The programmer message window will pop up and the programming of the target device starts. 27. If you are using the evaluation version of the Keil uvision, a warning of the code size limitation will pop up after the target device is programmed. 14 of 16

28. The uvision IDE should change into debug perspective. Click Run button and the program should start running and the red LED should blink. 29. To stop the debug session and return to the build project perspective, click on the Start/Stop Debug Session button. 15 of 16

30. Congratulations! You have successfully finished the first programming project for FRDM-KL25Z board using Keil MDK v5 uvision IDE! 16 of 16