T-engine development kit, hardware volume (116 pages)
Summary of Contents for Renesas SH7269
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 Corp. without notice. Please review the latest information published by Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
Page 2
Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electron- ics. 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 an application categorized as “Specific”...
Page 3
RSK. 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,...
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 Technology Europe Limited. Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations.
Chapter 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? •...
Chapter 3. Tutorial 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 and then downloaded without the debug monitor in a ‘Release’...
4.1. Introduction HEW is an integrated development tool that allows the user to write, compile, program and debug a software project on any of the Renesas Microcontrollers. HEW will have been installed during the installation of the software support for the RSK product. This manual will describe the stages required to create and debug the supplied tutorial code.
The next dialog presents the example projects available. Choose the tutorial code which will be explained later in this manual. There is also an option for sample code which provides examples for using various peripherals. This will open a new dialog allowing the selection of many code examples for the peripheral modules on the device.
Chapter 5. Building the Tutorial Project The tutorial project build settings have been pre-configured in the tool-chain options. To view the tool chain options select the ‘Build’ Menu item and the relevant tool chain. This should be the first option on the drop down menu. The dialog that is displayed will be specific to the tool chain selected.
5.2. Connecting the debugger For this tutorial, it is necessary for you to power the RSK2+ from the supplied PSU, as the E10A debugger cannot supply power to the RSK. The E10A debugger will be powered via the USB cable. Please be aware that if you have too many devices connected to your USB port, it may be shut down by Windows.
Page 12
Press the ‘RST’ button on the RSK2+ board. • Click <OK> • Please wait until the message “Connected” • appears in the ‘HEW output’ window – this indicates that the RSK2+ board has successfully connected. Click ‘Emulator System’ icon on the tool bar. •...
Chapter 6. Downloading and Running the Tutorial Once the code has been built in HEW it needs to be downloaded to the RSK2+. There will now be an additional category in the workspace view for ‘Download Modules’ Right click on the download module •...
Page 14
Maximum eleven eventpoints can be set. Eventpoints do not require programming the flash memory, and thus are faster to use. Please refer to the following document for further information: SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using SH7269 and SH7262. Press ‘Go’ on the Debug Toolbar. •...
Page 15
The code window will open ‘main.c’ and show the new position of the program counter. Support for the IIC channel 2 devices has been included in the tutorial code. We do not need to be concerned about the details of the IIC interface except that the interface has been written to support this sample board so the connected devices (port expanders, Audio codec, HDMI device and touch screen controller can be accessed safely by the user code.
Page 16
Right click on the ‘FlashLEDs(); function and select • ‘Go to cursor’. The code will execute to the selected line and stop. Press ‘Step Over’ on the Debug Toolbar. • The code will run and flash the LED0, LED1, LED2 and LED3 for 200 times. The debugger will not exit until all 200 flashes have completed or a switch is pressed on the RSK2+.
Page 17
The modified string is also displayed on the LCD There are several versions of the timer function depending upon the peripherals available in the device. The default function is TimerADC which we shall demonstrate here. The ‘TimerADC’ function initialises an interrupt on an available internal timer. On a compare match in the timer module, an interrupt is generated.
Chapter 7. Project Files 7.1. Standard Project Files The RSK tutorials are configured so that it is possible to provide the same tutorial code on multiple RSK products. This allows the evaluation of the different processor cores using equivalent code. To achieve this, the following files are common between all device cores and tool chains.
Page 19
The call to ‘HardwareSetup()’ configures the external bus interface to access external memory and initialises device hardware and peripherals before they are accessed by the tutorial software. The cache memory has been configured for release build only in write-back mode. After initialisation the ‘main’...
7.1.2. External bus and Memory configuration (bus-init.c/bus-init.h) External bus initialization and cache memory configuration has been implemented in this function. The tutorial project initializes NOR flash only.
7.1.3. Board initialisation code (hwsetup.c / hwsetup.h) Further hardware initialisation should be performed in this function. For debug purposes, the interrupt priority registers are initialised to zero (as they would be after a power on reset). In the case of the tutorial, the interrupts are configured and the LCD interface is initialised.
The display initialisation and string display functions operate on the LCD display module. In addition to the tutorial code several samples of use of the on chip peripherals are supplied. Check compatibility with a ks0066u controller and pin connection on the schematic before connecting an LCD module not supplied by Renesas.
For details on how to use High-performance Embedded Workshop (HEW), refer to the HEW manual available on the CD or from the web site. Further information available for this product can be found on the Renesas website at: http://www.renesas.com/renesas_starter_kits General information on Renesas Microcontrollers can be found at the following website.
Page 24
REVISION HISTORY RSK2+SH7269 Tutorial Manual Rev. Date Description Page Summary 1.00 May. 11, 2012 First Edition issued ...
Page 25
Renesas Starter Kit2+ Tutorial Manual Publication Date: Rev.1.00 May 11, 2012 Published by: Renesas Electronics Corporation...
Page 26
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 27
Renesas Starter Kit2+ for SH7269 Tutorial Manual R20UT0593EG-0100...
Need help?
Do you have a question about the SH7269 and is the answer not in the manual?
Questions and answers