StickCAN V850 Development Kit

StickCAN V850 Development Kit ... is designed and developed for the purpose for engineers to understand its safety and reliability. ... 5.2 Download P...

0 downloads 161 Views 2MB Size
Tutorial Guide

StickCAN V850 Development Kit

TESSERA Technology INC. Date published: June 2008 Rev. 1

CAUTION: ▪ The information is subject to change without notice. ▪ No part of this document may be copied or reproduced in any form or by any means without prior written consent of Tessera Technology Inc. ▪ This product is designed and developed for the purpose for engineers to understand its safety and reliability. ▪ Tessera Technology Inc. does not license assurance or enforcement of intellectual property rights and other rights of Tessera Technology Inc. and third parties by the use of the products and/or the information in this document. Tessera Technology Inc. does not assume any liability for infringement of rights of third parties by the use of the products and/or the information in this document. ▪ Descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. The incorporation of these circuits, software and information in the design of a customer's equipment shall be done under the full responsibility of the customer. Tessera Technology Inc. assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. ▪ This equipment should be handled like a CMOS semiconductor device. The user must take all precautions to avoid build-up of static electricity while working with this equipment. ▪ Measurement tools including the workbench must be grounded when testing. ▪ The user/operator must be grounded using the wrist strap. ▪ The connectors and/or device pins should not be touched with bare hands.

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

TABLE OF CONTENTS INTRODUCTION..................................................................................................................................... 5 CHAPTER 1

PREPARATION...............................................................................................................6

1.1 Software / Development Tools....................................................................................................7 1.1.1 Integrated Development Environment (IDE) PM+ V6.30 ..............................................7 1.1.2 Device file DF3377.800 V1.10 ......................................................................................7 1.1.3 C Compiler CA850 W3.10 (code size limited version) ..................................................7 1.1.4 Integrated Debugger ID850QB-EZ V3.41 .....................................................................7 1.1.5 USB Driver....................................................................................................................8 1.1.6 Built-in Flash Memory Writing Program FPL.................................................................8 1.1.7 CAN Software Driver.....................................................................................................8 1.1.8 Sample Program ...........................................................................................................8 1.1.9 Simplified CAN Monitor.................................................................................................8 1.2 Development Environment..........................................................................................................9 1.2.1 Contents of CD-ROM....................................................................................................9 1.2.2 Installation of Development Environment......................................................................9 1.2.3 Structure of Installed Files ..........................................................................................13 1.2.4 Change Software Structure.........................................................................................13 1.3 Installation of USB Driver..........................................................................................................14 1.3.1 Installation on Windows XP ........................................................................................15 1.3.2 Installation on Windows 2000 .....................................................................................18 1.3.3 Confirm USB Driver Installation ..................................................................................21 1.4 Sample Program.......................................................................................................................22 1.4.1 Installation of Sample Program...................................................................................23 1.4.2 Structure of Sample Programs....................................................................................25 CHAPTER 2

EXPERIENCES .............................................................................................................26

2.1 Start PM+..................................................................................................................................28 2.2 What is PM+ .............................................................................................................................29 2.3 Load Workspace (Project) ........................................................................................................31 2.4 Check Debugger Settings .........................................................................................................33 2.5 StickCAN V850 Settings ...........................................................................................................35 2.6 Create Executable Files............................................................................................................36 2.7 Start Debugger .........................................................................................................................38 2.8 Integrated Debugger (ID850QB-EZ) .........................................................................................44 2.9 Run Programs...........................................................................................................................45 2.10 Stop Programs..........................................................................................................................47 2.11 Close Integrated Debugger (ID850QB-EZ) ...............................................................................48 2.12 Create a New Workspace .........................................................................................................49

TESSERA TECHNOLOGY INC.

3/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.13 Register Additional Source File.................................................................................................59 2.14 Quit PM+...................................................................................................................................66 CHAPTER 3

FPL ................................................................................................................................67

3.1 Installation of FPL .....................................................................................................................67 3.2 FPL Usage................................................................................................................................67 CHAPTER 4

CAN SOFTWARE DRIVER ...........................................................................................73

4.1 Installation of CAN Software Driver ..........................................................................................73 4.2 Start CAN Software Driver ........................................................................................................73 CHAPTER 5

SAMPLE PROGRAM ....................................................................................................74

5.1 StickCAN V850 Preparation......................................................................................................75 5.1.1 For High-Speed CAN ..................................................................................................75 5.1.2 For Low-Speed CAN...................................................................................................75 5.2 Download Programs .................................................................................................................76 5.2.1 For High-Speed CAN ..................................................................................................76 5.2.2 For Low-Speed CAN...................................................................................................78 5.3 Operation Check .......................................................................................................................80 CHAPTER 6

SIMPLIFIED CAN MONITOR ........................................................................................81

6.1 Installation of Simplified CAN Monitor.......................................................................................81 6.2 Installation of Microsoft .NET Framework Version 2.0 ..............................................................81 6.3 Write on StickCAN V850...........................................................................................................82 6.4 StickCAN V850 Settings ...........................................................................................................82 6.5 Simplified CAN Monitor Connection Structure Example ...........................................................82 6.6 Start Simplified CAN Monitor ....................................................................................................83 6.7 Simplified CAN Monitor GUI .....................................................................................................83 6.8 Simplified CAN Monitor GUI Operation.....................................................................................84 6.9 Customization of Simplified CAN Monitor .................................................................................87

TESSERA TECHNOLOGY INC.

4/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Introduction Reader This manual is intended for development engineers who are new to those development tools for V850 series. It is assumed that the readers have been familiar with basics of microcontrollers, C and assembler languages, and the Windows operating system. Purpose This manual is intended to give users an understanding of the basic operation of development tools for V850 series that are included in the StickCAN V850 Development Kit. Users can understand more by reading this manual and using the development tools together. Document Structure This document consists of the following contents. Chapter 1: Preparations Overview of the development tools for V850 series and Installation of sample programs Chapter 2: Experiences Experience the basic operations of PM+ and integrated debugger with using sample programs. Also, it introduces other information, such as how to create a new workspace (project) on PM+ and how to register additional source files. Chapter 3: PG-FPL Installation and operation of PG-FPL Chapter 4: CAN Software Driver Installation of CAN software driver Chapter 5: Sample Program Information about bundled sample programs Chapter 6: Simplified CAN Monitor Information about sample application that can monitor the communication of high-speed CAN (500Kbps). Trademarks Microsoft and Windows are registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe and Acrobat are trademarks of Adobe Systems Incorporated. All other company names and products are registered trademarks or trademarks of their respective owners.

TESSERA TECHNOLOGY INC.

5/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Chapter 1 Preparation This chapter describes overview of development tools and installation of sample programs. The sample programs can be run with only using the development tools that is included in StickCAN V850.

TESSERA TECHNOLOGY INC.

6/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

1.1 Software / Development Tools

1.1.1

Integrated Development Environment (IDE) PM+ V6.30

The IDE works on Windows operation system. Users can develop a system efficiently by using the editor with idea processor function, compiler, and debugger. 1.1.2

Device file DF3377.800 V1.10

A device file contains device specific information. So, users need a device file to use the development tools. The sample in this document is made for V850ES/FG3 (µPD70F3377). 1.1.3

C Compiler CA850 W3.10 (code size limited version)

C compiler for the V850 series. The object code size is limited to 128 Kbyte. It compiles C language and ANSI-C compliant C language that are written for V850 series into machine language. It inputs source program written in C language, and outputs source program for assembler input and object program for linker input. 1.1.4

Integrated Debugger ID850QB-EZ V3.41

The Windows base software works on host PC. It enables to debug by performing communication between the monitoring program that is stored in the microcontroller built-in flash memory and USB.

TESSERA TECHNOLOGY INC.

7/87

STICKCAN V850 DEVELOPMENT KIT

1.1.5

TUTORIAL GUIDE

USB Driver

This is the driver to detect the StickCAN V850 as COM port when the StickCAN V850 is connected to PC. 1.1.6

Built-in Flash Memory Writing Program FPL

This is the Windows software to write programs on microcontroller built-in flash memory. By connecting the StickCAN V850 with using the bundled USB cable, it can write/delete programs on V850ES/FG3 built-in flash memory. 1.1.7

CAN Software Driver

CAN Software Driver provides the application program interface (API) function to be able to communicate on V850 32bit microcontroller with CAN function and 78K0 8bit microcontroller from NEC Electronics Corporation. 1.1.8

Sample Program

This can send packets to the other node connected with CAN at certain intervals. This program uses the CAN software driver. For details, refer to "Chapter 5 Sample Program". 1.1.9

Simplified CAN Monitor

This is a stand-alone sample application using StickCAN V850. It can monitor and display the communication of high-speed CAN (500Mbps). User can customize the source file for V850ES/FG3, which is stored in StickCAN V850.

TESSERA TECHNOLOGY INC.

8/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

1.2 Development Environment

1.2.1

Contents of CD-ROM

The bundled CD-ROM includes the development tools, documentations, and sample program. Users can use the installer to install them (except FPL and parameter files). 1.2.2

Installation of Development Environment

Please insert the CD-ROM in the drive. The installer will show up automatically. If it does not start automatically, please start SETUP.EXE from Windows Explorer.

TESSERA TECHNOLOGY INC.

9/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

1) Click "Install…" on "NEC Electronics Corporation Microcontroller Development Tools Setup". The dialog box shown below is opened. Select tools that you need to install. "Explain" area displays an explanation of the selected tool. To change the installation destination, click "Browse…". When all the settings are completed, click "Install…".

2) Click "OK", when following dialog box is displayed.

TESSERA TECHNOLOGY INC.

10/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

3) Agree with the license agreement and click "Yes" for continuing the installation. To stop the installation, click "No".

4) Enter the product ID, and click "Next". * The product ID is available on the attached sheet and "Readme First" file in CD-ROM.

5) It starts copying the files.

TESSERA TECHNOLOGY INC.

11/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

6) In the middle of installation, "Select the kind of installation file" screen opens. Click "Next".

7) When the installation is completed, the following dialog opens. Click "OK". Installation of the development tools is completed.

8) USB driver "NEC Electronics Starter Kit Virtual UART" should be installed on PC before you connect the StickCAN V850 to PC. Refer to "1.3 Installation of USB Driver" to install the USB driver.

[Notes on the installation authority] - Administrator authority is required to install the product on Windows 2000/XP. [Notes on the installation directory] - Do not use space or 2-byte characters for the installation directory. It may cause unexpected errors. - This product only supports Japanese version of Windows. You can not install this on the Windows other than Japanese version.

TESSERA TECHNOLOGY INC.

12/87

STICKCAN V850 DEVELOPMENT KIT

1.2.3

TUTORIAL GUIDE

Structure of Installed Files As default, development tools are installed in the directory "C:¥Program Files¥NEC Electronics Tools". When you need to use the tools, Click "Start menu", then select "Programs", "NEC Electronics Tools" to start those development tools.

1.2.4

Change Software Structure Execute the program "¥StickCAN_UTL¥StickCanUtl.exe" in CD-ROM with using Windows Explorer. Select "StickCAN", and click "OK".

Current installation setting is displayed. The radio button becomes gray and it cannot be selected if ID850QB-EZ V3.41 is not installed.

Setting is completed when the dialog is closed.

If you wish to use the StickCAN V850 as MATLAB target, select "MATLAB target for StickCAN". When you need to change the setting to default, select "Default installation".

TESSERA TECHNOLOGY INC.

13/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

1.3 Installation of USB Driver When you use StickCAN V850, you need to install "NEC Electronics Starter Kit Virtual UART" driver on the PC. Follow the instruction below to install the driver. In this section, it is assumed that the "Starter Kit USB Driver" has been installed in "1.2 Development Environment". [Note] Do not use USB hub to connect StickCAN V850. It may cause unexpected errors. First, connect StickCAN V850 to PC. Check the switches are set as shown below.

Debug Switch Setting: ON

Transceiver Switch Setting: HIGH

From the next step, the instruction will be differed depending on Windows version. - Installation on Windows XP - Installation on Windows 2000 When the installation is completed, move on to "1.3.3 Confirm USB Driver Installation".

TESSERA TECHNOLOGY INC.

14/87

STICKCAN V850 DEVELOPMENT KIT

1.3.1

TUTORIAL GUIDE

Installation on Windows XP 1) When the StickCAN V850 is connected to PC, it is detected with plug and play and starts "Found New Hardware Wizard". Select "No, not this time", and click "Next". Found New Hardware Wizard 1 (Windows XP)

Select "No, not this time"

Click "Next"

2) Select "Install from a list or specific location" and click "Next". Found New Hardware Wizard 2 (Windows XP)

Select "Install from a list or specific location"

Click "Next"

TESSERA TECHNOLOGY INC.

15/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

3) Select "Search for the best driver in these locations", check "Include this location in the search", and then click "Browse...". Select the driver directory path "C:¥Program Files¥NEC Electronics Tools¥TK-driver" if it is the default installation path, and then click "Next". If the installation directory is not default, then select "TK-driver" under the installation directory. Found New Hardware Wizard 3 (Windows XP)

Select the driver directory

Click "Next"

4) If the following dialog is opened, click "Continue". Found New Hardware Wizard 4 (Windows XP)

Click "Continue Anyway"

TESSERA TECHNOLOGY INC.

16/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

5) If the following dialog is opened, select the driver directory path, "C:¥Program Files¥NEC Electronics Tools¥TK-driver", and then click "OK". Found New Hardware Wizard 5 (Windows XP) Click Select the directory

6) When the following dialog is opened, the installation of "NEC Electronics Starter Kit Virtual UART" driver is completed. Click "Finish". Found New Hardware Wizard 6 (Windows XP)

Click "Finish"

7) Go to "1.3.3 Confirm USB Driver Installation".

TESSERA TECHNOLOGY INC.

17/87

STICKCAN V850 DEVELOPMENT KIT

1.3.2

TUTORIAL GUIDE

Installation on Windows 2000 1) When the StickCAN V850 is connected to PC, it is detected with plug and play and starts "Found New Hardware Wizard". Click "Next". Found New Hardware Wizard 1 (Windows 2000)

Click

2) When following dialog is shown, confirm "Search for a suitable driver for my device" is selected, and click "Next". Found New Hardware Wizard 2 (Windows 2000)

Select "Search for a suitable driver for my device"

Click "Next"

TESSERA TECHNOLOGY INC.

18/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Check only on the "Specify a location", and then click "Next". Found New Hardware Wizard 3 (Windows 2000)

Select "Specify a location"

Click "Next"

4) If it is default installation, enter the driver directory path "C:¥Program Files¥NEC Electronics Tools¥TK-driver" in "Copy manufacturer’s files form", and then click "OK". If the installation directory is not default, then select "TK-driver" under the installation directory. Found New Hardware Wizard 4 (Windows 2000) Click "OK"

Select the driver directory

TESSERA TECHNOLOGY INC.

19/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

5) Click "Next". Found New Hardware Wizard 5 (Windows 2000)

Click "Next"

6) Click "Finish" to complete the installation of "NEC Electronics Starter Kit Virtual UART" driver Found New Hardware Wizard 6 (Windows 2000)

Click

7) Go to "1.3.3 Confirm USB Driver Installation".

TESSERA TECHNOLOGY INC.

20/87

STICKCAN V850 DEVELOPMENT KIT

1.3.3

TUTORIAL GUIDE

Confirm USB Driver Installation

After the installation of USB driver, you can confirm the driver is installed appropriately. Start "Device Manager", and find "NEC Electronics Starter Kit Virtual UART" without "?" mark under the "Ports (COM & LPT)" to confirm the installation. Device Manager

Confirm " NEC Electronics Starter Kit Virtual UART (COMx)" is displayed.

The screen above shows that the COM port number is "COM8". If ID850QB-EZ is not in use, you can use this port number for connecting StickCAN V850. When you change the USB port, the COM port number will be changed as well. Specify the port number that you just set when you use FPL (Flash Programmer) or Simplified CAN Monitor. [CAUTION] Do not do “Hardware Modification Scan” when you communicate with the microcontroller.

TESSERA TECHNOLOGY INC.

21/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

1.4 Sample Program This section explains the preparation of sample program. To use the sample program, you need to install the sample program itself on development environment. Installation of sample program and installation location will be described.

TESSERA TECHNOLOGY INC.

22/87

STICKCAN V850 DEVELOPMENT KIT

1.4.1

TUTORIAL GUIDE

Installation of Sample Program Please insert the CD-ROM that is bundled with StickCAN V850 in the drive. The "NEC Electronics Microcontroller Development Tools Setup" screen will show up automatically. If it does not start automatically, please start it by double clicking the setup.exe from Windows Explorer. When you click "Sample Program" button, a browser window opens. Click "Sample program for StickCAN V850" on the browser.

The browser window opens

Click "Sample program for StickCAN V850". You can download the tutorial guide as well here.

When it is clicked, dialog to confirm the file download is displayed.

TESSERA TECHNOLOGY INC.

23/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Click "Save".

After specifying the directory to download, click "Save". The self-extracting file for the set of sample program (TK850.exe) is copied in the specified directory. When you execute this file, "TK850" directory is created, and then directories for the sample program are created in the "TK850" directory.

TESSERA TECHNOLOGY INC.

24/87

STICKCAN V850 DEVELOPMENT KIT

1.4.2

TUTORIAL GUIDE

Structure of Sample Programs

The sample program for V850ES/FG3 (µPD70F3377) consists of following directories.

C:¥ │ └─ TK850 │ └─ STICK_CAN-V850 │ ├─ CAN_HIGH Sample directory for high-speed CAN │ │ │ ├─ PRJ Project files │ │ │ ├─ 500KBPS CAN software driver │ │ │ ├─ SRC Source files │ │ │ ├─ OBJ Intermediate files │ │ │ └─ ROM Output files │ ├─ CAN_LOW Sample directory for low-speed CAN │ │ │ ├─ PRJ Project files │ │ │ ├─ 125KBPS CAN software driver │ │ │ ├─ SRC Source files │ │ │ ├─ OBJ Intermediate files │ │ │ └─ ROM Output files │ ├─ sample1 Compiled sample 1 │ ├─ CAN_HIGH … │ └─ CAN_LOW … ├─ sample2 Compiled sample 2 │ ├─ CAN_HIGH … │ └─ CAN_LOW .. └─ MONITOR Simplified CAN monitor

TESSERA TECHNOLOGY INC.

25/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Chapter 2 Experiences In this chapter, you will experience the development tool for V850ES/FG3. You will use the programs that you prepared in "1.3 Sample Programs", as the sample programs for EB-850/JG2+TFT. By building the sample programs and operating the program with ID850QB-EZ, you will be able to understand the basic operation of the development tools (PM+, ID850QB-EZ) and the concept of project files which you need to be aware for developing application programs.

TESSERA TECHNOLOGY INC.

26/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

The overall steps are as follows:

2.1 Start Start PM+ PM+

Load Workspace (Project)

Check Debugger Settings

StickCAN V850 Settings

Create Executable File Run Programs

Start Integrated Debugger (ID850QB-EZ)

Run Programs

Stop Programs

Close Integrated Debugger (ID850QB-EZ)

Quit PM+

TESSERA TECHNOLOGY INC.

27/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.1 Start PM+ Let's start using the development tools. First, start the PM+. Select "Windows Start Menu" -> "Programs" -> "NEC Electronics Tools " -> " PM+ V6.30".

PM+ starts up

TESSERA TECHNOLOGY INC.

28/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.2 What is PM+ In PM+, application programs and environment settings are handled as a single project. It manages series of actions such as programming with the editor, source management, build, and debugging. Also, one or more project files are managed as a workspace. Menu bar Tool Bar

Project window

Output window

Project window: A window in which the project names, source files, and include files are displayed with a tree structure. Output window: A window in which the build execution status is displayed. For details about the menu bar and tool bar, refer to PM+ user's manual.

TESSERA TECHNOLOGY INC.

29/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

What is a project? A project is the unit that PM+ manages. A project refers to application systems developed on PM+ and environment on PM+. PM+ saves and loads project information in a "project file".

What is a project file? A project file contains project information that includes the source files, device name, tool options for compiling, editor, and debugger information. The file name format is "xxxxx.prj". Project files are created in the directory you specifies when you create a new workspace.

What is a project group? A project group is a group related projects in an application system. The target device of each project must be the same within a project group.

What is a workspace? A workspace is the unit used to manage all the projects and project groups required for one application system. A workspace file contains one or more project files. The file name format is "xxxxx.prw".

TESSERA TECHNOLOGY INC.

30/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.3 Load Workspace (Project) In this section, you will be using the pre-created workspace. For creating a new workspace, refer to "2.12 Create a New Workspace". The workspace has the completed sample CAN control application files and project settings. Select "File" on menu bar and "Open Workspace…". Then, select "C:¥TK850¥STICK_CAN-V850¥CAN_HIGH¥PRJ¥can_high.prw". If you have not set the environment, refer to "1.4 Sample Program".

Open the directory that the sample programs are stored.

TESSERA TECHNOLOGY INC.

31/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Workspace name: can_high.prw

Project group

Project

Load the workspace file "can_high.prw"

The workspace file "can_high.prw" contains one project called "StickCAN V850 for HIGH Speed CAN 500Kbps". You will use this project "StickCAN V850 for HIGH Speed CAN 500Kbps".

TESSERA TECHNOLOGY INC.

32/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.4 Check Debugger Settings Select "Tool" on menu bar in PM+, then "Debugger Settings...".

TESSERA TECHNOLOGY INC.

33/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Check if "ID850QB-EZ V3.41 V850 Integrated Debugger" is selected on "Debugger".

If you cannot select "ID850QB-EZ V3.41 V850 Integrated Debugger", use menu bar to select "Project", "Project settings" -> "Tool version settings" -> "Detail setting…" -> then select " ID850QB-EZ V3.41 V850 Integrated Debugger" on "Tool Version Detail Setting".

TESSERA TECHNOLOGY INC.

34/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.5 StickCAN V850 Settings Set the switches of StickCAN V850 as shown below. Debug Switch Setting: ON

Transceiver Switch Setting: HIGH

When you set the switches, connect the StickCAN V850 USB connector to PC. If there is distance between StickCAN V850 and the PC, use bundled USB extension cable. If "Found New Hardware Wizard" screen is displayed, install USB driver with referring "1.3 Installation of USB Driver". [Note] ID850QB-EZ can debug only one StickCAN V850. Do not start the debugger with connecting more than one StickCAN V850.

TESSERA TECHNOLOGY INC.

35/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.6 Create Executable Files Now, you are going to create an executable file. This process is called build.

Click the build button

in PM+, or select "Build" on menu bar, then "Build".

Build process is executed

Build has been completed successfully.

TESSERA TECHNOLOGY INC.

36/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

What is build? Build is a function that creates an executable file from source files in a project. PM+ automatically performs compiling, assembling, linking, and other processing actions. To reduce the time for the build, PM+ detects and compiles/assembles only the files that have been updated from the previous build process.

What is rebuild? Build compiles and assembles only the source files that have been updated from the previous time, whereas rebuild compiles and assembles all the source files. When the settings, such as compiler options, have been changed, you must rebuild instead of build.

TESSERA TECHNOLOGY INC.

37/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.7 Start Debugger

Click the debug button

in PM+, or select "Build" on menu bar, then "Debug".

If you do not see the debug button, select "Tool", "Debugger settings…", then "ID850QB-EZ V3.41 V850 Integrated Debugger".

ID850QB-EZ is started

TESSERA TECHNOLOGY INC.

38/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

"Configuration" dialog is opened. Enter "6" in "Clock Main OSC", "8" in "Multiply rate", select "---" in "Sub OSC", enter "FFFFFFFFFFFFFFFFFFFF" (F x 20) in "ID Code", and then click "OK".

Enter "6"

Enter "8" Select "---"

Enter "FFFFFFFFFFFFFFFFFFFF". The value previously entered is shown with "*".

Click "Yes" when the confirmation dialog for downloading load module file is opened.

TESSERA TECHNOLOGY INC.

39/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

ID850QB-EZ starts and downloads the program to flash memory.

When the download is completed successfully, the source code will be displayed.

TESSERA TECHNOLOGY INC.

40/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

When you cannot start the debugger, you will see the errors shown below. Solve the error by referring to them. 1) F0100: Can not communicate with Emulator. Please confirm the installation of the device driver for the PC interface board.

Check the USB driver settings with referring "1.3 Installation of USB Driver".

2) F0c26: FLMD terminal is in a write-protected state.

Check the switch settings are correct. This error occurs when Debug switch is OFF.

3) F0c72: Monitor memory cannot be accessed.

Check if "Clock Main OSC" in "Configuration" dialog is set to "6". This error occurs when the clock that set in CPU and debugger setting are different.

TESSERA TECHNOLOGY INC.

41/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

4) Ff603: Incorrect ID Code.

This error occurs when the ID code is incorrect. Also, this may occurred when you start the debugger the first time. Enter "FFFFFFFFFFFFFFFFFFFF" (F x 20) for the ID code. When you click "OK", "Configuration" dialog opens. Enter the correct ID code.

The workspace uses "FFFFFFFFFFFFFFFFFFFF" for the ID code. This ID code can be changed in "Device" tab on "Compiler Common Options Settings". ID code is set for protecting the program from others to use the debugger and to modify the program. If you forgot the security ID, you need to erase the microcontroller built-in flash memory. Install FPL from bundled CD-ROM and erase the flash memory. For more information about PG-FPL, refer to "Chapter 3 FPL".

TESSERA TECHNOLOGY INC.

42/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

5) Other errors. When other errors are occurred, select "Help" on menu bar, then "ID850QB".

Select "Contents", "APPENDIX", "MESSAGES", and then find out the relevant error messages.

TESSERA TECHNOLOGY INC.

43/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.8 Integrated Debugger (ID850QB-EZ) ID850QB-EZ displays CPU core status in the main window and controls monitor program. Initial screen of ID850QB-EZ is shown below.

Menu bar

Window display area

Tool bar

Status bar

For more information about display areas, menu bar, and tool bar, refer to "ID850QB Integrated Debugger User's Manual - Operation".

TESSERA TECHNOLOGY INC.

44/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.9 Run Programs Now, you are ready to run the program. Click the restart button

in ID850QB-EZ, or select "Run" on menu bar, then "Restart".

The sample program runs.

Program runs

When programs are running, the status bar will be red.

TESSERA TECHNOLOGY INC.

45/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

POWER LED

LED1 LED2 LED3

LEDs are controlled by the sample program. When program is running, LED1 and LED2 light up and LED3 repeats turning on and off in every 0.5 seconds.

LED1

LED2

LED3

On

On

Off

On

On

On

Repeat turning on and off in every 0.5 seconds.

By check the LEDs, you can confirm the sample program is working.

TESSERA TECHNOLOGY INC.

46/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.10 Stop Programs Now, you are going to stop the program. Click the stop button

in ID850QB-EZ, or select "Run" on menu bar, then "Stop".

Stop the program

When the program stops, the status bar changes back to the original color.

TESSERA TECHNOLOGY INC.

47/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.11 Close Integrated Debugger (ID850QB-EZ) Select "File" on ID850QB-EZ menu bar, then "Exit".

The exit confirmation dialog is displayed.

If you click "Yes", it saves the current settings in the project file, and then closes the ID850QB-EZ. If you click "No", it does not save the current settings and closes the ID850QB-EZ.

TESSERA TECHNOLOGY INC.

48/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.12 Create a New Workspace Now, create a new workspace and project. PM+ allows you to create a new project including all the information needed for build by following the step-by-step dialog. How to select existing start-up file and link directive file will be described. Select "File" -> "New Workspace..." in the menu bar of PM+.

• Workspace File Name: Specify the name of the workspace file that manages the project files. ".prw" is automatically suffixed as the file type. A project file (.prj) of the same name is simultaneously created. • Folder: Specify the folder for saving the workspace file by entering its absolute path. This item can be selected from a reference dialog box by clicking the "Browse…" button. • Project Group Name: Specify this item if wishing to manage multiple projects together in function units. If nothing is specified, this item is the same as the workspace file name. • Series Name: Specify the series name of the device to be used. • Device Name: Specify the name of the device to be used.

TESSERA TECHNOLOGY INC.

The dialog box for creating new workspace is displayed

Details about the settings are described in the next page

49/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Input the workspace information setting as follows. •

Workspace file name → CAN_LOW



Folder → C:¥TK850¥STICK_CAN-V8 50¥CAN_LOW¥PRJ (Click "Browse")



Project Group Name → Don’t input this item.



Series Name → V850 Series



Device Name → µPD70F3377

Click "Next" button.

Click "Detail Setting…" button for the settings of tools.

TESSERA TECHNOLOGY INC.

50/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Set the version of tools as follows. CA850: W3.10 ID850QB-EZ: V3.41

Click "OK".

Click "Next".

Select "Use the Existing file" The Startup File Name to register: → C:¥TK850¥STICK_CAN-V850¥CAN _LOW¥SRC¥crtE.s (Click "Browse")

Click "Next".

TESSERA TECHNOLOGY INC.

51/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Select "Use the Existing file" The Link Directive File Name to register: → C:¥TK850¥STICK_CAN-V850¥CAN_LO W¥SRC¥stick_can-v850.dir (Click "Browse")

Click "Next".

Click "Next".

TESSERA TECHNOLOGY INC.

52/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Select "ID850QB-EZ V3.41 V850 Integrated Debugger" in "Debugger".

Click "Next".

Check the project information settings

Click "Finish".

TESSERA TECHNOLOGY INC.

53/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Project “CAN_LOW" was registered.

This completes workspace and project creation. Additional source files can be registered at any time thereafter. For details, refer to "2.13 Register Additional Source File".

TESSERA TECHNOLOGY INC.

54/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Next, you are going to set the output file directory, object output for ROM processor, and the security ID. Select "Tool" on menu bar, then "Compiler Common Options...".

"Compiler Common Options" dialog opens.

• Intermediate Output Directory: Specify the directory to store intermediate output files such as object files. (Click "Browse") • Final Output Directory: Specify the directory to store executable object files and HEX files. (Click "Browse") • Error file: Manage multiple projects with units of functions. (Click "Browse") If you do not set these, files are output in the directory that the project files are stored. Details about the settings are described in the next page

TESSERA TECHNOLOGY INC.

55/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Set the workspace information as shown below. Intermediate Output Directory: → ..¥OBJ Final Output Directory: → ..¥ROM Error file: → Don’t input this item.

Select "ROM" tab.

Check "Create Object for ROM".

TESSERA TECHNOLOGY INC.

56/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Select "Device" tab.

Enter "0xffffffffffffffffffff" (f x 20) in "Security ID" if there will not be a security problem entering it.

Enter security ID

Click "OK". This completes the setting of the output file directory, object output for ROM processor, and the security ID.

TESSERA TECHNOLOGY INC.

57/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Next, you are going to specify the output file name for ROM object file. Select "Tool" on menu bar, then "ROM Processor Options...".

Enter "can_low.out" in "Output file" field. If you skip this setting, the output file name becomes "romp.out".

Click "OK". This completes the setting of the output file name of ROM object.

TESSERA TECHNOLOGY INC.

58/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.13 Register Additional Source File This section explains how to register additional source files to a project. It is assumed that the directory is structured as shown below. C:¥TK850 └─ STICK_CAN-V850 └─ CAN_LOW ├─ PRJ ├─ 125KBPS └─ SRC

Sample directory for low-speed CAN Project files CAN software driver Source files

The following example shows that the additional source files “CAN_LOW.C” and a set of files to structure CAN software driver will be registered to a project which does not have any source files. Place the cursor on the source file in the PM+ project window, and select "Add Source Files…" displayed in the right-click menu.

TESSERA TECHNOLOGY INC.

59/87

STICKCAN V850 DEVELOPMENT KIT

Click

TUTORIAL GUIDE

to move to higher directory.

Select "src", and then click "Open" button.

Select the source file "can_low.c", and then click "Open" button.

TESSERA TECHNOLOGY INC.

60/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Source file "can_low.c" is additionally registered to the project.

Again, place the cursor on the source file in the PM+ project window, and select "Add Source Files…" displayed in the right-click menu.

TESSERA TECHNOLOGY INC.

61/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

"Add Source Files" dialog opens.

Click "Add Files from Folder..." button.

Select "125kbps", and then click "OK".

"Browse for Folder" dialog is displayed.

TESSERA TECHNOLOGY INC.

62/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

In addition to "can_low.c", a set of source files for CAN software driver files is additionally registered to the project.

Now, you are setting the path of include files that is used by CAN software driver. Select "Tool" on menu bar, then "Compiler Options...".

TESSERA TECHNOLOGY INC.

63/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Click "Preprocessor" tab.

Click "Edit..." button.

Click "Add…" button

TESSERA TECHNOLOGY INC.

64/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Select the directory "125Kbps", and then click "OK".

Confirm that a path is added to the list, and click "OK".

Confirm that the path for include files is added, and click "OK". This completes the registration of additional source files and setting the path for include files.

TESSERA TECHNOLOGY INC.

65/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

2.14 Quit PM+ Select "File" on PM+ menu bar, then "Exit PM+".

PM+ is closed.

TESSERA TECHNOLOGY INC.

66/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Chapter 3 FPL FPL is a flash memory programming software that works on Windows. This can write Hex application program on the flash memory in V850ES/FG3 (µPD70F3377) in StickCAN V850 via USB interface. All the hardware required for writing is embedded in StickCAN V850.

3.1 Installation of FPL Start "¥FPL¥FPL_E160a.msi" in the bundled CD-ROM with Windows Explorer. Installation of PG-FPL starts. FPL cannot be installed from the integrated installer.

3.2 FPL Usage Leave the setup CD-ROM in the drive. Set the StickCAN V850 switches as shown below. Debug Switch Setting: ON

Transceiver Switch Setting: HIGH

After setting the switch, connect the StickCAN V850 to PC.

PC

USB

TESSERA TECHNOLOGY INC.

67/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Select "Windows Start Menu" -> "Programs" -> "NEC Electronics Tools " -> "FPL" -> "FPL_E160a" -> "FPL" to start PG-FPL. When FPL is launched, click

TESSERA TECHNOLOGY INC.

icon.

68/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

When "Device Setup" window is opened, click "PRM File Read".

Select "70F3377.prm" under the directory "¥PRM¥PRM70F3385_V101" in CD-ROM, and click "Open".

TESSERA TECHNOLOGY INC.

69/87

STICKCAN V850 DEVELOPMENT KIT

-

TUTORIAL GUIDE

Select the port number assigned to StickCAN V850 in the "Port" field. If you do not know the COM port number, check the COM port number of "NEC Electronics Starter Kit Virtual UART" that can be displayed by selecting "Windows Start Menu" -> "Control panels" -> "System" -> "Hardware" -> "Device manager" -> "Port (COM, LPT)".

- Enter "19200" in "Speed" - Enter "6.00" in "Frequency" - Enter "8.00" in "Multiply" Click "OK".

If old version of PG-FPL is installed on PC, there could be a possibility that you can check the COM in device manager but cannot find the COM in "Port" selection. In this case, delete a file "FPL.ini" under the "windows" directory and re-install FPL.

TESSERA TECHNOLOGY INC.

70/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Next, load HEX file into FPL.

Click , and open "C:¥TK850¥STICK_CAN-V850¥CAN_HIGH¥ROM¥can_high.hex" that you have created in "2.6 Create Executable Files". It should display "Success read HEX file" like the screen below.

TESSERA TECHNOLOGY INC.

71/87

STICKCAN V850 DEVELOPMENT KIT

Now, click

When

TUTORIAL GUIDE

to start writing.

is clicked, it executes "Erase" and "Program" command.

When "Flash internal Verify OK!" is displayed, it means that the writing process has been completed. Program has been written on flash memory successfully. Disconnect StickCAN V850. In the same way, you can program on the second, third board.

When you wish to run the program in V850ES/FG3 that is written by FPL as stand-alone automatically, set the debug switch on StickCAN V850 to OFF, and then connect it to PC.

You can initialize the V850ES/FG3 (erase the flash memory) by clicking

TESSERA TECHNOLOGY INC.

.

72/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Chapter 4 CAN Software Driver CAN software driver provides application program interface (API) functions to realize communication function to CAN communication functioned V850 32bit microcontroller and 78K0 8bit microcontroller from NEC Electronics.

4.1 Installation of CAN Software Driver Start "¥SAMPLE_E¥NEC_CANdrv_J_V220.msi" in the bundled CD-ROM with Windows Explorer.

If you have not installed "Microsoft .NET Framework Version 1.1" on the system, following dialog opens while installing. Follow the steps to install "Microsoft .NET Framework Version 1.1". If you cannot have the "Microsoft .NET Framework Version 1.1" through internet, use "¥SAMPLE¥dotnetfx_V1.1.exe" in the bundled CD-ROM for "Microsoft .NET Framework Version 1.1" distribution version package.

4.2 Start CAN Software Driver Start the CAN software driver by selecting "Windows Start Menu" -> "Programs" -> "NEC_CANdrv" -> "CAN Configurator". For details about specifications and usages of CAN software driver, refer to the attached document "CAN Software Driver User's Manual".

TESSERA TECHNOLOGY INC.

73/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Chapter 5 Sample Program This is a sample program that lights up LED in certain cycle time and sends data frames to CAN bus. Two kinds of sample programs, which are for high-speed CAN (500kbps) and low-speed CAN (125kbps), are included in the CD-ROM.

CAUTION: If you have not used the debugger after installing development tools, follow "2.1 Start PM+" through "2.7 Start Debugger" to set the ID code to "FFFFFFFFFFFFFFFFFFFF" before using the sample programs.

Sample Program Overview Sample program 1 repeats sending date to CANID 0x100 through 0x200. Sample program 2 repeats sending date to CANID 0x200 through 0x100. Also, both programs light up or blink LED1/LED2 depending on the receiving CAN data. Two-way communication can be checked by connecting two StickCAN V850 that those two programs are written on. Structure Two StickCAN V850 are required for checking the sample program operations. Connect two StickCAN V850 with using CAN cables and a commercial DSUB 9pin gender change connector (male-male). The Structure is shown below. (Sample Program 1)

CAN cable

PC

USB Gender change connector (DSUB 9pin, male-male)

CAN cable Sample Program 2 USB

TESSERA TECHNOLOGY INC.

74/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

5.1 StickCAN V850 Preparation

5.1.1

For High-Speed CAN Set switches on both StickCAN V850 as shown below. Debug Switch Setting: ON

Transceiver Switch Setting: HIGH

5.1.2

For Low-Speed CAN Set switches on both StickCAN V850 as shown below. Debug Switch Setting: ON

Transceiver Switch Setting: LOW

TESSERA TECHNOLOGY INC.

75/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

5.2 Download Programs

5.2.1

For High-Speed CAN Connect one StickCAN V850 to PC.

PC

USB

Load "C:¥TK850¥STICK_CAN-V850¥SAMPLE1¥CAN_HIGH¥PRJ¥can_high.prw" on PM+, and then start the debugger. For the information how to load a workspace (project), refer to the section from "2.1 Start PM+".

When the download is completed, close the debugger and disconnect the StickCAN V850 from PC.

Connect another StickCAN V850 to PC.

Load "C:¥TK850¥STICK_CAN-V850¥SAMPLE2¥CAN_HIGH¥PRJ¥can_high.prw" on PM+, and then start the debugger.

When the download is completed, close the debugger and disconnect the StickCAN V850 from PC.

TESSERA TECHNOLOGY INC.

76/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Set the Debug switch on both StickCAN V850 to OFF. Debug Switch Setting: OFF

Connect both StickCAN V850 together with CAN cables and gender change connector (male-male). Connect both StickCAN V850 to PC (Sample Program 1)

CAN cable

PC

USB Gender change connector (DSUB 9pin, male-male)

CAN cable Sample Program 2 USB

TESSERA TECHNOLOGY INC.

77/87

STICKCAN V850 DEVELOPMENT KIT

5.2.2

TUTORIAL GUIDE

For Low-Speed CAN Connect one StickCAN V850 to PC.

PC

USB

Load "C:¥TK850¥STICK_CAN-V850¥SAMPLE1¥CAN_LOW¥PRJ¥can_high.prw" on PM+, and then start the debugger. For the information how to load a workspace (project), refer to the section from "2.1 Start PM+".

When the download is completed, close the debugger and disconnect the StickCAN V850 from PC.

Connect another StickCAN V850 to PC.

Load "C:¥TK850¥STICK_CAN-V850¥SAMPLE2¥CAN_LOW¥PRJ¥can_high.prw" on PM+, and then start the debugger.

When the download is completed, close the debugger and disconnect the StickCAN V850 from PC.

TESSERA TECHNOLOGY INC.

78/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Set the Debug switch on both StickCAN V850 to OFF. Debug Switch Setting: OFF

Connect both StickCAN V850 together with CAN cables and gender change connector (male-male). Connect both StickCAN V850 to PC (Sample Program 1)

CAN cable

PC

USB Gender change connector (DSUB 9pin, male-male)

CAN cable Sample Program 2 USB

TESSERA TECHNOLOGY INC.

79/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

5.3 Operation Check If you can see LED1 and LED2 on both StickCAN V850 are lighted up, it means the program is running correctly. LED3 blinks with the timing of CAN communication.

POWER LED

LED1 LED2 LED3

This completes the checking of program operations. Disconnect the StickCAN V850. Note that you need to set the Debug switch back to ON before using debugger.

TESSERA TECHNOLOGY INC.

80/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Chapter 6 Simplified CAN Monitor This is a sample application that works with stand-alone using StickCAN V850. It can monitor/display the high-speed CAN (500Kbps) communication. Note that sometimes its GUI does not work on the environment such as Windows 2000.

6.1 Installation of Simplified CAN Monitor Copy "¥SAMPLE_E¥can_monitor.exe" in the bundled CD-ROM to any directory with Windows Explorer. The file "setting.config" is created in the same directory as "can_monitor.exe".

6.2 Installation of Microsoft .NET Framework Version 2.0 As "can_monitor.exe" uses "Microsoft .NET Framework Version 2.0", you need to install "Microsoft .NET Framework Version 2.0" before you start using the GUI.

If you have not installed "Microsoft .NET Framework Version 2.0" on the system, following dialog opens while executing "can_monitor.exe".

TESSERA TECHNOLOGY INC.

81/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

6.3 Write on StickCAN V850 You are going to write program that support the simplified CAN monitor for V850ES/FG3. Write "C:¥TK850¥STICK_CAN-V850¥MONITOR¥can_mon.hex" on StickCAN V850 using FPL (flash programmer). For the information about FPL usage, refer to "Chapter 3 FPL".

6.4 StickCAN V850 Settings Set the Debug switch to OFF, the Transceiver switch to HIGH on StickCAN V850, and then connect it to PC. Debug Switch Setting: OFF

Transceiver Switch Setting: HIGH

6.5 Simplified CAN Monitor Connection Structure Example This is the structure example when you monitor the CAN communication with Simplified CAN Monitor. CAN cable PC

USB CAN bus Other CAN device

Other CAN device

TESSERA TECHNOLOGY INC.

82/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

6.6 Start Simplified CAN Monitor GUI starts by double-clicking "can_monitor.exe" that is copied to the hard disc previously.

6.7 Simplified CAN Monitor GUI The GUI is explained in this section. The functions are described in following pages.

Setting menu bar

1 frame sending function button

No: Time:

ID: DLC:

Receiving number Receiving interval (time in Windows) Data frame Standard ID(St) / Extended ID(Ex) ID DLC

Data:

Data

RTR: IDE:

Monitoring start/stop button

TESSERA TECHNOLOGY INC.

CAN frame display area

83/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

6.8 Simplified CAN Monitor GUI Operation Select the COM port that StickCAN V850 is connected to.

Click "Start" to start monitoring.

TESSERA TECHNOLOGY INC.

84/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Data frames communicating in CAN bus are displayed sequentially. It returns ACK the data frames that can be received by the Simplified CAN Monitor.

If you wish to send a data frame, set ID and data, and then click "Send". The ID format is 4 digits for standard ID and 8 digits for extended ID. You need to prefix "0" on top to adjust the number of digits.

TESSERA TECHNOLOGY INC.

85/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

Click "Stop" to stop monitoring.

When you select "File" then "End" on menu bar, or click the "x" button on right-top of the window, it saves the COM port setting and closes the Simplified CAN Monitor.

TESSERA TECHNOLOGY INC.

86/87

STICKCAN V850 DEVELOPMENT KIT

TUTORIAL GUIDE

If you start monitoring in the middle of CAN communication, an error dialog may be displayed on GUI of Simplified CAN Monitor. Just click "OK" to resume the process.

6.9 Customization of Simplified CAN Monitor The source file of V850ES/FG3 Simplified CAN Monitor is available under the directory "¥SAMPLE¥TK850¥STICK_CAN-V850¥MONITOR¥Src" in the CD-ROM. Users can customize the source file for user needs such as baud rate and transceiver settings. The monitor program uses UARTD0 function of V850ES/FG3 (TXDD0, RXDD0 pins). As ID850QB-EZ uses the same pins, user cannot debug the Simplified CAN Monitor program. The Simplified CAN Monitor is a sample program. Please be aware that technical questions such like program operations cannot be accepted or responded.

TESSERA TECHNOLOGY INC.

87/87