Renesas REJ10J1330-0200, 740 Family, M3T-SRA74 User Manual

REJ10J1330-0200
Renesas Starter Kit for 7542
Tutorial Manual (for M3T-SRA74)
RENESAS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
740 FAMILY
Rev.2.00 Revision date:
Aug.10,2007
www.renesas.com
Table of Contents
Chapter 1. Preface..................................................................................................................................................1
Chapter 2. Introduction............................................................................................................................................2
Chapter 3. Tutorial Project Workspace...................................................................................................................3
Chapter 4. Project Workspace................................................................................................................................4
4.1. Introduction...................................................................................................................................................4
4.2. Creating a new Project Workspace..............................................................................................................4
4.3. Build Configurations and Debug Sessions...................................................................................................5
4.3.1. Build Configuration ................................................................................................................................5
4.3.2. Debug Session ......................................................................................................................................5
Chapter 5. Building the Tutorial Project ..................................................................................................................6
5.1. Building Code ...............................................................................................................................................6
5.2. Connecting the debugger.............................................................................................................................7
5.3. Connecting to the target with the E8a..........................................................................................................7
Chapter 6. Downloading and Running the Tutorial.................................................................................................9
Chapter 7. Project Files.........................................................................................................................................14
7.1. Standard Project Files................................................................................................................................14
7.1.1. Main tutorial code (main.a74 / main.inc)..............................................................................................14
7.1.2. Board initialisation code (hwsetup.a74)...............................................................................................15
Chapter 8. Additional Information .........................................................................................................................16
ii
Chapter 1. Preface
Cautions
This document may be, wholly or partially, subject to change without notice. All rights reserved. Duplication of this document, either in whole or part is prohibited without the written permission of Renesas
Solutions Corporation.
Trademarks
All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations.
Copyright
© Renesas Solutions Corporation. 2007. All rights reserved. © Renesas Technology Europe Ltd. 2007. All rights reserved. © Renesas Technology Corporation. 2007. All rights reserved. Renesas Global Website: Renesas Europe Website: http://eu.renesas.com/
Glossary
ASM Assembler CPU Central Processing Unit E8a E8a On-chip debugger module LCD Liquid Crystal Display LED Light Emitting Diode
http://www.renesas.com/
MCU Microcontroller PC Program Counter PCB Printed Circuit Board RSK Renesas Starter Kit
1
Chapter 2. Introduction
This manual is designed to answer, in tutorial form, the most common questions asked about using the Renesas Starter Kit: The tutorials help explain the following:
How do I compile, link, download, and run a simple program on the Renesas Starter Kit?
How do I build an embedded application?
How do I use Renesas’s development tools?
The project generator will create a tutorial project with two selectable build configurations:
‘Debug’ is a project built with the debugger support included.
‘Release’ build demonstrating code suitable for release in a product.
Files referred to in this manual are installed using the project generator as you work through the tutorials. The tutorial examples in this manual assume that installation procedures described in the Renesas Starter Kit Quick Start Guide have been completed.
Please refer to the Quick Start Guide for details of installation and configuration of the Renesas Starter Kit.
NOTE: These tutorials are designed to show you how to use the Renesas Starter Kit and are not intended as a comprehensive introduction to the High-performance Embedded Workshop debugger, the compiler tool-chains or the E8a Emulator – please consult the relevant user manuals for more in-depth information.
2
Chapter 3. T utorial Project Workspace
The workspace includes all of the files for two build configurations. The tutorial code is common to both the Debug and the Release build configurations. The tutorial is designed to show how code can be written, debugged then downloaded in a ‘Debug’ situation. The build configuration menu in High-performance Embedded Workshop allows the project to be configured such that certain files may be excluded from each of the build configurations. This allows the inclusion of the debug monitor within the Debug build, and its exclusion in the Release build. Contents of common ASM files are controlled with defines set up in the build configuration options and #ifdef statements within the same files.
Maintaining only one set of project files means that projects are more controllable.
3
Chapter 4. Project Workspace
4.1. Introduction
High-performance Embedded Workshop is an integrated development tool that allows the user to write, compile, program and debug a software project on any of the Renesas Microcontrollers. High-performance Embedded Workshop will have been installed during the installation of the software support for the Renesas Starter Kit product. This manual will describe the stages required to create and debug the supplied tutorial code.
4.2. Creating a new Project W orkspace
Start High-performance Embedded Workshop from the Windows Start Menu, Start ¦ All Programs ¦ Renesas ¦ High-Performance Embedded Workshop
Open a new tutorial workspace from the [File -> New Workspace…] menu or select ‘Create a new project workspace’ when presented with the ‘Welcome!’ dialog.
The example above shows the New Project Workspace dialog with the RSKM37542 selected.
Select the 740 CPU Family and “Renesas 740 Family Standard” Toolchain.
Select the “RSKM37542” Project type from the left-hand Projects list.
Enter a Workspace Name; all your files will be stored within a folder called c:\WorkSpace\<your_name>
The project name field will be pre-filled to match the workspace name above; you can change this name if you wish. Note: High-performance Embedded Workshop allows you to ad d multiple projects to a workspace. You may add the
sample code projects later so you may wish to choose a suitable name for the Tutorial project now.
Click <OK> to start the Renesas Starter Kit Project Generator wizard.
4
Loading...
+ 14 hidden pages