Renesas RX600 Series User Manual
Hide thumbs Also See for RX600 Series:

Advertisement

Quick Links

RX64M Group
32
32
RENESAS MCU
RX Family / RX600 Series
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 Electronics
Corporation without notice. Please review the latest information published by Renesas Electronics
Corporation through various means, including the Renesas Electronics Corporation website
(http://www.renesas.com).
Renesas Starter Kit+ Tutorial Manual
For CubeSuite+
Rev. 1.00 Mar 2014

Advertisement

Table of Contents
loading

Summary of Contents for Renesas RX600 Series

  • Page 1 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 Electronics Corporation without notice. Please review the latest information published by Renesas Electronics Corporation through various means, including the Renesas Electronics Corporation website (http://www.renesas.com).
  • Page 2 Electronics product for any application for which it is not intended. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for which the product is not intended by Renesas Electronics.
  • Page 3 . Renesas expressly disclaims all such warranties. Renesas or its affiliates shall in no event be liable for any loss of profit, loss of data, loss of contract, loss of business, damage to reputation or goodwill, any economic loss, any reprogramming or recall...
  • Page 4 The following documents apply to the RX64M Group. Make sure to refer to the latest versions of these documents. The newest versions of the documents listed may be obtained from the Renesas Electronics Web site. Document Type...
  • Page 5 List of Abbreviations and Acronyms Abbreviation Full Form Analog-to-Digital Converter On-chip Debugger GNU Debugger Liquid Crystal Display Light Emitting Diode Micro-controller Unit Renesas Starter Kit Plus Serial Communications Interface UART Universal Asynchronous Receiver/Transmitter Universal Serial Bus...
  • Page 6: Table Of Contents

    Table of Contents 1. Overview ..........................7 Purpose ..............................7 Features ..............................7 2. Introduction ........................8 Code Generator Plug in ..........................8 3. Tutorial Project Workspace ....................9 Introduction ..............................9 Starting CubeSuite+ ........................... 9 Configuring the Debug Tool (E1) ......................12 Build Configuration ...........................
  • Page 7: Overview

    RENESAS STARTER KIT Mar 31, 2014 1. Overview Purpose This RSK+ is an evaluation tool for Renesas microcontrollers. This manual describes how to get the RSK+ tutorial started, and basic debugging operations. Features This RSK+ provides an evaluation of the following features: •...
  • Page 8: Introduction

    RSK+RX64M 2. Introduction 2. Introduction This manual is designed to answer, in tutorial form, the most common questions asked about using a Renesas Starter Kit (RSK+). The tutorials help explain the following: • How do I compile, link, download and run a simple program on the RSK+? •...
  • Page 9: Tutorial Project Workspace

    CubeSuite+ is an integrated development tool that allows the user to write, compile, program and debug a software project on the RX, 78K, RL and V850 family of Renesas microcontrollers. CubeSuite+ 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.
  • Page 10 RSK+RX64M Tutorial Project Workspace • CubeSuite+ will present a ‘Create Project’ dialog box. • Select all sub-projects by clicking on each checkbox observe information displayed under ‘Subproject information’ heading as you select each project. • Specify a name and location for the new project and click on ‘Create’...
  • Page 11 RSK+RX64M Tutorial Project Workspace • To change the active project, right- click on the project/subproject name and select “Set x as Active Project” (x represents the project name). • File folder contains four subfolders. This structure is common to all projects. •...
  • Page 12: Configuring The Debug Tool (E1)

    RSK+RX64M Tutorial Project Workspace Configuring the Debug Tool (E1) Note: The Tutorial sample project’s settings are pre-configured. This section is intended to familiarise the user with the debug tool settings for when they create their own project. • The Project Tree will be displayed on the left-hand pane of CubeSuite+.
  • Page 13: Build Configuration

    RSK+RX64M Tutorial Project Workspace Build Configuration The build configurations are selected from the build tool’s Property panel. The options available are DefaultBuild, Debug and Release. DefaultBuild and Debug are configured for use with the debugger. Release is configured for the final ROM programmable code. A common difference between the two builds is the optimisation setting and the addition of debug information.
  • Page 14: Building The Tutorial Program

    RSK+RX64M Building the Tutorial Program 4. Building the Tutorial Program The tutorial project build settings have been pre-configured in the toolchain options. To view the toolchain options double-click on CC-RX(Build Tool) from the Project Tree and select the available tabs. It is important when changing settings to be aware of the current configuration before modifying the settings.
  • Page 15: Connecting The Debugger

    PSU supplied with this RSK+ to power the board. The Quick Start Guide provided with the Renesas Starter Kit board gives detailed instructions on how to connect the E1 to the host computer. The following assumes that the steps in the Quick Start Guide have been followed and the E1 drivers have been installed.
  • Page 16: Downloading And Running The Tutorial

    RSK+RX64M Downloading and Running the Tutorial 5. Downloading and Running the Tutorial Downloading the Program Code Now that the code has been built in CubeSuite+ it needs to be downloaded to the RSK+. • Click on the program download button. Alternatively, select Debug from the Menu bar and click on Download.
  • Page 17: Reviewing The Tutorial Program

    RSK+RX64M 6. Reviewing the Tutorial Program 6. Reviewing the Tutorial Program This section will look at each section of the tutorial code and basic debugging functionality in CubeSuite+. Program Initialisation Before the main program can run, the microcontroller must be configured. Due to the debugger configuration used for the Tutorial project and the rest of the sample projects, the user will not be able to step through the hardware initialisation code.
  • Page 18: Main Functions

    RSK+RX64M 6. Reviewing the Tutorial Program Main Functions This section will look at the program code called from with the main() function, and how it works. • Right click ‘R_SCI7_Serial_Receive( )’ function call and select ‘Go to Here’ to execute the program up to this line.
  • Page 19 RSK+RX64M 6. Reviewing the Tutorial Program • program counter should now move into the R_SCI7_Serial_Receive() function definition. This function is an API function provided by the Code Generator. It sets up the SCI7 interrupt handler code receive specified number of bytes into receive buffer.
  • Page 20 RSK+RX64M 6. Reviewing the Tutorial Program • Locate the function call to ‘lcd_display_adc()’ inside the while loop. • breakpoint ‘lcd_display_adc()’ function call by on the On-Chip Breakpoint column to the left of the number column. • In the Project Tree pane, locate the file ‘r_cg_sci_user.c’...
  • Page 21 RSK+RX64M 6. Reviewing the Tutorial Program • Press the ‘Stop’ button to halt program execution. • This is the extent of the tutorial code. For further details regarding hardware configuration, please refer to the RX Series Software Manual and the RX64M Group Hardware Manual.
  • Page 22: Additional Information

    Copyright 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 Electronics Europe Limited. © 2014 Renesas Electronics Europe Limited. All rights reserved.
  • Page 23 REVISION HISTORY RSK RX64M Tutorial Manual Rev. Date Description Page Summary  1.00 Mar 31, 2014 First Edition issued...
  • Page 24 Renesas Starter Kit Manual: Tutorial Manual Publication Date: Rev. 1.00 Mar 31, 2014 Published by: Renesas Electronics Corporation...
  • Page 25 SALES OFFICES http://www.renesas.com Refer to "http://www.renesas.com/" for the latest and detailed information. Renesas Electronics America Inc. 2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.A. Tel: +1-408-588-6000, Fax: +1-408-588-6130 Renesas Electronics Canada Limited 1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada...
  • Page 26 RX64M Group R20UT2591EG0100...

This manual is also suitable for:

Rx64m

Table of Contents