Instruction/ maintenance manual of the product H8S2215R Renesas
Go to page of 26
REG10J0023-0100 Renesas Starter Kit RSK H8S2215R Tutorial Manual RENESAS SINGLE-CHIP MICROCOMPUTER Rev .1.00 Renesas T echnology Europe Ltd. Revision date 12.
T able of Content s Chapter 1. Preface .................................................................................................................................................. 3 Chapter 2. Introduction .......................................
Chapter 1. Preface Cautions This document may be, wholly or partially, subject to change without notice. All rights reserved. No one is permitted to reproduce or duplicate, in any form, a part or this entire document without the wri tten permission of Renesas Technology Europe Limited.
Chapter 2. Introduction This manual is designed to answer, in tutorial form, the most common questions asked about using a Renesas Starter Kit (RSK): T he tutorials help explain the following: • How.
Chapter 3. T utorial Project Wo rksp ace The workspace includes all of the files for two build configurat ions. The tutorial code is common to both the Debug and the Rel ease build configurations. The tutorial is designed to show how c ode can be written, debugged then downloaded without the debug monitor in a ‘Release’ situation.
Chapter 4. Project W orkspace 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 th e Renesas Microcontrollers. HEW will have been installed during the software installation for the RSK product.
• Click OK to start the RSK Project Generator wizard. 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 provide s examples for using various peripherals.
Chapter 5. Building the T utorial Project The tutorial project build settings have been pre-configured in the tool-chain options. To view the tool chain options select t he ‘Build’ Menu item and the relevant tool-chain. This shoul d be the first option(s) on the drop down menu.
5.2. Connecting the debugger For this tutorial it is not necessary to provide an external power supply to the board, the pow er will be provided by the E8 fr om the USB port. Please be aware that if you have too many devices connected to your USB port it may be shut down by Windows.
• Select the Device on the RSK from the drop down list. • In the sub pane, select the kernel version that ends in ‘.RSK’. • Press <Next>. If you have copied the kernel to another location to modify for a different crystal frequency, the device will not be listed in the sub pane.
• Ensure that ‘USER Program Mode’ is selected. • Confirm that ‘Use Default’ is selected. • Press <Next>. • Confirm the default selections of ‘Automatic’ and ‘Advanced’. • Press <Next>. • The following warning dialog will be displayed.
Damage to the microcontr oller can be sustained with incorrect settings. • Confirm the mode pin settings. • Press <Next>. • The following warning dialog will be displayed. • Press <OK>. Damage to the microcontr oller can be sustained with incorrect settings.
5.3.1. Connecting To HMon We can now attempt to connect to the target device. • Press the Green ‘Connect’ Icon. HMon is able to discover the internal flash configuration of t he device from the FDT kernel we configured earlier. HMon also ne eds information on the location of the IO registers and internal / exte rnal RAM.
• Confirm the settings shown and press <OK>. HMon will attempt to connect to the RSK. If it succeeds then the Output window in HEW will show the ‘Connected’ message. In thi s case please proceed to Chapter 6 . If the connection fails you will be returned to the previous dialog wit h the ‘Abort’ button enabled.
• Ensure ‘0x000D – 1 [Closed]’ is selected and click <OK>. On completion of the download HMon will automatically re-connect to the monitor and revert back to User programming mode.
Chapter 6. Downloading and Running the T utorial Once the code has been built in HEW it needs to be downloaded to the RSK. Now that you are connected to the target you should see an additional categor.
We will now skip over the initialisation code and proceed to the main tutorial. • Open the file called ‘resetprg.c’ by double clicking it in the project navigator.
• Right click on the ‘FlashLEDs();’ function and select ‘Go to cursor’. The code will run to the selected line and st op. A temporary breakpoint was automatically inserted in the code and then removed when the program stopped at the breakpoint.
The code will now run to the infinite loop at the end of Main(). The user LEDs should now be flashing. You can modify the flash ing rate by adjusting the potentiometer on the board. • Press ‘Stop’ on the debug tool bar. • Press ‘CTRL-B’ to open the breakpoint window.
• Press ‘Go’ to run the code from the current PC position. When the program stops you can see the modified string displayed on the second line of the LCD. Inspection of the watch pane will show that the first character of the variable string has been replaced with the first charact er of the constant replacement string.
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 c ode.
7.1.2. Board initialisation code (Hwsetup.c / hwsetup.h) There are four common stages to the configuration of the microc ontroller device. The code to demonstrate this is therefore spli t into four functions. Each function is written specifically for the device suppo rted.
7.1.3. Main Tutorial Code ( main.c / main.h) The main tutorial code is common to all tutorial projects. T he display initialisation and string display functions operate on the LCD display module. Check compatibility with a ks0066u controller and pin c onnection on the schematic before connecting an LCD module not s upplied by Renesas.
Chapter 8. Additional Information For details on how to use High-performance Embedded Workshop (HEW), refer to the HEW User manual available on the CD or from th e Manual Navigator installed with this product. For more information on the configuration and use of HMon please refer to the HMon User Manual installed from the CD.
Renesas S ta r ter Kit for H8 S2215R T utorial Manual Publication Date Rev .1.00 12.01.2007 Published by: Renesas T echnology Europe Ltd. Dukes Meadow, Millboard Road, Bourne End Buckinghamshire SL8 5FH, United Kingdom ©2006 Renesas T echn ology Europe and Renes as Solutions Co rp.
Renesas S tarter Kit for H8S2215R T utorial Manual Renesas T echnology Europe Ltd. Dukes Meadow , Millboard Road, Bourne End Buckinghamshire SL8 5FH, United Kingdo m.
An important point after buying a device Renesas H8S2215R (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Renesas H8S2215R yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Renesas H8S2215R - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Renesas H8S2215R you will learn all the available features of the product, as well as information on its operation. The information that you get Renesas H8S2215R will certainly help you make a decision on the purchase.
If you already are a holder of Renesas H8S2215R, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Renesas H8S2215R.
However, one of the most important roles played by the user manual is to help in solving problems with Renesas H8S2215R. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Renesas H8S2215R along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center