Installing and using CW 10.x for TPMS applications. Revision 5

Similar documents
Installing and using CW 10.6 for TPMS applications. Revision 4

Quick Start Guide TWR-S08DC-PT60. Tower System Daughter Card for the 5-Volt 8-bit MC9S08P Family TOWER SYSTEM

Quick Start Guide for TWR-S08LL64 TOWER SYSTEM MC9S08LL64. S08 ultra-low-power LCD segment MCU

Software Installation Guide for S32 Design Studio IDE (S32DS): FRDM-KEAZ128Q80 FRDM-KEAZ64Q64 FRDM-KEAZN32Q64

S32R274RRUEVB AND S32R372RRSEVB SOFTWARE INTEGRATION GUIDE (SWIG)

Section 2: Getting Started with a FPU Demo Project using EK-LM4F232

LAB #1: The CSM12C32 Module and PBMCUSLK Project Board

Quick Start Guide TWR-S08PT60. 5-Volt S08P Family of 8-bit MCUs for Industrial and Appliance Applications TOWER SYSTEM

Contents. About This Guide... 2 Audience... 2 Revision History... 2 Conventions... 3 Definitions, Acronyms, and Abbreviations... 3

HVP-56F82748 Quick Start Guide

RN2483_Silica Documentation

MPC5748G-LCEVB SOFTWARE INTEGRATION GUIDE (SWIG) Ultra-Reliable MCUs for Industrial and Automotive Applications.

AN HI-3200 Avionics Data Management Engine Evaluation Board Software Guide

Lab Tutorial for TWR-S08GW64 TOWER SYSTEM. MC9S08GW64 LCD segment MCU for flow meters and energy metering applications

DEVKIT-S12VR QUICK START GUIDE (QSG)

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

Si117x Static HRM/SpO2

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

Quick Start Guide TRK-KEA. Kinetis EA Series MCUs for Automotive Electronics Applications. StarterTRAK

CodeWarrior Development Studio for etpu v10.x Quick Start SYSTEM REQUIREMENTS

Debugging in AVR32 Studio

CodeWarrior Development Studio for Freescale HCS12(X) Microcontrollers

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

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

Quick Start Guide for mbed enabling Freescale FRDM-KL25z Freedom board

DEVKIT-MPC5748G SOFTWARE INTEGRATION GUIDE (SWIG) Ultra-Reliable MCUs for Industrial and Automotive Applications.

Quick Start Guide. TWR-KV10Z32 Development Kit for Kinetis KV1x Family TOWER SYSTEM

DEMO9S08LG32 Up to 5V MCU with integrated LCD display driver

Figure 1. Power Barrel Connector Requirements

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

Adesto Serial Flash Demo Kit: Quick Start Guide

Release Notes. S32 Design Studio for ARM v1.1

Lab Guide Rev. 0 TWRWIFIG1011MILAB

indart -HCS08 In-Circuit Debugger/Programmer for Freescale HCS08 Family FLASH Devices User s Manual Rev. 2.0

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

Getting Started with the Microcontroller Student Learning Kit (MCUSLK) Using the MC9S12C32 MCU Application Module (CSM-12C32)

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

S32K144 EVB QUICK START GUIDE REV4.2 APPLIES FOR: S32K144 EVB (SCH REV B) EXTERNAL USE

Getting Started with MCUXpresso SDK

IAR EWARM Quick Start for. Holtek s HT32 Series Microcontrollers

Controller Continuum. for Microcontrollers V6.3. Quick Start

Watt Saver Software Component (WSC)

S32K148 EVB QUICK START GUIDE REV1 APPLIES FOR: S32K148 EVB (SCH REV A/B) EXTERNAL USE

S32K118 EVB QUICK START GUIDE APPLIES FOR: S32K118 EVB (SCH_29945 REV B) EXTERNAL USE

Getting Started with the Student Learning Kit Application Module Using the MC9S12DT256 Microcontroller Application Module

Lab Guide Rev. 1.1 TWRWIFIAR4100LAB

Migration from HEW to e 2 studio Development Tools > IDEs

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

indart -HC08 In-Circuit Debugger/Programmer for Freescale HC08 Family FLASH Devices User s Manual Rev. 2.0 Copyright 2006 SofTec Microsystems DC01027

A brief intro to MQX Lite. Real work: hands-on labs. Overview, Main features and Code Size

Getting Started with the Microcontroller Student Learning Kit Project Board Using the MC9S12C32 Microcontroller Application Module

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

User's Manual Rev. 1. Freescale Semiconductor Inc. TWRS08UNIVUM

External Headers. USB Host User LEDs. User Switches. E1 Header (Unfitted)

Figure 1. Simplicity Studio

Tutorial - Installing Freescale CodeWarrior

1. Opening the sample code workspace Loading the selected sample code project and Opening sample code source files... 5

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

Quick Start Guide. S12VR64EVB S12 MagniV Mixed-Signal MCUs. S12 MagniV

QUICKSTART CODE COMPOSER STUDIO Stellaris Development and Evaluation Kits for Code Composer Studio

BASICS OF THE RENESAS SYNERGY PLATFORM

LDC1000 SENT Bridge MSP-EXP430F5529LP based Getting Started

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

CodeWarrior Development Studio for Microcontrollers V10.x Getting Started Guide

S32K118 EVB QUICK START GUIDE APPLIES FOR: S32K118 EVB (SCH_29945 REV B) EXTERNAL USE

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

F28069 ControlCard Lab1

Freescale Semiconductor Inc. TWRWIFIGS1500MLAB. TWR-WIFI-GS1500M Lab Guide Rev. 1

Application Note. AN1205: Using P&E Micro Kinetis GDB Server

Si1140-DK. Si1140 DEVELOPMENT KIT USER S GUIDE. 1. Kit Contents. Figure 1. Si1143 Evaluation Board

Codewarrior for ColdFire (Eclipse) 10.0 Setup

Resource 2 Embedded computer and development environment

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

ARROW ARIS EDGE S3 Board User s Guide 21/02/2018

for StarCore DSP Architectures Quick Start for the Windows Edition

Component validity and internal error checking functionality to ensure reliable operation

DEMO9S08SH8/SG8 Demonstration Board for Freescale MC9S08SH8/SG8

STM32 Ecosystem Workshop. T.O.M.A.S Team

μez Software Quickstart Guide

ECE QNX Real-time Lab

CANvu 355 & VeeCAN 320 SDK

You have a PC with a USB interface, running Microsoft Windows XP (SP2 or greater) or Vista You have the Workshop Installation Software Flash Drive

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

FSM300 Quick Start Guide with Nucleo

ARROW ARIS EDGE Board User s Guide 27/09/2017

Si1146 UVIRSlider2EK Demo Kit

F28335 ControlCard Lab1

Evaluating SiFive RISC- V Core IP

Section Objective: Acquaint with specifications of Launchpad Acquaint with location of switches, LEDs, power-on switch, powering the board.

22080 IoT2 Appendix B: Get Started with Arduino IDE & ExpLoRer

Getting Started with Kinetis SDK (KSDK) v.1.2

Laboratory Assignment #4 Debugging in Eclipse CDT 1

Cross-Domain Development Kit XDK110 Platform for Application Development

TWR-KE18F. Quick Start Guide. 32-bit Kinetis MCU based on ARM Cortex -M4 provides up to 168 MHz CPU performance, up to 512 KB flash with 64 KB SRAM

Using CodeWarrior V4.5 Assembler with Adapt9S12X and Serial Monitor

Freescale Semiconductor Inc. TWR-MCF51CN User Manual Rev. 1.2

Si1140-DK. Si1140 DEVELOPMENT KIT USER S GUIDE. 1. Kit Contents. Figure 1. Si1143 Evaluation Board

DEMO9S08SH32/SG32 Demonstration Board for Freescale MC9S08SH32/SG32

µtasker Document Kirin3 M52259 demo user s guide

Installing Eclipse CDT and MinGW

Transcription:

Installing and using CW 10.x for TPMS applications Revision 5

Contents 1. Installing Code Warrior for MCUs v10.x... 3 a. General information... 3 b. Downloading the IDE... 4 c. Installing CW 10.x... 5 2. Programming the FXTH reference project... 6 a. Downloading the project... 6 b. Importing the project under CW10.x... 7 c. Programming the device... 10 i. Hardware set up... 10 ii. Debug Configuration... 11 d. Running the program... 14 3. Troubleshooting... 16 a. Compilation error No rule to make target... 16 b. When entering the debug session: Problem occurred or Unable To Launch... 17 c. Debug configuration: creating a target... 20 d. Debug configuration: no binaries/application file available... 23 e. In debug mode: the program does not stop at breakpoints... 24 2

1. Installing Code Warrior for MCUs v10.x a. General information The TPMS projects provided by NXP are compatible with all CodeWarrior versions greater than 10.6.3 (included). Versions below 10.6.3 can be used but require an additional update package installation. This is why we will focus on versions above 10.6.3. The screenshots refer to version 10.7 but the whole procedure is applicable to all versions above 10.6.3. All information on Code Warrior for MCU can be found on the CodeWarrior for MCU webpage: CW_MCU webpage. If the link does not work, go to: www.nxp.com > Software and Tools > Software Development Tools > CodeWarrior Development Tools > CodeWarrior Development Studios > CodeWarrior for Microcontrollers. An evaluation version can be downloaded from this page (need to sign in). 3

b. Downloading the IDE Installing and using CW 10.x for TPMS applications Rev. 5 The evaluation version is free. On this page choose the Eclipse IDE for MCUs v10.7. It is also possible to download version 10.6.4 in the panel Previous: After reading the license agreement, select the desired executable (Offline or Online) and download it either directly by clicking on the file or via the installer: 4

c. Installing CW 10.x Once downloaded the application can be executed. After having read and accepted the license agreement the following window appears. For TPMS applications, the only necessary components to be installed are S08/RS08 components. However more components can be installed for further applications. Then continue and finish the installation. 5

2. Programming the FXTH reference project a. Downloading the project A TPMS reference project can be found on the FXTH87 webpage: www.nxp.com > Sensors > Pressure Sensors > Tire Pressure Monitoring Sensors > FXTH87 > Software & Tools. Under Lab and Test Software, the TPMS reference projects and Graphical user interface can be found. Download the FXTH reference project TPMS_FXTH87_MKW01_LF_RF_Communication_CW10_RevX and unzip it. Documentation on the TPMS demo setup can be found in the Documentation folder of the project. 6

b. Importing the project under CW10.x Installing and using CW 10.x for TPMS applications Rev. 5 Start CodeWarrior v10.x. Select the workspace i.e. the folder in which your project will be stored. When the IDE is started click on Import Project (bottom left panel): 7

Tick the box so that the project is automatically copied into the workspace Select the unzipped folder of the project. For the FXTH reference project select the TPMS_FXTH87_MKW01_LF_RF_Communication_CW10_RevX folder When the project s folder is selected click Finish 8

Once the project is opened, build it by clicking on the hammer. Four compilation targets are available, select the appropriate one (here 434MHz, 2-axis device). If the compilation error No rule to make target occurs, clean the project before building it (right click on the project and select Clean Project). 9

c. Programming the device i. Hardware set up Installing and using CW 10.x for TPMS applications Rev. 5 To program the TPMS emitter a P&E s USB Multilink Universal is required. For more information about this product visit P&E_Multilink web page (search for USBMULTILINKBDM on www.nxp.com). The Multilink connects to the TPMS emitter board via the connector board as shown below: To the Multilink To the emitter Connector board Connection between the Multilink and the TPMS emitter Blue LED indicates that the Multilink is connected to the computer To the computer 3V power supply Both LEDs must be turned on to start programming Yellow LED indicates that the emitter is supplied 10

ii. Debug Configuration Open the Debug Configuration window: Double click on CodeWarrior 11

Name of the configuration. This can be modified if needed. Name of the CW project as it appears in the workspace The executable file (abs file) needs to be selected. See below. The target needs to be selected. See below. To select the abs file click on Search Project and select the frequency used at compilation (here 434MHz). If no binary is available, it means the project has not been built. Build the project in order to select and application file (binary): 12

To specify a target, click on the little arrow of the empty connection field and the TPMS_BDM connection will be available. Select this connection. If there is no target available, go to the section Troubleshooting Debug configuration: creating a target. Click Apply to save the configuration then Debug to program the FXTH If the following message appears during programming, turn off then on the FXTH power supply without disconnecting the BDM then click OK. 13

d. Running the program Installing and using CW 10.x for TPMS applications Rev. 5 When the debugger has been launched the following window is displayed. In order to run the program and leave the debugger click on Run then on Terminate and leave the Debug panel. Disconnect the BDM from the FXTH, then do a hardware reset of the TPMS emitter (turn off then on the FXTH after the BDM has been disconnected). The FXTH may not start correctly if the hardware reset is not done after disconnecting the BDM. In order to work in debug mode do the following: Click here to terminate the debug session In this window the breakpoints can be managed. Look at the important note concerning the breakpoints below. Click here to run the program 14

Important note breakpoints: With TPMS devices it can be used only ONE breakpoint at a time. By default one breakpoint is set by the debugger at the beginning of the main. That is why the program is stopped at the beginning of the main after the debugger has been launched. Once the program has been stopped at the beginning of the main, another (and only one) breakpoint at a time can be set elsewhere. If several breakpoints are set, only the first one will be taken into account. Only the first one is taken into account If the user wants to have several breakpoints it is not possible to have them at the same time. The only possible thing to do is to set one breakpoint, then when the program stops on this breakpoint the user can delete it (by double clicking on it) and set a new one at another line. Then when the program reaches this other breakpoint the user can delete it, set a new one 15

3. Troubleshooting a. Compilation error No rule to make target No rule to make target It means the project needs to be cleaned before being built. For that, right click on the project and select Clean Project. Then try to build it again. 16

b. When entering the debug session: Problem occurred or Unable To Launch Problem Occurred or Unable To Launch Or Before programming the device some Debug Configurations need to be (re)selected. To do that the project first needs to be built (be careful of the compilation target selected!). Leave the debugger if it has been launched. To leave the debugger click on C/C++ at the top right part of the CW window. Then build again the project if necessary, right click on the project and select Properties: 17

Go to Run/Debug Settings and edit the configuration that is used. Here it is the FLASH_PnE U-Multilink configuration (the P&E micro Multilink Universal is used to program the device). 18

The Configuration window should look like the following (it can also be directly accessed via Run > Debug Configurations or via the little arrow near the debug button): When configuring for the first time, make sure the selected Build configuration is Use Active: 19

c. Debug configuration: creating a target If no target is available when clicking on the little arrow then a new connection needs to be created. For that click on New. Select Hardware or Simulator Connection: 20

Enter a name and click on New: Enter a name and select the target type (click on the little arrow and select FXTH870000 under hcs08.fxth: Do not fill Initialization and Memory Then click Finish. 21

In Connection type select P&E HCS08 Multilink\Multilink Universal\Cyclone Pro\OSBDM: If the Multilink is connected to the computer, the port should show up automatically. If not click Refresh. Then click Finish. 22

d. Debug configuration: no binaries/application file available If no binary/application file is available when clicking on Search Project it means the project has not been built. The project needs to be built in order to generate an application file. 23

e. In debug mode: the program does not stop at breakpoints If the program does not stop at breakpoints Verify that only one breakpoint is set. If it is the case the target probably needs to be reseted. In the debug window click on Reset. Then click on Reset again. After this the program should stop at the breakpoint. Remove and replace the breakpoint if necessary. 24