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



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

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

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

Connecting Low-Cost External Electrodes to MED-EKG

Freescale Embedded GUI Converter Utility 2.0 Quick User Guide

IRTC Compensation and 1 Hz Clock Generation

Cyclic Redundant Checker Calculation on Power Architecture Technology and Comparison of Big-Endian Versus Little-Endian

Connecting to an SMTP Server Using the Freescale NanoSSL Client

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

MC13783 Buck and Boost Inductor Sizing

Hardware Configurations for the i.mx Family USB Modules

Flexible Active Shutter Control Interface using the MC1323x

How To Control A Motor Control On An Hvac Platform

Local Interconnect Network (LIN) Physical Interface

Software Real Time Clock Implementation on MC9S08LG32

Handling Freescale Pressure Sensors

Initializing the TSEC Controller

etpu Host Interface by:

How to Convert 3-Axis Directions and Swap X-Y Axis of Accelerometer Data within Android Driver by: Gang Chen Field Applications Engineer

Processor Expert Software Microcontrollers Driver Suite Getting Started Guide

Programming Audio Applications in the i.mx21 MC9328MX21

Performance Monitor on PowerQUICC II Pro Processors

Freescale Semiconductor. Integrated Silicon Pressure Sensor. On-Chip Signal Conditioned, Temperature Compensated and Calibrated MPX4080D.

PowerQUICC II Pro (MPC83xx) PCI Agent Initialization

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

Using the Performance Monitor Unit on the e200z760n3 Power Architecture Core

Improving Embedded Software Test Effectiveness in Automotive Applications

Blood Pressure Monitor Using Flexis QE128 Gabriel Sanchez RTAC Americas

Data Movement Between Big-Endian and Little-Endian Devices

USB HID bootloader for the MC9S08JM60

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

Understanding LCD Memory and Bus Bandwidth Requirements ColdFire, LCD, and Crossbar Switch

Using eflexpwm Module for ADC Synchronization in MC56F82xx and MC56F84xx Family of Digital Signal Controllers

User Interface Design using CGI Programming and Boa Web Server on M5249C3 Board

MCF54418 NAND Flash Controller

MLPPP in the Evolving Radio Access Network

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

VGA Output using TV-Out Extension Solution i.mx21

How To Measure Power Of A Permanent Magnet Synchronous Motor

3-Phase BLDC Motor Control with Hall Sensors Using 56800/E Digital Signal Controllers

VLE 16-bit and 32-bit Instruction Length Decode Algorithm

MSC8156 and MSC8157 PCI Express Performance

CodeWarrior Development Studio Floating Licensing Quick Start

i.mx28 Ethernet Performance on Linux

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

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

NOT RECOMMENDED FOR NEW DESIGN

Adding SDIO Wi-Fi Solution to i.mx Windows CE 5.0/Windows CE 6.0

Freescale Semiconductor. Integrated Silicon Pressure Sensor. On-Chip Signal Conditioned, Temperature Compensated and Calibrated MPX5500.

Using the Kinetis Security and Flash Protection Features

Ref Parameters Symbol Conditions Min Typ Max Units. Standby μa. 3 Range kpa. 4 Resolution 0.15 kpa. 5 Accuracy -20ºC to 85ºC ±1 kpa

Techniques and Tools for Software Analysis

Detecting a CPM Overload on the PowerQUICC II

Using the High Input Voltage Charger for Single Cell Li-Ion Batteries (KIT34671EPEVBE)

NOT RECOMMENDED FOR NEW DESIGN

How To Fit A 2Mm Exposed Pad To A Dfn Package

Emulated EEPROM Implementation in Dual Flash Architecture on MC9S08LG32 With Demo Description

Configuring the FlexTimer for Position and Speed Measurement with an Encoder

Using Program Memory As Data Memory. 1. Introduction Program Memory and Data. Contents. Memory. Freescale Semiconductor Application Note

Understanding Pressure and Pressure Measurement

Pressure Freescale Semiconductor

RF Power Field Effect Transistors N- Channel Enhancement- Mode Lateral MOSFETs

Enhanced Serial Interface Mapping

NOT RECOMMENDED FOR NEW DESIGN

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

3-Phase BLDC Motor Control with Hall Sensors Using the MC56F8013

Freescale Semiconductor. Integrated Silicon Pressure Sensor

Implementing Positioning Algorithms Using Accelerometers

Real Time Development of MC Applications using the PC Master Software Visualization Tool. 1. Introduction. 2. Development of Motor Control.

MPC8245/MPC8241 Memory Clock Design Guidelines: Part 1

Robust Over-the-Air Firmware Updates Using Program Flash Memory Swap on Kinetis Microcontrollers

Efficient Low-Level Software Development for the i.mx Platform

Avoiding Read While Write Errors When Developing In-Software Flash Programming Applications for Kinetis and ColdFire+ MCUs

PQ-MDS-T1 Module. HW Getting Started Guide. Contents. About This Document. Required Reading. Definitions, Acronyms, and Abbreviations

MPXAZ6115A MPXHZ6115A SERIES. Freescale Semiconductor Technical Data. MPXAZ6115A Rev 4, 01/2007

ITU-T V.42bis Data Dictionary Search on the StarCore SC140/SC1400 Cores

How To Improve Performance On A P4080 Processor

Freescale Variable Key Security Protocol Transmitter User s Guide by: Ioseph Martínez and Christian Michel Applications Engineering - RTAC Americas

White Paper. Freescale s Embedded Hypervisor for QorIQ P4 Series Communications Platform

Using XGATE to Implement LIN Communication on HCS12X Daniel Malik 8/16-Bit Products Division East Kilbride, Scotland

Motion and Freefall Detection Using the MMA8451, 2, 3Q

Using the HC08 SCI Module

ColdFire Security SEC and Hardware Encryption Acceleration Overview

Getting Started with the Student Learning Kit Featuring the Freescale HCS12 Microcontroller Application Module

DRM for Driver Information System on S12G128. Reference Design

Frequency Analysis in the Industrial Market Using Accelerometer Sensors

KIT34845EPEVME Evaluation Board

Genesi Pegasos II Setup

AND8365/D. 125 kbps with AMIS-4168x APPLICATION NOTE

RF Power Field Effect Transistors N--Channel Enhancement--Mode Lateral MOSFETs

USB to SPI Device Driver Installation Instructions

Proximity Capacitive Sensor Technology for Touch Sensing Applications

AND9190/D. Vertical Timing Optimization for Interline CCD Image Sensors APPLICATION NOTE

1 Introduction. Freescale Semiconductor Application Note. Document Number: AN3031 Rev. 1, 04/2010

BLDC Motor Control with Hall Effect Sensors Using the 9S08MP

2N5460, 2N5461, 2N5462. JFET Amplifier. P Channel Depletion. Pb Free Packages are Available* Features. MAXIMUM RATINGS

USB Mass Storage Device Host Bootloader

2N2222A. Small Signal Switching Transistor. NPN Silicon. MIL PRF 19500/255 Qualified Available as JAN, JANTX, and JANTXV.

Transcription:

Freescale Semiconductor Document Number: AN4272 Application Note Rev. 0, 03/2011 Generate Makefiles from Command Line Support in Eclipse-Based CodeWarrior Software by Devtech Customer Engineering Freescale Semiconductor, Inc. Austin, TX As the New Project wizard in the CodeWarrior software creates a project, the Eclipse IDE generates makefiles that are used in the build process. However, in certain cases such as automated project build scripts only the makefiles are required. To support this use case, a -generatemakefiles switch in the ecd.exe tool has been implemented. Contents 1 Introduction... 2 2 The generatemakefiles Switch... 2 3 Example Use of generatemakefiles in Windows... 3 4 Revision History... 4 This document describes how to use the -generatemakefiles switch. The makefiles generated by this switch can then be used from command line without performing a complete project build or using the Eclipse IDE. 2011 Freescale Semiconductor, Inc.

1 Introduction 1.1 Definition: Makefiles Makefiles are a set of files used by the make.exe utility or other build tool variants such as mingw32-make.exe. Generally, the term makefiles comprises the makefile file and the *.mk files. However, it also includes all make-related support files, such as the.args and.d files. This file set does not include any of the persistent data files, such as source and header files, linker command files, persistent build settings (stored in the.cproject file), and project information. 1.2 ecd.exe The ecd.exe tool gives the user the ability to automate the building of Eclipse projects through the command line. To use it, the following steps are required: The ecd.exe tool is present as part of the Freescale Extension Eclipse plugin archive, located in the eclipse/plugins directory. For example, it can be located in the directory C:\Program Files\Freescale\CW SC v10.1\ eclipse\plugins\com.freescale.core.ide.commandlinedriver_2.0.1.fsl_{build_numb er}\ecd.exe. This tool is available with the CodeWarrior IDE version 10.1.1 or higher. Copy ecd.exe to eclipse folder. That is, it should be located in C:\Program Files\Freescale\CW SC v10.1\ eclipse\ecd.exe. To view the list of commands ecd.exe supports, type ecd.exe -help in the Command Prompt window. 2 The generatemakefiles Switch A -generatemakefiles switch in the ecd.exe command line tool has been implemented that generates makefiles without invoking a project build. The resulting makefiles allow a build to be managed with a third-party build tool, or used in situations where the makefiles have to be massaged to support automated build processes. When the -generatemakefiles switch is invoked, a new set of makefiles is generated in the normal build configuration location. This location is defined by the active build configuration, or by the build configuration specified with the -config switch in the command line. The generatemakefiles switch supports the following arguments: ecd.exe -generatemakefiles [-data workspace ] parameters Where workspace is a path to a workspace directory on the local file system, and can be an empty directory. 2 Freescale Semiconductor

The parameters argument has the following format: [ -project path [ -config name ] [-allconfigs] ] The project path argument can be either the path of the project directory, or the path to the.project or.cproject file contained in the directory itself. The [ -config name ] argument specifies a particular build configuration. For example, supposed there are two build configurations, Debug and Release, for a demo project that was generated by the New Project wizard. Further assume that the wizard s default settings were used. If a - config switch is not specified on the command line, the tool uses the default build configuration to generate the makefiles. If the -allconfigs switch is specified, the tool generates makefiles for all of the project s build configurations. If -config Debug is specified, makefiles are made only for the Debug build configuration. Upon completion of the command, a status text is output to the stdout stream: Makefiles generated successfully for build configuration <configuration name> in project <project name>, and the error code returned is either 0 for success, or -1 for failure. If a failure occurs, the message: Error while generating makefiles for build configuration <configuration name> in project <project name> is output to the stdout stream. NOTE For the tool to work properly, ensure that the following two plugins are present in the {CW_installation}\CW SC v10.1\eclipse\plugins directory: com.freescale.core.ide.generatemakefiles_1.0.0.fsl_{build_nu mber} com.freescale.core.ide.generatemakefiles.nl1_1.0.0.fsl_{buil d_number} These two plugins are available in CodeWarrior IDE 10.1.8 and newer versions, but can also be used in old CodeWarrior IDE versions like 10.1.5. For earlier CodeWarrior IDE versions, the user should copy the plugins to the correct locations as described above. 3 Example Use of generatemakefiles in Windows Example 1: Generate makefiles for the launch configuration C_Release_8156_HW. Note that The workspace is D:\Work\IDE\workspace The project is at D:\Work\IDE\workspace\demo, where.project and.cproject are located The project has two launch configurations: C_Release_8156_HW and C_Debug_8156_HW The tool ecd.exe is located in D:\Work\IDE\CW SC v10.1\eclipse Freescale Semiconductor 3

Invoke the following commands in a Command Prompt window: D:\Work\IDE\CW SC v10.1\eclipse>ecd.exe -generatemakefiles -project D:\Work \IDE\workspace\demo -config C_Release_8156_HW It takes about ten seconds for the CodeWarrior IDE to launch. After it generates the makefiles, the CodeWarrior software quits automatically. The interval that CodeWarrior software is active is short, around several seconds. The time may vary due to the size and complexity of the project. After the command is finished, the makefiles (makefile, *.mk, demo.args, ) are located in D:\Work\IDE\workspace\demo\C_Release_8156_HW and its subfolders. Example 2: Generate makefiles for all of the project launch configurations. This example assumes the same workspace and project location as in example 1. Invoke the following commands in a Command Prompt window: D:\Work\IDE\CW SC v10.1\eclipse>ecd.exe -generatemakefiles -project D:\Work \IDE\workspace\demo -allconfigs After the command is finished, the makefiles for the two configurations are located in the subfolders C_Release_8156_HW and C_Debug_8156_HW, respectively. 4 Revision History Table 1. Revision History Rev. Number Date Substantive Change 0 03/01/2011 Public release 4 Freescale Semiconductor

How to Reach Us: Home Page: www.freescale.com Web Support: http://www.freescale.com/support USA/Europe or Locations Not Listed: Freescale Semiconductor Technical Information Center, EL516 2100 East Elliot Road Tempe, Arizona 85284 +1-800-521-6274 or +1-480-768-2130 www.freescale.com/support Europe, Middle East, and Africa: Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen, Germany +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) www.freescale.com/support Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064, Japan 0120 191014 or +81 3 5437 9125 support.japan@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 Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor 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 Semiconductor 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 Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part. Freescale, the Freescale logo and CodeWarrior 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. 2011 Freescale Semiconductor, Inc. Asia/Pacific: Freescale Semiconductor China Ltd. Exchange Building 23F No. 118 Jianguo Road Chaoyang District Beijing 100022 China +86 010 5879 8000 support.asia@freescale.com For Literature Requests Only: Freescale Semiconductor Literature Distribution Center 1-800-441-2447 or 303-675-2140 Fax: 303-675-2150 LDCForFreescaleSemiconductor@hibbertgroup.com Document Number: AN4272 Rev 0. 03/2011