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



Similar documents
How To Build A Project On An Eclipse Powerbook For Anarc (Powerbook) On An Ipa (Powerpoint) On A Microcontroller (Powerboard) On Microcontrollers (Powerstation) On Your Microcontroller 2 (Powerclock

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

USB to SPI Device Driver Installation Instructions

TWR-KV31F120M Sample Code Guide for IAR Board configuration, software, and development tools Rev.0

Installation of the MMA955xL CodeWarrior Service Pack Author: Fengyi Li Application Engineer

Installing Service Pack Updater Archive for CodeWarrior Tools (Windows and Linux) Quick Start

Windows 7: Using USB TAP on a Classic CodeWarrior Installation (MGT V9.2 DSC V8.3)

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

UM1790 User manual. Getting started with STM32L053 discovery kit software development tools. Introduction

Processor Expert Software Microcontrollers Driver Suite Getting Started Guide

UM1680 User manual. Getting started with STM32F429 Discovery software development tools. Introduction

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

Installing Service Pack Updater Archive for CodeWarrior Tools (Windows and Linux) Quick Start

UART Boot Loader Design on the Kinetis E Series

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

CodeWarrior Development Studio Floating Licensing Quick Start

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

Getting Started with Kinetis SDK (KSDK)

MED-AFEs Design Reference Manual

Generate Makefiles from Command Line Support in Eclipse-Based CodeWarrior Software

Zynq-7000 Platform Software Development Using the ARM DS-5 Toolchain Authors: Simon George and Prushothaman Palanichamy

Using DAVE with MDK Version 5

How To Develop A Toolstick

Production Flash Programming Best Practices for Kinetis K- and L-series MCUs

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Audio player on KwikStik

INSTALLING AND USING ENTEL PROGRAMMER IN WINDOWS 7 Technical Support Bulletin

Developing an Application for the i.mx Devices on the Linux Platform

MPR121 Serial Communication

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

How to Run the MQX RTOS on Various RAM Memories for i.mx 6SoloX

76-77 GHz RF Transmitter Front-end for W-band Radar Applications

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

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

SIM900 Eclipse environment install Application Note_V1.00

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

Dell Statistica Statistica Enterprise Installation Instructions

Using WinUSB in a Visual Studio Project with Freescale USB device controller

MetaMorph Microscopy Automation & Image Analysis Software Super-Resolution Module

Guide to Installing BBL Crystal MIND on Windows 7

Dell Spotlight on Active Directory Server Health Wizard Configuration Guide

AN655 R ANGE TEST APPLICATION FOR EZRADIO AND EZRADIOPRO. 1. Introduction. 2. Supported Radio Types

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

How to install and use the File Sharing Outlook Plugin

AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

etpu Host Interface by:

RSA Security Analytics Netflow Collection Configuration Guide

RSA Security Analytics Netflow Collection Configuration Guide

HVP-KV31F120M Quick Start Guide

Pulse Redundancy. User Guide

AN104 I NTEGRATING KEIL 8051 TOOLS INTO THE SILICON LABS IDE. 1. Introduction. 2. Key Points. 3. Create a Project in the Silicon Labs IDE

Figure 1. 8-Bit USB Debug Adapter

Initializing the TSEC Controller

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

Server Virtualization with QNAP Turbo NAS and Microsoft Hyper-V

Self Help Guides. Create a New User in a Domain

DS-5 ARM. Using the Debugger. Version 5.7. Copyright 2010, 2011 ARM. All rights reserved. ARM DUI 0446G (ID092311)

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

Getting started with software and firmware environments for the STM32F0DISCOVERY kit

Installation & Activation Guide

Application Development Setup Guide

LANDesk Management Suite 8, v8.1 Creating Custom Vulnerabilities

Prolific USB to SATA Bridge Controller Backup Software User s Manual

Installing the Android SDK

Integrate Cisco IronPort Web Security Appliance (WSA)

Lepide Event Log Manager: Installation Guide. Installation Guide. Lepide Event Log Manager. Lepide Software Private Limited

QorIQ espi Controller Register Setting Considerations and Programming Examples

Symantec Enterprise Vault

Connecting to an SMTP Server Using the Freescale NanoSSL Client

QSG105 GETTING STARTED WITH SILICON LABS WIRELESS NETWORKING SOFTWARE

PnP Driver Installation

Virtual Office Remote Installation Guide

CAE-Link Corporation. Building Design and Engineering Services. Dwg Manager. April AutoCAD 2000i through , CAE-Link Corporation

Quick Start Guide. USB Packet Sniffer/Dongle for Kinetis MKW22D and MKW24D Wireless MCUs USB-KW24D512

Wireless Client Configuration Guide. for third-party wireless Ethernet adapters

AN220 USB DRIVER CUSTOMIZATION

Freescale, the Freescale logo and CodeWarrior are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Xtrinsic is a trademark of

Point-of-Sale (POS) Users Guide Lech José Olmedo Guerrero Jaime Herrerro Gallardo RTAC Americas

MDM Mass Configuration Tool User s Manual

Developing an Application on Core8051s IP-Based Embedded Processor System Using Firmware Catalog Drivers. User s Guide

CONFIGURING MICROSOFT SQL SERVER REPORTING SERVICES

SiI3132 SATARAID5 Quick Installation Guide (Windows version)

Intel Integrated Native Developer Experience (INDE): IDE Integration for Android*

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

GUARD1 PLUS Mini-Attendant File Manager User's Guide Version 2.71

Deploying the Workspace Application for Microsoft SharePoint Online

GFI Product Manual. Outlook Connector User Manual

Installation & Activation Guide. Lepide Active Directory Self Service

StarWind iscsi SAN: Configuring Global Deduplication May 2012

StarWind iscsi SAN Software: Using with Citrix XenServer

Board also Supports MicroBridge

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

SQL Express to SQL Server Database Migration MonitorIT v10.5

Freescale Embedded GUI Converter Utility 2.0 Quick User Guide

Symantec Enterprise Vault

Synology NAS Server. Group Installation Guide Synology NAS Server Group Installation Guide

Transcription:

Freescale Semiconductor Document Number: AN4913 Building and Debugging a project using Keil MDK-ARM Eclipse plug-in Processor Expert Microcontrollers Driver Suite 1. Introduction Processor Expert Microcontrollers Driver Suite is an Eclipse based application for the rapid embedded application development. Processor Expert Microcontrollers Driver Suite does not contain any build tool chains installed by default. It is expected that the user will install appropriate Eclipse plug-ins or will use generated code in 3-rd party development tools. This application note provides steps to configure Keil MDK- ARM Eclipse plug-in and using Processor Expert together with Keil build tool chain. It is expected that Processor Expert Microcontrollers Driver Suite is already installed. Contents 1. Introduction... 1 2. Installing the Keil MDK-ARM tool chain... 1 2.1. Installing of MDK-ARM Microcontroller Development Kit... 1 2.2. Installing of Keil MDK-ARM Eclipse plug-in to Processor Expert Driver Suite Installing the Keil MDK-ARM tool chain... 2 3. Creating Processor Expert Project for Keil MDK-ARM 2 3.1. Checking the startup code is generated into project... 2 3.2. Exporting Processor Expert project into MDK-ARM Development Kit... 3 4. Building Processor Expert Project in uvision 7 2. Installing the Keil MDK-ARM tool chain 2.1. Installing of MDK-ARM Microcontroller Development Kit 1. Install the MDK-ARM Microcontroller Development Kit from ARM web site (http://www.keil.com/arm/mdk.asp). Freescale Semiconductor, Inc., 2014. All rights reserved.

3. Creating Processor Expert Project for Keil MDK-ARM To create Processor Expert project: 1. Select File > New > Processor Expert Project 2. Choose any project name, for example, myapp 3. Click Next. 4. Choose the required Device, for example, Kinetis > MK70 > MK70F > MK70FN1M0xxx12 5. Click Next. 6. If present, select project mode (Linked/Standalone). 6. Click Next. 6. Select compiler Keil ARM C/C++ Compiler. 7. Click Finish. 3.1. Checking the startup code is generated into project 1. Select active Cpu component in the project. 2. In Component Inspector view, select Build options tab. 3. The property Add startup file should be set to yes. If it is set to no, set it to yes. 4. Generate Processor Expert code. Figure 1. Generate Processor Expert code and startup file 2 Freescale Semiconductor

4. Exporting Processor Expert project into MDK-ARM Development Kit There are two possibilities. 1. Check the [Keil_Installation] folder. If there is subfolder Eclipse with file MDKEclipsePlugIn.zip inside you can go to step 4.1. Exporting using MDK-ARM Plug-in. 2. Otherwise go to step 4.2. Exporting using external tool configuration. 4.1. Exporting using MDK-ARM Plug-in 4.1.1. Installing of Keil MDK-ARM Eclipse plug-in 1. In Processor Expert Driver Suite environment, select Help > Install New Software 2. Click Add and select path to Keil Eclipse plugin: [Keil_Installation]/Eclipse/MDKEclipsePlugIn.zip Figure 2. Add Repository 3. Click OK to select plugin to install. 4. Click Next > Finish. 4.1.2. Exporting Processor Expert project 1. To export created project into MDK, select File > Export. 2. Select uvision > uvision Project. Freescale Semiconductor 3

Figure 3. Export Processor Expert project as uvision project 3. Click Next. 4. Select project created in chapter 3. Select the Automatically update uvision project when ProjectInfo.xml changes checkbox. 4 Freescale Semiconductor

Figure 4. Export settings 5. Click Finish. 6. File with extension.uvproj (or.uvprojx in MDK-ARM version 5.12 and higher) is created in project and MDK-ARM uvision tool starts automatically. 4.2. Exporting using external tool configuration If there is no MDK-ARM plug-in delivered with the environment, it is needed to set external tool in Eclipse for exporting of the project. 4.2.1. Configuration of external tool 1. In main menu of Eclipse click Run > External Tools > External Tools Configurations. Freescale Semiconductor 5

2. Select Program and click New launch configuration button. 3. Fill the following boxes: a. Type name of the configuration. For example uvision. b. Location: [Keil_Installation]/UV4/UV4.exe c. Working Directory: ${workspace_loc:/${project_path}} d. Arguments: either -i ProjectInfo.xml ${project_name}.uvproj (for MDK-ARM version 5.11 of lower) or -i ProjectInfo.xml ${project_name}.uvprojx (for MDK-ARM version 5.12 and higher) External tool configuration 4. Click Apply, then Close. 6 Freescale Semiconductor

4.2.2. Export Processor Expert project 1. In Project Explorer open the project created in chapter 3. Click on ProcessorExpert.pe. The file ProcessorExpert.pe must be highlighted, otherwise the export ends with error. 2. In main menu click Run > External Tools > External Tools Configurations 3. Select the configuration created in step 4.2.1. and click Run. 5. Building Processor Expert Project in uvision 1. Select the imported project in uvision tool and click the Build icon on Build Toolbar. Figure 5. Build the project in uvision tool 2. After updating Processor Expert project, uvision will ask you to accept the changes and then update the project automatically. 6. Debugging Processor Expert Project in uvision After successful build you can download the project to hardware and run the debug session in uvision tool. First it is needed to set properly debug configuration as follows: 1. In main menu click Project > Options for Target <name of your device> or click the Target Options icon on Build Toolbar. 2. Select tab Debug. In this tab select debugger which will be used for connecting to device. Debug settings Freescale Semiconductor 7

3. In tab Utilities select the same debugger as in step 2 for Target Driver for Flash Programming. Utilities settings 6.1. Starting the debug 1. In main menu click Debug > Start/Stop Debug Session or click icon with the same name on File Toolbar. 2. The debug environment appears. You can run or step through the code using the icons on Debug Toolbar. 8 Freescale Semiconductor

Debug session 3. To end the debug session click again Start/Stop Debug Session. Freescale Semiconductor 9

How to Reach Us: Home Page: www.freescale.com E-mail: support@freescale.com Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Freescale reserves the right to make changes without further notice to any products herein. Freescale makes no warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters that may be provided in Freescale data sheets and/or specifications can and do vary in different applications, and actual performance may vary over time. All operating parameters, including typicals, must be validated for each customer application by customer's technical experts. Freescale does not convey any license under its patent rights nor the rights of others. Freescale sells products pursuant to standard terms and conditions of sale, which can be found at the following address: freescale.com/salestermsandconditions. Freescale, the Freescale logo, and Processor Expert are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. All other product or service names are the property of their respective owners. Freescale Semiconductor, Inc. 2014. Document Number: AN4913 19 January 2015