Renesas 32176, M3A-2152 User Manual

0300
REJ10B0224-
32176
Group
Starter Kit User’s Manual
M3A-2152
All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Technology Corp. without notice. Please review the latest information published by Renesas Technology Corp. through various means, including the Renesas Technology Corp. website (http://www.renesas.com).
Rev.3.00 Revision Date: Jan. 19, 2007

Notes regarding these materials

1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document.
2. Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document, including, but not limited to, product data, diagrams, charts, programs, algorithms, and application circuit examples.
3. You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use. When exporting the products or technology described herein, you should follow the applicable export control laws and regulations, and procedures required by such laws and regulations.
4. All information included in this document such as product data, diagrams, charts, programs, algorithms, and application circuit examples, is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas products listed in this document, please confirm the latest product information with a Renesas sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website. (http://www.renesas.com )
5. Renesas has used reasonable care in compiling the information included in this document, but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document.
6. When using or otherwise relying on the information in this document, you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application. Renesas makes no representations, warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products.
7. With the exception of products specified by Renesas as suitable for automobile applications, Renesas products are not designed, manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems, or equipment or systems for transportation and traffic, healthcare, combustion control, aerospace and aeronautics, nuclear power, or undersea communication transmission. If you are considering the use of our products for such purposes, please contact a Renesas sales office beforehand. Renesas shall have no liability for damages arising out of the uses set forth above.
8. Notwithstanding the preceding paragraph, you should not use Renesas products for the purposes listed below: (1) artificial life support devices or systems (2) surgical implantations (3) healthcare intervention (e.g., excision, administration of medication, etc.) (4) any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp., its affiliated companies and their officers, directors, and employees against any and all damages arising out of such applications.
9. You should use the products described herein within the range specified by Renesas, especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges.
10. Although Renesas endeavors to improve the quality and reliability of its products, IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Please be sure to implement safety measures to guard against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other applicable measures. Among others, since the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you.
11. In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed, the risk of accident such as swallowing by infants and small children is very high. You should implement safety measures so that Renesas products may not be easily detached from your products. Renesas shall have no liability for damages arising out of such detachment.
12. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written approval from Renesas.
13. Please contact a Renesas sales office if you have any questions regarding the information contained in this document, Renesas semiconductor products, or if you have any other inquiries.

Precautions on Using The Product Described Herein

1. The product described herein should be used in combination with the parts included with the starter kit. If the product is operated in combination with any other item, its operation cannot be guaranteed. Nor will requests for help or suggestion be answered.
2. The product described herein was prepared for program development or evaluation purposes. The product cannot be used for the mass production.
3. Renesas Technology Corporation and Renesas Solutions Corporation will not assume any responsibility for the results of development no matter what systems may have been developed by customers by using the product described herein.
4. Guarantee for the product described herein shall conform to stipulations under which guarantee is provided for the starter kit.
5. The product described herein was prepared assuming it will be used in a laboratory or similar environment for program development or evaluation purposes. It is not covered in the electrical product safety laws, nor is it protected against electromagnetic hazards for use in Japan or elsewhere.

For Inquiries About Product Contents or This Manual

Please contact: Renesas Technology Corporation at csc@renesas.com
* Microsoft, MS-DOS, Windows, and Windows NT are registered trademarks of Microsoft Corporation in the U.S. and other
countries. * Adobe and Acrobat are registered trademarks of Adobe Systems Incorporated. * All other brand names and product names are trademarks or registered trademarks of each proprietary company.

Preface

Thank you very much for purchasing the 32176 Group Starter Kit, the M3A-2152G52A and
M3A-2152G52.
This manual describes how to set up the hardware and software products included with the
32176 Group Starter Kit and the precautions to be observed when using those products.
For details about the 32176 Group hardware and software products and development support
tools, refer to the user’s manuals and related documentation supplied with them.

Contents

1. Overview........................................................................................................................1
1.1 Outline of the Starter Kit...................................................................................................................... 1
1.2 System Configuration.......................................................................................................................... 3
2. Contents of the Product Package..................................................................................4
2.1 Packaged Product Items..................................................................................................................... 4
2.2 Contents of CD-ROM.......................................................................................................................... 5
2.3 Other Necessary Items ....................................................................................................................... 5
3. Usage Precautions.........................................................................................................6
3.1 Guaranteed Scope of the Starter Kit................................................................................................... 6
3.2 Regarding About System Power-on Sequence when Connected to the Emulator............................. 6
3.2.1 M3A-2152G52A in Use.................................................................................................................. 6
3.2.2 M3A-2152G52 in Use....................................................................................................................6
3.3 About M32100T-EZ-E for M3A-2152G52A......................................................................................... 7
3.4 About M3T-CC32R.............................................................................................................................. 7
3.5 About M3T-PD32RM........................................................................................................................... 8
3.5.1 Operating Manuals ........................................................................................................................ 8
3.5.2 About Break Operation..................................................................................................................8
3.5.3 About Security Code Check Function............................................................................................ 9
3.6 About Evaluation Board .................................................................................................................... 10
3.6.1 Contact failure of IC Socket......................................................................................................... 10
3.6.2 Cable Connection........................................................................................................................ 10
4. Starter Kit Usage Conditions........................................................................................11
4.1 Ambient Conditions............................................................................................................................11
4.2 Host PC Condition..............................................................................................................................11
4.3 Conditions for the Power Supply Used..............................................................................................1 1
5. Hardware Setup...........................................................................................................12
5.1 Hardware Setup when M3A-2152G52A in Use.................................................................................12
5.1.1 M32100T-EZ-E Power Supply and Settings................................................................................ 12
5.1.2 M3A-2152 Evaluation Board Power Supply and Settings........................................................... 13
5.1.3 Connecting M3A-2152 Evaluation Board and M32100T-EZ-E.................................................... 13
5.1.4 System Power-on Sequence when M3A-2152G52A in Use.......................................................13
5.2 Hardware Setup when M3A-2152G52 in Use................................................................................... 14
5.2.1 M3A-2195 Power Supply Connection and Settings .................................................................... 14
5.2.2 Connecting to Host PC................................................................................................................ 14
5.2.3 M3A-2152 Evaluation Board Power Supply and Settings........................................................... 15
5.2.4 Connecting M3A-2152 Evaluation Board and M3A-2195............................................................ 15
5.2.5 System Power-on Sequence when M3A-2152G52 in Use.......................................................... 15
5.3 Hardware Setup when the Evaluation Board by Itself in Use........................................................... 16
5.3.1 M3A-2152 Evaluation Board Power Supply and Settings........................................................... 16
5.3.2 M3A-2152 Power Supply............................................................................................................. 16
6. Software Setup ............................................................................................................17
6.1 M3T-PD32RM.................................................................................................................................... 17
6.1.1 Installing M3T-PD32RM............................................................................................................... 17
6.1.2 Starting M3T-PD32RM................................................................................................................. 18
6.1.3 Error Messages During M3T-PD32RM Startup........................................................................... 20
6.1.4 Terminating M3T-PD32RM..........................................................................................................20
6.2 M3S-KD32R...................................................................................................................... ................21
6.2.1 Installing M3S-KD32R ................................................................................................................. 21
6.2.2 Starting M3S-KD32R ................................................................................................................... 22
6.2.3 Error Messages during M3S-KD32R Startup...............................................................................24
6.2.4 Terminating M3S-KD32R.............................................................................................................24
CONTENTS-1
6.3
6.4 Browsing Electronic Manuals............................................................................................................ 25
M3T-CC32R......................................................................................................................................25
6.3.1 Installing M3T-CC32R.................................................................................................................. 25
6.3.2 Verifying Whether M3T-CC32R is Installed Normally.................................................................. 25
Appendix 1 Contents of CD-ROM...................................................................................26
1. Contents of CD-ROM...................................................................................................26
1.1 Acrobat.............................................................................................................................................. 27
1.2 Tool.................................................................................................................................................... 28
1.3 Manual............................................................................................................................................... 31
1.4 Board Related Manual (Document) .................................................................................................. 32
1.5 Sample Program ............................................................................................................................... 37
Appendix 2 Part List........................................................................................................38
Appendix 3 M3A-2152G02 Product Standards...............................................................41
1. Overview......................................................................................................................42
1.1 Outline of the Product ....................................................................................................................... 42
1.2 External View .................................................................................................................................... 43
1.3 Block Diagram................................................................................................................................... 44
1.4 Specifications of the Evaluation Board.............................................................................................. 45
1.4.1 Electrical Characteristics ............................................................................................................. 45
1.4.2 Functional Characteristics ........................................................................................................... 45
2. Functional Specifications.............................................................................................46
2.1 Configuration of the Power Supply ................................................................................................... 46
2.2 FP Select Circuit................................................................................................................................ 47
2.3 MOD Select Circuit............................................................................................................................ 48
2.4 Serial I/O Interface............................................................................................................................ 49
2.5 Oscillator Circuit................................................................................................................................ 51
2.6 General-purpose Output Port LED Indicators................................................................................... 52
2.7 General-purpose Input Port Control Circuit....................................................................................... 53
2.8 Analog Port Input Control Circuit....................................................................................................... 54
2.9 CAN Interface.................................................................................................................................... 55
2.10 JT AG Peripheral Circuit..................................................................................................................... 57
3. Reference Data............................................................................................................58
3.1 Jumper and Test Pin Lists................................................................................................................. 58
3.1.1 Jumpers.......................................................................................................................................58
3.1.2 Test Pins......................................................................................................................................58
3.2 Extension Connectors CON1 and CON2.......................................................................................... 59
3.2.1 Pin Assignments of the Extension Connector CON1...................................................................59
3.2.2 Pin Assignments of the Extension Connector CON2...................................................................60
3.3 Modular Cord for CAN....................................................................................................................... 61
3.4 Connection Diagram ......................................................................................................................... 62
3.5 Part List.............................................................................................................................................69
3.6 Pattern Diagram................................................................................................................................ 74
3.7 Diagram of External Dimension ........................................................................................................ 80
3.8 Description of Board Silk...................................................................................................................82
CONTENTS-2
32176 Group
Starter Kit User’s Manual M3A-2152
32176 Group
Starter Kit User’s Manual M3A-2152

1. Overview

1.1 Outline of the Starter Kit

The Starter Kit M3A-2152G52A and M3A-2152G52 are provided for the evaluation of the 32176 Group microcomputers. The M3A-2152G52A Starter Kit consists of M3A-2152G02 (32176 Group Evaluation Board), M32100T-EZ-E (Emulator for M32R: model limited version), M3T-PD32RM (Emulator Debugger for M32100T-EZ-E), and M3T-CC32R (Cross Tool Kit for the M32R Family; trial version). This is an evaluation kit designed specifically for evaluating your computer at the early stage of system development as well as developing application software for the 32176 Group. It is capable of reprogramming internal flash memory of the 32176 Group microcomputer as well as controlling. Included M32100T-EZ-E and M3T-PD32RM enable fast reprogramming MCU’s internal flash memory. The M3A-2152G52 Starter Kit consists of M3A-2152G02, M3A-2195 (SDI Interface Board with Housing), M3S-KD32R (Debugger for the Starter Kit), and M3T-CC32R. It has the same functions as the M3A-2152G52A St arter Kit. Included M3A-2195 and M3S-KD32R enable fast reprogramming MCU’s internal flash memory.
Note: The M3A-2152G52 has been discontinued since December 1, 2004.
The following explains each item that constitutes the kits.
(1) M3A-2152G02 (M3A-2152 Evaluation Board)
The M3A-2152G02 Evaluation Board contains one of the 32176 Group microcomputer of 32-bit and single-chip RISC with a socket. You can evaluate a microcomputer using the M32R core, internal memory, and peripheral I/O functions with the M3A-2152 Evaluation Board.
(2) M3T-CC32R (Cross Tool Kit)
The M3T-CC32R Cross Tool Kit, designed for use in developing application programs for the M32R Family microcomputers, has abundant functions suitable for developing embedded control systems using the M32R Family microcomputers. Included in the Starter Kit is a trial version of it whose useful period is limited.
(3) M32100T-EZ-E (Emulator for M32R)
The M32100T-EZ-E Emulator connects the host PC’s USB port and the M3A-2152 Evaluation Board’s JTAG pin together, for controlling input/output between M3T-PD32RM and the M3A-2152 Evaluation Boards.
(Reference)
M32100T-EZ-E in M3A-2152G52A is an emulator designed exclusively for 32176 Group microcomputer, and cannot be used for M32R microcomputers except for 32176 Group.
In case that the M32100T-EZ-E is used for the product except for 32176 Group, the upgrade program to M32100T-EZ-E compliant with M32R microcomputers is available. For more details, refer to the attachment of M32R/ECU starter kit release notes.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 1 of 82
32176 Group
Starter Kit User’s Manual M3A-2152
(4) M3T-PD32RM (Emulator Debugger)
M3T-PD32RM, the debugger software for the Starter Kit, enables debugging the application system from the host PC by controlling the microcomputer on the M3A-2152 Evaluation Board which is connected to the host PC via the M32100T-EZ-E emulator. You can analyze the operation of a program available in load module form by using the M3T-CC32R Cross Tool Kit described earlier. This debugger provides a man-machine interactive debugging environment based on mouse manipulation by using a multi-window, graphical user interface comprised of easy to use menus and multiple debugger windows and dialog boxes.
(5) M3A-2195 (SDI Interface Board with Housing)
The M3A-2195 connects the host PC’s LPT parallel port and the M3A-2152 Evaluation Board’s JTAG pin together, for controlling input/output between M3S-KD32R and the M3A-2152 Evaluation Board.
(6) M3S-KD32R (Emulator Debugger)
M3S-KD32R, the debugger software for the Starter Kit, enables debugging the application system from the host PC by controlling the microcomputer on the M3A-2152 Evaluation Board which is connected to the host PC via the M3A-2195 Interface Board. The function of M3S-KD32R is same as one of M3T-PD32RM.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 2 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

1.2 System Configuration

Figure 1.1, Figure 1.2 and Figure 1.3 below show system configurations of M3A-2152G52A connected to an included emulator, system configurations of M3A-2152G52 connected to an included emulator and M3A-2152G02 by itself, respectively.
Figure 1.1 System Configuration of M3A-2152G52A Connected to an Included Emulator
Figure 1.2 System Configuration of M3A-2152G52A Connected to an Included Emulator
Figure 1.3 System Configuration of M3A-2154G02A by Itself
5V power supply cable (included with a kit)
XCN1
M3A-2152G02 (32176 Group evaluation board)
CN2
5V DC power supply (required on the user side)
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 3 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

2. Contents of the Product Package

This chapter shows the contents of the Starter Kit product package. When unpacking, check to see that all items are included with your package.

2.1 Packaged Product Items

Table 2.1 shows the con tents of the Starter Kit product package.
Table 2.1 Packaged Contents of 32176 Group Starter Kit
Packaged product
name
M3A-2152G02 32176 Group Evaluation Board 1 pc 1 pc M32100T-EZ-E Emulator for M32R 1 pc — M3A-2195 Simple emulator probe 1 pc
5V power supply cable
12V power supply cable
10-pin Flat cable USB cable Connected M32100T-EZ-E and host PC 1 pc
Parallel cable Connected M3A-2195 and host PC 1 pc CAN cable CAN cable 2 pc 2 pc CD-ROM Contained documents and software 1 pc 1 pc
M32R/ECU Starter Kit release note IMPORTANT-READ ME FIRST
Note: When you unpack the Starter Kit, check to see that none of the above package contents is damaged or missing. If
any item is damaged or not included, return the package to Renesas Technology Corporation through distributors.
It will be replaced with a new one.
Used for the M3A-2152 Evaluation Board 1 pc 1 pc Used for the M3A-2195 1 pc
Used for the M3A-2195 1 pc Connected the M3A-2152 Evaluation Board
and M32100T-EZ-E/M3A-2195
M3A-2152Gxx release notes 1 copy 1 copy
Written contract 1 copy 1 copy
Outline of product
M3A-2152G52A M3A-2152G52
1 pc 1 pc
Quantity
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 4 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

2.2 Contents of CD-ROM

The CD-ROM contains the software, manuals, various data sheets, and sample programs which are needed for you to use the Starter Kit. When using the technical contents of the CD-ROM such as product data, diagrams, and tables or the programs and algorithms also included in the CD-ROM for your application, please be sure to evaluate those technical contents, programs, and algorithms as the whole system, and not individually as single items before you determine whether they are useful. Renesas Technology Corporation will not assume any responsibility regarding the ir suita bility for your application. The following shows directory configurations of data/manuals included in the CD-ROM. For details, refer to Appendix 1.
Jpn/ Eng + Readme_j.txt/ Readme_e.txt : README file + AcrobatReader : Tool for read pdf file + Tool + : Software for the M32R Family | + Cc32r : Cross Tool Kit for the M32R Family (Trial version) | + Pd32rm : Debugger for the M32R Family | + Kd32r : Debugger for the M32R Family | + Ufla32r : Flash memory reprogramming kit for M32R/ECU by UART | + Oldversion : Old version of Tools | + Document + : Materials associated with boards | + M3A-2114 : Materials associated with the 32170/32174/32171/32172/32173 | Evaluation board (M3A-2114) | + M3A-2142 : Materials associated with the 32180/32182 Evaluation board | (M3A-2142) | + M3A-2152 : Materials associated with the 32176 Evaluation board | (M3A-2152) | + M3A-2154 : Materials associated with the 32185/32186/32192/32195/32196 | Evaluation board (M3A-2154) | + M3A-2191 : Connector Pitch Converter for M3A-2114 Evaluation board | and M32100T-EZ-E | + M32100T-EZ-E : Materials associat ed with the Emulator for M32R | + M3A-2145 : Manual for Flash memory reprogramming kit (Ufla32r) | + Discontinued_model : Materials associated with the discontinued boards (M3A-2195) | + Manual : M32R/ECU manuals, data sheets, M32R Family | software manuals + SampleProgram : Application notes and listed object/source files

2.3 Other Necessary Items

Before the Starter Kit can be used, the following ite m s should separately be prepared by the user.
- Host PC (see Section 4.2 Host PC Condition)
- Power supply (see Section 4.3 Conditions for the Power Supply Used)
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 5 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

3. Usage Precautions

3.1 Guaranteed Scope of the Starter Kit

The Starter Kit was developed for users to trial the 32176 Group microcomputer specifications and development environment. Therefore, the results arising from the use of the Starter Kit are not guaranteed. The M3A-2195 (SDI Interface Board with Housing) was developed for use with only the Starter Kit. If the M3A-2195 is used with any other system, its operation cannot be guaranteed.
When developing/debugging a system product using one of the M32R Family microcomputers, please be sure to use official developmen t to ols separately available as you debug.
The Starter Kit should be run on the designated type of host machine (IBM PC/AT compatibles). This designated type of host machine, however, is just an anticipated operating environment for the Starter Kit and does not mean that the Starter Kit operates properly on all relevant types of machines in all relevant environments (e.g., device drivers and peripheral units).
3.2 Regarding About System Power-on Sequence when Connected to the Emulator
3.2.1 M3A-2152G52A in Use
- When turning on power, turn on M32100T-EZ-E first and then the M3A-2152 Evaluation
Board.
- When turning off power, turn off the M3A-2152 Evaluation Board first and then
M32100T-EZ-E.
- When turning on power again after turning off power, wait for 10 seconds.
- Power to M32100T-EZ-E can be fed from USB cable.
Note: Unless the Starter Kit is powered on this sequence, the kit may operate erratically or break down.
3.2.2 M3A-2152G52 in Use
- When turning on power, turn on M3A-2195 first and then the M3A-2152 Evaluation Board, or
simultaneously.
- When turning off power, turn off the M3A-2152 Evaluation Board first and then M3A-2195, or
simultaneously.
- When turning on power again after turning off power, wait for 2 seconds.
Note: Unless the Starter Kit is powered on this sequence, the kit may operate erratically or break down.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 6 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

3.3 About M32100T-EZ-E for M3A-2152G52A

M32100T-EZ-E in M3A-2152G52A is an emulator designed exclusively for 32176 Group microcomputer, and cannot be used for M32R microcomputers except for 32176 Group. In case that the M32100T-EZ-E is used for the product except for 32176 Group, the upgrade program to M32100T-EZ-E compliant with M32R microcomputers is available. For more details, refer to the attachment of M32R/ECU starter kit release notes.

3.4 About M3T-CC32R

M3T-CC32R (M32R Family Cross Tool Kit) included with the Starter Kit is a trial version whose useful period is limited. This version becomes unusable four months after it is installed. Past this period, it cannot be used even by reinstalling. If you wish to continue using M3T-CC32R, please purchase a production version of M3T-CC32R separately from distributors.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 7 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

3.5 About M3T-PD32RM

The following describes precautions to be observed when using M3T-PD32RM.
3.5.1 Operating Manuals
To use M3T-PD32RM of M3A-2152G52A, see the manuals shown below.
- M3T-PD32RM release notes
- PD32RM Help
To use M3S-KD32R of M3A-2152G52, see the manuals shown below.
- M3S-KD32R release notes
- PD32R Help
3.5.2 About Break Operation
M3T-PD32RM (or M3S-KD32R) uses the M32R core’s internal debug circuit (SDI) to realize break functions. For this reason, the break functions of M3T-PD32RM (or M3S-KD32R) behave differently from those in conventional emulators. Furthermore, because M3T-PD32RM (or M3S-KD32R) does not have SDI trace pins as corresponding hardware resources, the trace pin corresponding break functions available with M3T-PD32R-compatible emulators are not supported. The following explains the four types of breaks that can be executed with M3T-PD32RM (or M3S-KD32R).
(1) Software break
Up to 64 software breakpoints can be set and executed in RAM areas accessible by the target MCU. No software breakpoints can be set and executed in ROM areas such as the internal flash memory.
(2) Pre-execution PC break
The M32R core’s internal debug circuit (SDI) allows setting breakpoints, at which to break the program immediately before executing an instruction (at the address indicated by the program counter). For the M3A-2152G52A and M3A-2152G52 (32176 Group MCU), four such breakpoints can be set.
(3) Post-execution PC break
The M32R core’s internal debug circuit (SDI) allows setting one breakpoint, at which to break the program immediately after executing an instruction (at the address indicated by the program counter).
(4) Chip break
The M32R core’s internal debug circuit (SDI) allows setting breakpoints, at which to break the program when accessing memory for read/write. For M3A-2152G52A and M3A-2152G52 (32176 Group MCU), two such breakpoints (level 2) can be set.
* The differences between levels 1 and 2 are outlined below.
Level 1: Whether data which is maskable matches or not can be detected. Level 2: Data is maskable and an address range can be specified for the target data.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 8 of 82
Starter Kit User’s Manual M3A-2152
(5) About hardware break
Debug functions of M3T-PD32RM (or M3S-KD32R) are realized by using the M32R core’s internal debug circuit (SDI), and not by using the emulator’s hardware resources based on bus signals and debug information from the MCU as in conventional emulators. The pre-execution PC break, post-execution PC break, and chip break all uses this internal debug circuit (SDI). Because the M3T-PD32RM (or M3S-KD32R) does not have trace pin information available as hardware resources, the hardware break functions cannot be used that use the trace pins implemented in the M3T-PD32R-compatible emulators. Heed this point when referring to the PD32RM Help and PD32R Help.
3.5.3 About Security Code Check Function
If the target microcomputer has security code stored in it, the dialog box shown in Figure 3.1 appears at M3T-PD32RM (or M3S-KD32R) startup. When this dialog box is displayed, enter the appropriate security code. If the security code you’ve entered does not match the stored security code, M3T-PD32RM (or M3S-KD32R) will not start unless the contents of the internal flash memory are deleted.
Figure 3.1 Security Code Input Dialog Box
Be sure to enter the security code that you set when writin g to the flash memory. Use the Format select button to choose the format of the security code you entered. Select the Save check box, and the security code you entered is saved. From next time on, the security code saved here is used to check matching with the stored security code when M3T- PD32RM (or M3S-KD32R) starts.
32176 Group
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 9 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

3.6 About Evaluation Board

When the evaluation board does not start operation after supplied power, check the following points.
3.6.1 Contact failure of IC Socket
Oscillation or thermal expansion may cause a poor connection between microcomputers and IC socket on the Evaluation Board. Follow the steps below.
- Screw down the top cover of IC socket with setscrews at four corners.
The tightening torque shall be 0.054 N.m. Note that only one tight setscrew may cause a poor connection.
The IC socket included in the evaluation board uses NQPACK and HQPACK by TOKYO ELETECH CORPORATION. For more details, visit their website at http://www.tetc.co.jp/e_index.htm.
The following illustrates configuration of M3A-21 52G02 (32176 Group Evaluation Board).
Figure 3.2 M3A-2154G02A
IC socket (HQPACK)
Setscrews on cover of IC socket
32176 group evaluation board M3A-2152G02
3.6.2 Cable Connection
- Make sure the cables are connecte d to the evaluation board firmly.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 10 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

4. Starter Kit Usage Conditions

The following shows the conditions under which the Starter Kit can be used.

4.1 Ambient Conditions

Table 4.1 shows the amb ient cond itions under which the Starter Kit can be used.
Table 4.1 Operating Environment
Symbol Parameter Rated value Remarks
Operating ambient temperature when
Topr
connecting to emulator Operating ambient temperature when using evaluation board by itself Storage ambient temperature for
Ts tr
emulator Storage ambient temperature for evaluation board
o
5
C to 35oC
o
0
C to 70oC
o
-10
C to 60oC
o
C to 70oC
0
No dewdrops allowed. Corrosive gas environment not allowed.

4.2 Host PC Condition

It is recommended that each software included with the Starter Kit be run on the host PC under the OS listed in T able 4.2.
Table 4.2 Host PC Conditions
Starter Kit Type Name M3A-2152G52A M3A-2152G52 Host PC IBM PC/AT compatibles CPU Pentium III 500MHz or higher CPU is recommended Memory 192 Mbytes or more system memory is recommended OS Windows 98, Me, 2000, XP Windows 98, Me, NT4.0, 2000 USB Port 1 port (required) — LPT Port 1 port (required)

4.3 Conditions for the Power Supply Used

Table 4.3 shows pow er su pply specifications required when using the Starter Kit.
Table 4.3 Power Supply Specifications
Symbol Power supply voltage Power supply current
VCC 4.75 V to 5.25 V 1A GND 0V (reference voltage)
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 11 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

5. Hardware Setup

This chapter describes how to set up the hardware components necessary to use the Starter Kit. Table 5.1 an d Table 5.2 show how to set up the hardware components.
Table 5.1 Hardware Setup Procedure
Setup Procedure
When connected to the emulator
M3A-2152G52A M3A-2152G52 M3A-2152G52A/M3A-2152G52
Set the emulator 1st (Refer to 5.1.1) 1st (Refer to 5.2.1)— Connect the host PC and emulator 2nd (Refer to 5.1.1) 2nd (Refer to 5.2.2)— Set the evaluation board 3rd (Refer to 5.1.2) 3rd (Refer to 5.2.3) 1st (Refer to 5.3.1)
Connect the evaluation board and emulator
4th (Refer to 5.1.3) 4th (Refer to 5.2.4)—
Turn on the emulator 5th (Refer to 5.1.4) 5th (Refer to 5.2.5)— Turn on the evalution board 6th (Refer to 5.1.4) 6th (Refer to 5.2.5) 2nd (Refer to 5.3.2)
Table 5.2 Hardware Power Off Procedure
Setup Procedure When connected to the emulator
Turn off the evaluation board. 1st (Refer to 5.1.4) 1st (Refer to 5.3.2) Turn off the emulator. 2nd (Refer to 5.1.4) —
When using the evaluation
board by itself
When using the evaluation
board by itself

5.1 Hardware Setup when M3A-2152G52A in Use

5.1.1 M32100T-EZ-E Power Supply and Settings
The following shows how to set M32100T-EZ-E. For more details, refer to M32100T-EZ-E User’s Manual. M32100T-EZ-E is supplied power from the host PC via USB cable, and it turns ON by connecting included USB cable. The Connecting M32100T-EZ-E and Host PC is shown in Figure 5.1
Figure 5.1 Connecting M32100T-EZ-E and Host PC
USB I/F
M32100T-EZ-E
USB cable
Connect to the host PC’s USB port
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 12 of 82
Starter Kit User’s Manual M3A-2152
5.1.2 M3A-2152 Evaluation Board Power Supply and Settings
The following shows how to set the M3A-2152 Evaluation Board. Use a 5V DC power supply to feed power to the M3A-2152 Evaluation Board. Use included 5V power supply cable to connect the 5V DC power supply and CN2 connector included with the M3A-2152 Evaluation Board. The Connecting when Feeding Power to the M3A-2152 Evaluation Board is shown in Figure 5.2.
Figure 5.2 Connecting when Feeding Power to the M3A-2152 Evaluation Board
Table 5.3 Jumper Settings before Shipmen
Jumper Name Jumper Settings Remarks
H1 Shorted between 1-2 Uses power from CN2 connector to AVCC power supply
M3A-2152 evaluation board
CN2
H1
4.75 - 5.25V DC power supply
32176 Group
Note: For detail about the power supply settings, refer to Appendix 3 M3A-2152G02 Product Standards
5.1.3 Connecting M3A-2152 Evaluation Board and M32100T-EZ-E
Use included 10-pin flat cable to connect M32100T-EZ-E and XCN1 connector included with the M3A-2152 Evaluation Board. The method for Connecting M3A-2152 Evaluation Board and M32100T-EZ-E is shown in Figure
5.3.
M32100T-EZ-E
Figure 5.3 Connecting M3A-2152 Evaluation Board and M32100T-EZ-E
SDI I/F
10-pin flat cable
XCN1
M3A-2152 evaluation board
5.1.4 System Power-on Sequence when M3A-2152G52A in Use
- When turning on power, turn on M32100T-EZ-E first and then the M3A-2152 Evaluation
Board.
- When turning off power, turn off the M3A-2152 Evaluation Board first and then
M32100T-EZ-E.
- When turning on power again after turning off power, wait for 10 seconds.
- Power to M32100T-EZ-E can be fed from USB cable.
Note: Unless the Starter Kit is powered on this sequence, the kit may operate erratically or break down.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 13 of 82
Starter Kit User’s Manual M3A-2152

5.2 Hardware Setup when M3A-2152G52 in Use

5.2.1 M3A-2195 Power Supply Connection and Settings
The following shows how to set M3A-2195. For more details, refer to M3A-2195 User’s Manual. Power to the M3A-2195 SDI Interface Board can be fed from either a 5V DC power supply (5V) or a 12 DC power supply (6-12V). Use the included 5V or 12V power supply cables to connect M3A-2195 and a corresponding DC power supply. The Connecting when Feeding Power to the M3A-21 is shown in Figure 5.4
Feeding from 5V DC ( 4.5 - 5.5V )
or
3 JP1 1
Jumper connector
When feeding from DC 12V(J3)
3 JP1 1
When feeding from DC 5V(J4) (set as default when shipped from factory)
Settings of JP1
M3A-2195
J3Feeding from 12V DC ( 6 - 12V )
JP1
J4
Jumper connector
Figure 5.4 Connecting when Feeding Power to the M3A-2195
5.2.2 Connecting to Host PC
In order to control the M3A-2195 SDI Interface Board from M3S-KD32R installed in the host PC, the host PC’s LPT parallel port and the M3A-2195’s J1 connector should be connected with the parallel cable included in M3A-2195. The Connecting the M3A-2195 and Host PC is shown in Figure 5.5
Figure 5.5 Connecting the M3A-2195 and Host PC
32176 Group
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 14 of 82
Starter Kit User’s Manual M3A-2152
5.2.3 M3A-2152 Evaluation Board Power Supply and Settings
The following shows how to set the M3A-2152 Evaluation Board. Use a 5V DC power supply to feed power to the M3A-2152 Evaluation Board. Use included 5V power supply cable to connect the 5V DC power supply and CN2 connector included with the M3A-2152 Evaluation Board. The Connecting when Feeding Power to the M3A-2152 Evaluation Board is shown in Figure 5.6.
Figure 5.6 Connecting when Feeding Power to the M3A-2152 Evaluation Board
Table 5.4 Jumper Settings before Shipmen
Jumper Name Jumper Settings Remarks
H1 Shorted between 1-2 Uses power from CN2 connector to AVCC power supply
M3A-2152 evaluation board
CN2
H1
4.75 - 5.25V DC power supply
32176 Group
Note: For detail about the power supply settings, refer to Appendix 3 M3A-2152G02 Product Standards
5.2.4 Connecting M3A-2152 Evaluation Board and M3A-2195
Use included 10-pin Flat cable to connect M3A-2195 and XCN1 connector included with the M3A-2152 Evaluation Board. The Connecting M3A-2152 Evaluation Board and M3 is shown in Figure 5.7.
M3A-2195
Figure 5.7 Connecting M3A-2152 Evaluation Board and M3A-2195
JTAG
10-pin flat cable
XCN1
M3A-2152 evaluation board
5.2.5 System Power-on Sequence when M3A-2152G52 in Use
- When turning on power, turn on M3A-2195 first and then the M3A-2152 Evaluation Board, or
simultaneously.
- When turning off power, turn off the M3A-2152 Evaluation Board first and then M3A-2195, or
simultaneously.
- When turning on power again after turning off power, wait for 2 seconds.
Note: Unless the Starter Kit is powered on this sequence, the kit may operate erratically or break down.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 15 of 82
Starter Kit User’s Manual M3A-2152

5.3 Hardware Setup when the Evaluation Board by Itself in Use

5.3.1 M3A-2152 Evaluation Board Power Supply and Settings
The following shows how to set the M3A-2152 Evaluation Board. Use a 5V DC power supply to feed power to the M3A-2152 Evaluation Board. Use an included 5V power supply cable to connect the 5V DC power supply and CN2 connector included with the M3A-2152 Evaluation Board. The Connecting when Feeding Power to the M3A-2152 Evaluation Board is shown in Figure 5.8.
Figure 5.8 Connecting when Feeding Power to the M3A-2152 Evaluation Board
Before feeding power, make sure jumper switches are set as bellow.
Table 5.5 Jumper Settings before Shipmen
Jumper Name Jumper Settings Remarks
H1 Shorted between 1-2 Uses power from CN2 connector to AVCC power supply
M3A-2152 evaluation board
CN2
H1
4.75 - 5.25V DC power supply
32176 Group
Note: For detail about the power supply settings, refer to Appendix 3 M3A-2152G02 Product Standards
5.3.2 M3A-2152 Power Supply
Connecting the 5V power supply with the included cable turns the M3A-2152 Evaluation Board powered on. By disconnecting it, the M3A-2152 Evaluation Board turns powered off.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 16 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

6. Software Setup

6.1 M3T-PD32RM

M3T-PD32RM is the debugger software that controls M32100T-EZ- E from the host PC.
6.1.1 Installing M3T-PD32RM
[Notes]
Make sure that the installer is executed by one who is authorized as an Administrator when Windows 2000/XP is used as an operating system of the host machine. No one but the user who has the authority of an Administrator can install M3T-PD32RM.
(1) Run pd32rmv301r00_e.exe that is included in the Eng \ Tool \ Pd32rm directory of the CD-ROM. (2) Proceed to install M3T-PD32RM following messages on the installation screen.. (3) When you finished installing M3T-PD32RM, the dialog box shown in Figure 6.1 appears.
Figure 6.1 Dialog Box when Installation is Finished
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 17 of 82
Starter Kit User’s Manual M3A-2152
p
6.1.2 Starting M3T-PD32RM
Before starting M3T-PD32RM, make sure the hardware components have been set up in accordance with the instructions in 5.1 Hardware Setup when M3A-2152G52A in Use, and that the Starter Kit hardware system (M3A-2152 Evaluation Board and M32100T-EZ-E) have been powered on. Make sure that M3T-PD32RM cannot be started unless the power to the hardware system is turned on.
To start M3T-PD32RM, choose [Start] -> [Programs] -> [Renesas] -> [PD32RM V3.01 Release 00] -> [PD32RM] from Start menu of Windows. When M3T-PD32RM starts, the initialize dialog box shown in Figure 6.2 appears. So initialize M3T-PD32RM from this dialog box.
Figure 6.2 M3T-PD32RM Initialize Dialog Box
Setting MCU File
To set 32176 Group, specify MCU file “32176.mcu”. This MCU file is stored in directory: (installed location) \ PD32RM \ M CUFILES. Click the MCU tab in the initialize dialog box (see Figure 6.2) and then the “Refer” button. This brings up a dialog box for setting MCU files. In this dialog box, select the MCU file.
Setting Model
While the MCU tab is open, select the appropriate MCU typ e from Model selection.
Setting Mode
While the MCU tab is open, select the appropriate MCU operation mode from Mode selection.
Setting CPU Clock
While the MCU tab is open, select the “40” for the appropriate CPU Clock.
Cancel Hel
32176 Group
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 18 of 82
32176 Group
p
Starter Kit User’s Manual M3A-2152
Checking Serial No.
While the MCU tab is open, make sure the Serial No. is in accordance with the following. When M3A-2152G52A in use, M3T-PD32RM can be started only with Serial No. as follows.
- In case of M32100T-EZ-E’s limited version included with M3A-2152G52A: 7-digit number
(32176) Example : 3CE0002(32176)
- In case of the general purpose M32100T-EZ-E: 7-digit number
Example : 3CE0002
Selecting a Cross Tool
While the Debugging Information tab is open, select “CC32R(M32R)” for Compiler. For the Starter Kit, M3T-CC32R is the only cross tool which has had its operation guaranteed.
Hel
Figure 6.3 Selecting a Cross Tool
When you have finished the above initialization, click the “OK” button to start M3T-PD32RM. If M3T-PD32RM communicates normally with the target system, it starts up and the M3T-PD32RM window shown in Figure 6.4 appears. For details on how to use it, refer to the PD32RM Help.
Figure 6.4 M3T-PD32RM Window at Normal Startup
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 19 of 82
Starter Kit User’s Manual M3A-2152
6.1.3 Error Messages During M3T-PD32RM Startup
If M3T-PD32RM cannot communicate normally with the target system, it appears an error message in a pop-up box.
Causes of errors on the M3A-2152 Evaluation Board
If the error pop-up box shown in Figure 6.5 appears when starting M3T-PD32RM, check whether power is supplied to the M3A-2152 Evaluation Board and whether it is firmly connected to M32100T-EZ-E.
ERROR11473: Target MCU is not under control.
Please reset target systems.
Figure 6.5 Error Message at Startup (Error on the M3A-2152 Evaluation Board Side)
If the error pop-up box is appeared when starting M3T-PD32RM, correct the cause of error and then click the “OK” button in that pop-up box. This brings up the initialize window, allowing you to retry the startup. In this case, you can retry only once.
6.1.4 Terminating M3T-PD32RM
To terminate M3T-PD32RM, choose [File] -> [Exit] from the pulldown menu. Then, a dialog box appears prompting you for your confirmation (see Figure 6.6). Click the “OK” button in that dialog box to quit M3T-PD32RM. Or click the “Cancel” button, in which case M3T-PD32RM does not terminate.
Figure 6.6 Dialog Box for Confirming Whether to Quit M3T-PD32RM
Cancel
32176 Group
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 20 of 82
32176 Group
Starter Kit User’s Manual M3A-2152

6.2 M3S-KD32R

M3S-KD32R is the debugger software that controls the M3A-2195 SDI Interface Board from the host PC.
6.2.1 Installing M3S-KD32R
[Notes for Windows 2000 / NT4.0]
Make sure that installer is executed by one who is authorized as an Administrator. No one but the user who has the authority of an Administrator can install the M3S-KD32R.
(1) Run SETUP.EXE that is included in the Eng\Tool\Kd32r\W95E directory of the CD-ROM. (2) Proceed to install M3S-KD32R following messages on the installation screen. (3) When you finished installing M3S-KD32R, the dialog box shown in appears.
Figure 6.7 Dialog Box when Installation is Finished
(4) Case of using Windows 2000 / NT4.0, after M3S-KD32R is installed, reboot the PC.
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 21 of 82
32176 Group
p
Starter Kit User’s Manual M3A-2152
6.2.2 Starting M3S-KD32R
Before starting M3S-KD32R, make sure the hardware components have been set up in accordance with the instructions in 5.2 Hardware Setup when M3A-2152G52 in Use, and that the Starter Kit hardware system (M3A-2152 Evaluation Board and M3A-2195 SDI Interface Board) have been powered on. Make sure that M3S-KD32R cannot be started unless the power to the hardware system is turned on.
To start M3S-KD32R, choose [Start] -> [Programs] -> [RENESAS-TOOL] -> [KD32R V4.00 Release 1] -> [KD32R] from Start menu of Windows. When M3S-KD32R starts, the initialize dialog box shown in Figure 6.2 appears. So initialize M3S-KD32R from this dialog box.
Figure 6.8 M3S-KD32R Initialize Dialog Box
Setting MCU File
To set 32176 Group, specify MCU file “32176.mcu”. This MCU file is stored in directory: ( installed location) \ KD32R \ MCUFILES. Click the MCU tab in the initialize dialog box (see Figure 6.2) and then the “Refer” button. This brings up a dialog box for setting MCU files. In this dialog box, select the MCU file.
Setting Model
While the MCU tab is open, select the appropriate MCU typ e from Model selection.
Setting Mode
While the MCU tab is open, select the appropriate MCU operation mode from Mode selection.
Setting CPU Clock
While the MCU tab is open, select the “40” for the appropriate CPU Clock.
Setting PC Communication Mode
While the MCU tab is open, select “AUTO” for Type, and “378h” or “278h” for I/O Address.
Hel
REJ10B0224-0300/Rev.3.00 Jan. 2007 Page 22 of 82
Loading...
+ 64 hidden pages