Adding a run control interface into an existing CodeWarrior for MCU v10.x project

Similar documents
How to setup pre-build steps in CodeWarrior for Microcontrollers v10.x

DDR Validation Tool Getting Started Guide

Working around ERR7026 according to application needs

Getting Started with Freescale MQX RTOS for Kinetis SDK and MDK-ARM Keil

FRDM-K64F Board Errata

Getting Started with Freescale MQX RTOS for Kinetis SDK and Kinetis Design Studio IDE

Freescale MKW40Z IEEE Software Quick Start Guide

TWR-KV10Z32 Sample Code Guide for CodeWarrior Board configuration, software, and development tools

Processor Expert Software for i.mx Processors Version 1.0

Watt Saver Software Component (WSC)

TWR-KV10Z32 Sample Code Guide for IAR Board configuration, software, and development tools

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

MQX RTOS Release Notes for Kinetis SDK v1.2.0 for KL33Z64 for FRDM-KL43Z Freescale Freedom Development Platform

General C Functions for the etpu Covers the MCF523x, MPC5500, MPC5600, MPC5700, MPX40 and all etpu-equipped Devices

for Freescale MPC55xx/MPC56xx Microcontrollers V2.10 Quick Start

Kinetis USB-KW41Z Wireless Protocol Sniffer Quick Start Guide

Freedom FRDM-MC-LVBLDC Development Platform User s Guide

Component Development Environment Getting Started Guide

HVP-KV10Z32 User s Guide

Building U-Boot in CodeWarrior ARMv8

i.mx 6Solo/6DualLite Product Lifetime Usage Estimates

MQX RTOS Release Notes for Kinetis SDK FRDM- KV10Z Freescale Freedom Development Platform

New VLE Instructions for Improving Interrupt Handler Efficiency Robert Moran Applications Engineer Microcontroller Solutions Group

Quick Start Guide for FRDM-FXS-MULTI-B

Getting Started with Freescale MQX RTOS for Kinetis SDK and ARM GCC

Load Position-Independent Code (PIC) on a Kinetis Platform Using the IAR EWARM Compiler

OpenSDA on TWR-KW2x. User s Guide Rev 1.1

HVP-KV31F120M User s Guide

Using an External GCC Toolchain with CodeWarrior for Power Architecture

CodeWarrior Development Studio for StarCore 3900FP DSP v SP3 Release Notes

CodeWarrior Development Studio Processor Expert RTOS Adapter User Guide

P1010RDB-PB Quick Start Guide

Controller Continuum. for Microcontrollers V6.3. Quick Start

CodeWarrior Development Studio for StarCore DSP SC3900FP Architectures Quick Start for the Windows Edition

Freescale MQX USB Stack for TWR-K24F120M GA User s Guide

Kinetis Updater User's Guide

TWR-LS1021A Getting Started

Three-Phase Power Meter Hardware Design Reference Manual

Configuring DDR in U-Boot using QCVS

HVP-MC56F82748 User s Guide

Quick Start Guide for FRDM-KL05Z

Collecting Linux Trace without using CodeWarrior

Integrate TWR-EPD Software with MQX RTOS Based on the TWR-K21F120M Platform

AIOP Task Aware Debug

Emulating Dual SPI Using FlexIO

Intelligent Sensing Framework 2.1 for Kinetis Errata Sheet

TWR-LS1021A Getting Started

Quick Start Guide for the Freescale Freedom Development Platform FRDM-KL43Z

CodeWarrior Development Studio for Power Architecture Processors Version 10.x Quick Start

for ColdFire Architectures V7.2 Quick Start

for StarCore DSP Architectures Quick Start for the Windows Edition

Getting Started with MQX RTOS for Kinetis SDK

PMSM Field-Oriented Control Using MC56F84789 DSC With Encoders Demo Guide

Getting Started with the MCU Flashloader

Single Chip Module (SCM) Package-on- Package (PoP) Assembly Guide

i.mx 6 Android JB 4.3_1.1.1 Patch Release Notes

WPR1500-LDO MP Receiver V2.1 Reference Design User s Guide

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

Kinetis Bootloader v1.2.0 Release Notes

Using DMA for Pulse Counting on S32K

Component Development Environment Installation Guide

Kinetis SDK Release Notes for the TWR-K24F120M Tower System Module

Getting Started with Qorivva Fast

MMPF0100 Errata for Mask 1N47F and 1N18J

Purchase Agreement. P&E Microcomputer Systems, Inc. 98 Galen St. Watertown, MA

MMA845x Driver: Quick Start Guide

Generating a Quick and Controlled Waveform With the DAC

Quick Start Guide for FRDM-KL46Z Rev 1

Emulating I2C Bus Master by using FlexIO

Kinetis SDK v Release Notes for KV5x Derivatives

Contents 2. Contents

Flash Core Voltage Supply Requirements and Considerations

Using the Xtrinsic FXOS8700CQ Command Line Interface Software

Integrating FreeMASTER-Time Debugging Tool with CodeWarrior for Microcontrollers v10.x Project

i.mxrt1050 Product Lifetime Usage Estimates

Qorivva MPC5744P Evaluation Board 144LQFP Expansion Board User s Guide Barbara Johnson Applications Engineering

Quick Start Guide for TWR-S08MM128-KIT TOWER SYSTEM MC9S08MM128. The industry s most complete solution for portable medical applications

CodeWarrior U-Boot Debugging

Kinetis Bootloader to Update Multiple Devices in a Field Bus Network

QCVS Frame Distributor Wizard User Guide

Quick Start Guide for FRDM-KL46Z Rev 1

i.mx 7 Dual/Solo Product Lifetime Usage

i.mx 6ULL Product Usage Lifetime Estimates

Using the MPC5777M MCAN Module to Exchange CAN FD Messages

Mask Set Errata for Mask 2N27B

Understanding S08P Internal Clock Source

KIT33972AEWEVBE Evaluation Board

Freescale Kinetis Software Development Kit Release Notes

Freedom FRDM-KV31F Development Platform User s Guide

i.mx 6UltraLite Product Usage Lifetime Estimates

Getting Started with Pins Tool User's Guide

Getting Started with MCUXpresso SDK CMSIS Packs

Freescale MQX RTOS TWR-K64F120M Release Notes

Smart Plug Software Design Reference Manual

Reference Design KL25-AGMP01 User Guide 10-Axis Data Logger Tool Kit

Using FCCU on MPC5744P

Using an FFT on the Sigma-Delta ADCs

Kinetis SDK v Release Notes for the MK21DA5 and MKW24D5 Devices

NADK Reflector Application Debug

Model-Based Design Toolbox

Transcription:

Freescale Semiconductor Document Number:AN4902 Application Note Rev 03/2014 Adding a run control interface into an existing CodeWarrior for MCU v10.x project 1 Introduction There are two ways to add a new run control interface into an existing CodeWarrior for MCU v10.x project. The run control interfaces (OSJTAG, OSBDM, USB TAP, P&E Universal.) are referred as the connections or connection configurations in CodeWarrior for MCU 10.x. 1. Create a connection from scratch but the drawback is there are many configuration fields that should be filled. 2. Use a new Bareboard Project option to create a dummy project and reuse/clone its connections in your existing project. Contents 1 Introduction...1 2 Bareboard...2 3 Create a dummy project...2 4 Clone/Duplicate debug configuration...3 5 Transfer connection...5 6 Edit the new debug configuration...6 NOTE The second way requires lesser effort. This application note lists the steps to add a new run control interface using the second approach. This application note demonstrates adding a connection on Qorivva MPC56xx project but it is applicable to all other microcontroller families and derivatives supported by CodeWarrior for MCU v10.x. 2014 Freescale Semiconductor, Inc.

Bareboard 2 Bareboard CodeWarrior for MCU v10.x New Bareboard Project wizard can create a dummy project, which contains also the debug and connection configurations. The aim is to adjust and transfer these connections from a dummy project to an existing CodeWarrior project. Assuming that following are the details of the original project: Name: "My_CW_project" Target MCU: MPC5602P Existing connection interface: "P&E USB Multilink PPCNEXUS" Requested connection interface to add: "Open Source JTAG" 3 Create a dummy project Create a new bareboard project. Ensure that the new project is located in the same workspace as the original project. Provide a different name to the dummy project, for example: My_CW_dummy_project. NOTE Multiple projects of the same name cannot exist in the same workspace. NOTE The connection configuration/target names inherit the project name. The project will be renamed later to match with the original project name. This new project must select exactly the same microcontroller derivative as the original project (MPC5602P). The new project should also include the connection(s) you would like add into the original project. Both projects original and dummy need to be opened in the workspace to be able transfer connection configuration form each other. 2 Freescale Semiconductor, Inc.

Clone/Duplicate debug configuration Figure 1. Select a connection 4 Clone/Duplicate debug configuration A connection is always linked with a debug configuration in CodeWarrior for MCU v10.x. It is recommended to create a separate debug configuration for each new connection. You can then run/debug project easily with no confusion about which connection is used. In case there are multiple build configurations (e.g. RAM and FLASH) it s also useful to create multiple debug configurations (one for each build configuration) and associate them both with a new connection. New debug configuration can be duplicated from existing ones instead of creating it from scratch. Open the original project debug configuration dialog (menu Run > Debug Configurations ) and duplicate the configuration you'd like to associate with the new connection interface (My_CW_project_FLASH_PnE_USB-ML-PPCNEXUS). Freescale Semiconductor, Inc. 3

Clone/Duplicate debug configuration Figure 2. Clone debug configuration The name of new debug configuration shall be updated to reflect the connection interface associated with the new Debug configuration (My_CW_project_FLASH_OSJTAG). Figure 3. New debug configuration 4 Freescale Semiconductor, Inc.

Transfer connection 5 Transfer connection To transfer the run control connection from the dummy project into the original one: 1. Select Window > Show View > Remote Systems to open the Remote Systems view. 2. If the original and dummy projects are the only open projects in the workspace, the Remote System view lists the connections for these two projects only. However, there might be some additional connections on the list, which are usually stored directly in the workspace settings. For example Flash Programmer connections. Figure 4. Remote systems view The connections are represented by the NOTE 3. Select the connection from dummy project (My_CW_project_dummy_FLASH_OSJTAG) and apply it to the debug configuration created in previous step (My_CW_project_FLASH_OSJTAG). 4. Right-click on connection to transfer and from the shortcut menu select Apply To Project > <Name of the original project> > New debug configuration. icon: 5. Close the dummy project. Figure 5. Transfer connection Freescale Semiconductor, Inc. 5

Edit the new debug configuration 6 Edit the new debug configuration The new debug configuration of the original project will need some final edit\adjustments. It is necessary to ensure that the project uses the right connection transferred from the dummy project. To make adjustements to the new debug configurations: 1. Open the debug configurations dialog. 2. Select the new debug configuration created, refer Clone/Duplicate debug configuration. In this example the new debug configuration is My_CW_project_FLASH_OSJTAG. The new connection (My_CW_project_dummy_FLASH_OSJTAG) will appear in the list of available connections. 3. Select the new connection. Figure 6. Edit connection 4. Rename the dummy connection and the target name (My_CW_project_dummy_FLASH_OSJTAG) since it has inherited the name of the dummy project in its name. a. To rename the dummy connection and the target name, click the Edit button. b. Change the connection Name field in the Hardware or Simulator Connection dialog. For example, My_CW_project_FLASH_OSJTAG. c. Change the target Name field in the Hardware or Simulator Target dialog. 6 Freescale Semiconductor, Inc.

Edit the new debug configuration Figure 7. Select the dummy connection and the target Freescale Semiconductor, Inc. 7

Edit the new debug configuration Figure 8. Rename the dummy connection and the target 5. Delete the dummy project. The connection/run control interface is now the integral part of the original project. 8 Freescale Semiconductor, Inc.

How to Reach Us: Home Page: freescale.com Web Support: freescale.com/support Information in this document is provided solely to enable system and software implementers to use Freescale products. There are no express or implied copyright licenses granted hereunder to design or fabricate any 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, CodeWarrior, ColdFire, ColdFire+, Kinetis, Processor Expert, and Qorivva are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. ARM is the registered trademark of ARM Limited. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. 2014, Freescale Semiconductor, Inc. Document Number AN4902 Revision 03/2014