Getting Started Guide RS-EDP & XC167 CPU Module. Version 2 10th June 2010

Similar documents
Embedded Development Platform Getting Started Guide for XC167 Command Module

Embedded Development Platform

Embedded Development Platform Getting Started Guide for Microchip PIM Carrier Module

mbed Command Module Adapter Board RS EDP CM mbed User Manual Version 1.02 Electrocomponents plc Page 1

XC866 Getting Started on EasyKit & Toolkits

Keil TM MDK-ARM Quick Start for. Holtek s HT32 Series Microcontrollers

HandsOn Technology -- HT-MC-02 MODEL: HT-MC-02

Quick Start Guide for the Turbo upsd DK3300-ELCD Development Kit- RIDE

EDP AM DIO54 Digital IO Module User Manual Version v4.0, 29/03/2010

type : Title : 1 / Page : Version : Date : User s guide MNTload TECHNICAL DEPARTMENT User s guide MNTload

LAB #1: The CSM12C32 Module and PBMCUSLK Project Board

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

P89V51RD2 Development Board May 2010

Quick-Start Guide. BNS Solutions. QSK62P Plus

Old Company Name in Catalogs and Other Documents

Old Company Name in Catalogs and Other Documents

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

FIRMWARE UPGRADE GUIDE

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Tools Basics. Getting Started with Renesas Development Tools R8C/3LX Family

Getting Started with Keil µvision 3 and C51

Old Company Name in Catalogs and Other Documents

Getting Started in C Programming with Keil MDK-ARM Version 5

CEIBO FE-5111 Development System

Getting Started in C Programming with Keil MDK-ARM Version 5

IAR EWARM Quick Start for. Holtek s HT32 Series Microcontrollers

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

HAND HELD PROGRAMMER QUICK START GUIDE

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission.

Use of ISP1507-AL Evaluation Boards

EB-51 Low-Cost Emulator

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

Megawin 8051 OCD ICE

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

User Manual. LPC-StickView V3.0. for LPC-Stick (LPC2468) LPC2478-Stick LPC3250-Stick. Contents

Figure 1-1 ISPAVRU1 application

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Evaluation Board Getting Started. Toolchain Setup for: TLE9869_EVALKIT TLE986x_EVALB_JLINK TLE9879_EVALKIT TLE987x_EVALB_JLINK

NetComm NTC-5000 CallDirect Series HSPA Cellular Routers Quick Start Guide

PSIM Tutorial. How to Use SimCoder with TI F28335 Target Powersim Inc.

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / Version Description Date. 0.1 Initiate 2014-Jun-21

EKK-LM3S811 QUICKSTART

Contents. Cortex M On-Chip Emulation. Technical Notes V

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

EDP-BB-4A Technical Notes Embedded Development Platform EDP Baseboard EDP-BB-4A User Manual

Configuring PC Lint for uvision & STM32

78M6613 PSU Firmware Quick Start Guide

Data Sheet. LPC-LCD-Board. Contents

Keil uvision development story (Adapted from (Valvano, 2014a))

ICD Module (P/N ) Instruction Manual

Cortex -M3 Hands-On LAB featuring Serial Wire Viewer

CoLinkEx_LPC11C14 EVB Kit User Guide

TLL5000 Electronic System Design Base Module

Heterogeneous multi-processing with Linux and the CMSIS-DSP library

3-slot Backplane For RC2014 User Guide

DC Motor Drive Module EDP AM MC2 EDP AM MC2 User Manual Version 1.04

Windows QuickStart Guide Page 1 of Ambiq Micro, Inc All rights reserved.

Locktronics PICmicro getting started guide

Lab 1 Introduction to Microcontroller

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Instruction Sheet Updating SmartPAC 2 Firmware

Installing LE History Record Reader program software.

To install the software please insert the supplied disk or CDROM in your computer and perform the following steps:

3 x 25 Watt with E14 socket. Power Class 1 (~100 meters ) Philips LPC2106 ARM7 60 MHz 47 x 23 x 12 cm. About Factorycode

HAND HELD PROGRAMMER QUICK START GUIDE

NetComm Commercial. NetComm NTC-6000 CallDirect Series HSPA Cellular Routers Quick Start Guide

Getting Started in C Programming with Keil MDK-ARM Version 5

NEC 78K0- Family On-Chip Emulation

LPCXpresso IDE Power Measurement Guide. Rev June, 2016 User guide

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

Job Aid: Replacing the Field Replaceable Units (FRUs) for the Avaya G430 Media Gateway

MCUXpresso IDE LinkServer Power Measurement Guide. Rev November, 2017 User guide

HAND HELD PROGRAMMER QUICK START GUIDE

ZCRMZNICE01ZEMG Crimzon In-Circuit Emulator

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

W7100A / W7100. Version WIZnet Co., Inc. All Rights Reserved. For more information, visit our website at

PSIM Tutorial. How to Use SCI for Real-Time Monitoring in F2833x Target. February Powersim Inc.

Choosing a Micro for an Embedded System Application

QuickStart Instructions. Using Keil's ULINK and the Keil ARM/µVision3 Software Development Tool Chain

Evaluation Board and Kit Getting Started

Figure 26 CC Debugger Interface

QUICK START GUIDE TO THE JUMPSTART MICROBOX

CEIBO FE-5131A Development System

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

NFC NUTSHELL KIT. MCU Modules USER MANUAL REVISION GMMC GmbH Keywords Abstract. Document information

User Manual: LPC1830-Xplorer LPC1830-Xplorer

As CCS starts up, a splash screen similar to one shown below will appear.

CF3000 Dealer Diagnostic Tool Instruction Manual

Getting Started with STK200 Dragon

Release Notes for ADSP-CM41x EZ-Kit Lite Board Support Package For Keil MDK

Freescale Semiconductor, Inc.

8051 General Purpose Board

Red Suite 4 Getting Started. Applies to Red Suite 4.22 or greater

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

APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713

EMUL-PPC-PC. Getting Started Guide. Version 1.0

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

)8-,768'HY.LW 2YHUYLHZ. )XMLWVX0LNURHOHNWURQLN*PE+ Am Siebenstein Dreieich-Buchschlag, Germany

HCS12 BDM Getting Started V4.3

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

Transcription:

Getting Started Guide RS-EDP & XC167 CPU Module Version 2 10th June 2010 Electrocomponents plc Page 1

Contents 1. Introduction 3 2. Development Tool Support 4 2.1 FTDI Based USB to JTAG Converter... 4 2.2 Keil uvision... 4 2.3 Hitex HiTOP... 6 3. Quick Start 7 3.1 Keil uvision Debugging Users... 7 3.2 Hitex HiTOP for RS-EDP XC167... 7 4. Code Size Restrictions 9 4.1 Keil uvision and the Keil C Compiler... 9 4.2 HiTOP for RS-EDP-XC167... 9 Electrocomponents plc Page 2

1. Introduction To get the most out of the RS-EDP platform it s important to understand the concept of the RS-EDP system correctly. This is detailed in the user manuals for the Base Boards. The manual is called RS EDP-BB-SystemBaseBoard User Manual Vx.docx. The base boards come in both 2 position format and 4 position format and share a common user manual. Please read this manual to get an understanding of the system. Each of the CPU Modules (CM or Command module) and Application Modules (AM) has its own user manual, so again these documents must be read to get an understanding on how to use the modules. Each of the boards comes with a selection of software to fully exercise the RS-EDP Application Modules and the peripherals available on the MCU device. In an RS-EDP system there is usually one Command Module (CM) and one or more Applications Modules (AM) plugged in to the Base Board (BB). The XC167 module has been designed as the CPU or Command Module for the system. The Command Module (also referred to as a CPU Module) in a system, dictates whether the whole system is a 3.3V one or a 5.0V one. This CPU module uses a 5.0V microprocessor and so the board is configured as such. If the user is unsure he can check the Vcc_CM signal on the break out connector on the Base Board to determine what voltage the system is. There are 144 pins on the MCU and these are connected via various link options to the Base Board. The Base Board (BB) then provides these signals to the Application Modules thereby allowing the CPU Modules to communicate with the Application Modules. As many of the CPU pins have more than one function it can make the mapping of the connections rather complex so there are additional support documents available to help you with this. The first is the Pin Allocation Spread Sheet. One spread sheet is available for each of the CPU Modules. The one for the NXP family of CPU Modules is called... Pin Allocation - 144 pin XC167 Command Module RevXX.xlsx The contents of this spreadsheet are also detailed in the user manual for the XC167 CPU Module. This spreadsheet detailed which pins are mapped to the Base Board backplane and the various link options which need to be configured to connect them accordingly. To get an appreciation of how the Application Modules are mapped to the backplane and how the CPU Module can connect to them, a Mapping Aid exists. The one for the XC167 module is called... Mapping Aid RS-EDP - Complete XC167 Rev.XX.pptx This mapping aid is also present in the User Manual for the CPU Module and at a glance you can see what resources are required to get the best out of each Application Module. The other useful documents you will need are the circuit diagram for the modules you want to connect with each other. These may be contained in the back of the user manual or available to download separately off the EDP web site. So before you start to use the RS-EDP system make sure you have to hand the following documents. The Circuit Diagram of the modules you intend to use (in the user manual) The Base Board User Manual The XC167 CPU Module User Manual The Application Module User Manual The Pin Allocation Spreadsheet The Mapping Aid Electrocomponents plc Page 3

In this getting started guide we will go through the process of getting the CPU Module up and running. 2. Development Tool Support 2.1 FTDI Based USB to JTAG Converter On the XC167 CPU Modules is an FTDI chip which has flashed into it a USB to JTAG firmware set. The software allows a host PC to control the XC167 easily, and effectively removes the need for the user to have his own USB debugger. The USB end of this interface is bought down onto the Base Board and onto a mini USB connector. This miniusb effectively allows the user to connect to a host PC and to run a debug session, including programming of the flash, without any additional debugger hardware tools. This means a software suite such as Keil uvision or Hitex HiTOP is all that is required to program and debug code. The pre-programmed FTDI chip is present on all XC167 modules and allows the user to program and enter a debug session via HiTOP IDE. The version of HiTOP required is specifically designed for the RS- EDP platform. It is HiTOP53 for EDP XC167 and is available to download from the RS-EDP website. This software has a code size restriction on it, which allows the user to debug and program files up to this size. Larger files can be programmed but the debug information is lost. HiTOP accesses the XC167 module via the miniusb present on the Base Board. The base board routes the USB D+ and D- signals onto the XC167 CPU Module where the FTDI chip handles the interface to the JTAG connections. When the mini USB lead is present the FTDI chip is active and the XC167 device is under the control of the debugger. When the cable is unplugged, the FTDI chip is disconnected and the XC167 device runs in standalone mode. The FTDI chip also has a spare RS232 virtual communications port on board, in additional to the USB to JTAG interface software. It is therefore possible to route some TTL level RS232 data via this chip therefore eliminating the requirement for a Communications Module, whilst debugging. Refer to the user manual for more information on these. 2.2 Keil uvision The Keil C Compiler for the XC167 is usually bundled together with the Keil uvision IDE. The user would write his code with this tool chain and then download and debug his code via a JTAG interface. Within Keil uvision the user can select a variety of interfaces, which include the standard ULINK Driver for XC167 and Infineon DAS Client for XC167. The first one requires the use of a dongle (ULINK, ULINK2 or ULINK-ME) which interfaces between the Keil uvision IDE and the XC167 CPU module. As the XC167 CPU Module does not come with a ULINK debugger it is suggested to use the second option as detailed below. The standard ULINK tools are bought out onto a 16 way, double row, 0.1 inch pitch connector. This connector will need a reducing socket to interface to the XC167 daughter board. This connector is not provided and the user will need to make his own solution to utilise this interface with an existing ULINK tool. The second solution, Infineon DAS Client for XC167 is designed to interface to the FTDI chip directly. As the board has been designed with the FTDI chip integrated into it, this means Keil uvision can directly connect to the XC167 module. This is done via the mini USB connector on the base board which is routed through the connectors to the XC167 CPU Module.. The settings are shown in the following pictures... Electrocomponents plc Page 4

Electrocomponents plc Page 5

2.3 Hitex HiTOP Hitex s own debugger and IDE combination is called HiTOP. There is a version of this specifically for the XC167 and the RS-EDP system. This is called HiTOP53 for RS-EDP-XC167. This version of HiTOP uses the FTDI chip built into the XC167 CPU module. HiTOP is used extensively as a debugger but not necessarily as a tool to author software. This is because the debug capabilities of the HiTOP system are very good and many customers prefer HiTOP to do the actual debugging on a target device. Also HiTOP has historically supported the larger classical bond out emulation systems that was prevalent to the advent of JTAG debugging. With this in mind, there are lots of existing XC167 customers who have used HiTOP and have familiarity with it. It is possible to author with Keil uvision and to generate a debug file which can then be bought in to HiTOP for debugging. This is done by creating a blank project within HiTOP and pointing to the relevant debug file. To use HiTOP with the RS-EDP system you will need to connect a USB lead from the miniusb connection on the base board to the host PC. The FTDI chip on the base board will handle the JTAG interface to the chip and communication to the host PC. Base board showing mini USB connection Electrocomponents plc Page 6

3. Quick Start For the purposes of this quick start guide we will assume a 2 slot Base Board, a DC Motor Drive MC1 Module and an XC167 CPU Module. We will assume the user has downloaded and installed Keil uvision 4.00 or later and has downloaded and installed HiTOP53 for EDP-XC167. 1. Insert the Motor Drive Module into one of the vacant slots on the base board 2. Insert the CPU Module into the remaining slot on the base board 3. Connect the motor to the Motor Drive module. See user manual for MC1 Module. 4. Connect a 12V DC power supply to the Base Board. Use either the screw in type power terminals or use a wall cube PSU with centre positive and the power in jack. 5. Open Keil uvision and load in the project PID_V3_Noweb for the Xc167 CPU Module. 6. Compile and build the project. The resulting output files should now be available to flash into the MCU and a debugging session can be started. See below. 3.1 Keil uvision Debugging Users 1. Connect the miniusb lead to the base board. 2. Click on the debug icon. The Chip should be erased by the Keil Tool, followed by the flashing of the software and then the loading of the debug file into the debugger. Simply click on run to start the program execution. 3. If all has gone correctly, the program execution should have started. You can then stop the code and single step through it etc. 4. The project you have loaded in will automatically have the options selected for the JTAG over USB. If they are not refer to the section above on Keil for correct settings. 3.2 Hitex HiTOP for RS-EDP XC167 1. Connect the miniusb lead to the base board. 2. Start HiTOP for RS-EDP-XC167. 3. Click on Open Existing Project 4. Open the HiTOP project pid.htp. This is a prebuilt HiTOP project which has some basic scripts included within it. 5. Click on the I want to continue evaluation option. 6. When the download application dialogue box appears, do the following. Make sure the project XC167 tick box is checked; Make sure the enable FLASH programming tick box is checked. Then click on OK. 7. The HiTOP IDE will then program the XC167 device via the FTDI USB to JTAG converter. 8. Once the FLASH has been programmed, click on the Run icon on the tool bar. 9. The debugger will then execute the startup code and break on the first line of the main application. 10. Click the green traffic light go icon to execute the program. 11. If all has gone correctly, you should be able to stop the code and single step through t etc. If you are creating a new HiTOP project from scratch and importing a debug file from Keil uvision, follow the following procedure. 1. Connect the miniusb lead to the base board. 2. Start HiTOP53 for RSEDP-XC167. 3. Click Create a New Project and then next. 4. Click on the radio button Create an empty project and then next. 5. Enter a project name such as HiTOP_MotorDrivePrj 6. Click on the Browse locate a directory into which you want to locate the HiTOP project. Select the same root directory where the Keil uvision project is located. 7. Click on save and then click Next. 8. In the Tool Selection dialogue, click on RS-EDP-CM-XC167 Electrocomponents plc Page 7

9. In the controller selection, click on Infineon and XC167 respectively. 10. In the port selection dialogue ensure the USB interface radio button is selected. Do not enter anything in the serial number box. 11. Leave the start up script blank and press next 12. The project setting box should now appear automatically. 13. In the applications box we need to enter the name of the xc167 file we want to import. There is no visible extension on this file name. This contains all the debug information and symbol names etc that will be used by HiTOP for the debugging session. Click the Applications box and then the new entry box and then use the file browser which pops up to locate the xc167 file. This file is normally located in the root directory where the project is located. 14. Once this has been located, the path and file name should be automatically filled in by HiTOP 15. Uncheck the radio icon Load Applications automatically at start up and tick the Enable automatic detection of modified applications tick box. 16. From the Xc167 tab, select the directories tab and enter the location where the source files are kept. An example is shown below. Electrocomponents plc Page 8

17. Now we need to tell HiTOP about the type of FLASH the XC167 MCU has. Within the Project Setting, highlight the flash programming option tab, and a new set of dialogue will appear. Click on Add FLASH icon. 18. In the Add FLASH device dialogue box select, Infineon and the XC 256k Generic option. Fill in the base address of 0x0. 19. The FLASH programming memory areas should now be visible in the Installed FLASH Devices window. 20. In the RAM Start Address window type in 0xe00000 21. In the RAM Size window type in 0x800 22. Save the HiTOP project before attempting to download the code. This will ensure the project is saved as HiTOP may crash if the settings are not correct. 23. Click on the Debug tab and then select Download. 24. The Download Applications dialogue box will then appear. Ensure the Enable FLASH Download tick box is checked. Click on OK. 25. Click on OK. HiTOP will now automatically load the debug file and flash the MCU with the new code. Whilst you will be able to view the source files in this IDE you will not be able to modify them. To modify the source file you will need to go back to uvision. By changing the source files and then recompiling, HiTOP will now automatically detect a change in the debug image and will ask you to reload it. 26. To RESET the device click on the TR icon button, as this is the target RESET. 27. You can then run and application or single step through the code in the normal debug fashion. 28. HiTOP can be used to write code also, using the GNU Tool Chain, or the Tasking Tool Chain. No examples of this are given here. 4. Code Size Restrictions 4.1 Keil uvision and the Keil C Compiler The Keil tool chain allows you to compile and link code up to 8k bytes. Any more than this and uvision will complain. You can of course upgrade to a full license and several licensing models are available including educational licenses for universities and colleges. Floating licenses and Node locked licenses are available and time limited 12 month licenses also. 4.2 HiTOP for RS-EDP-XC167 The HiTOP debugger is code size restricted to 8k. HiTOP is upgradable from Hitex UK LTD to a full license. For customers that wish to use a Tasking Tool Chain with the RS-EDP it makes sense to upgrade HiTOP to the full version. This is significantly less costly than upgrading Keil uvision. If you have a larger image from Keil uvision than you have the HiTOP licence for, then the image is still loadable into FLASH but the debug information is not available. Most customer will use either Tasking or Keil uvision to author and compile the code, and then use HiTOP to do the actual debugging. Using a blank project and importing the debug files into this is the most popular method of using HiTOP. It is possible to completely author the whole application in HiTOP including editing and compiling but in practice most customers prefer to use their own editor. Electrocomponents plc Page 9