background image

 

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. 

Each of the tutorial files has detailed comment text describing the function of each code entry. Please refer to the source code for greater 

detail on the purpose and operation of the compiler specific details. 

7.1.1. Initialisation code (resetprg.c / resetprg.h) 

This is the entry point of the main tutorial code.   

 

Initialisation of the variables used in the C compilers and initialisation of stack pointers are completed in the _INITSCT function for the H8 

and SH compilers. The call to HardwareSetup() will initialise the device hardware and peripherals ready for the tutorial software. 

The call to ‘main()’ will start the main demonstration code. 

7.1.2. Board initialisation code (hwsetup.c / hwsetup.h) 

There are four common stages to the configuration of the microcontroller device. The code to demonstrate this is therefore split into four 

functions. Each function is written specifically for the device supported. The function calls are shown below. 

14 

Summary of Contents for H8S/2472

Page 1: ...ok over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electron...

Page 2: ...t for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas...

Page 3: ...Renesas Starter Kit for H8S 2472 Tutorial Manual User s Manual Rev 1 00 2008 08 RENESAS SINGLE CHIP MICROCOMPUTER H8S FAMILY...

Page 4: ...ion 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 E10A 7 Chapter 6 Downloading and Running t...

Page 5: ...or registered trademarks of their respective companies or organisations Copyright Renesas Technology Europe Ltd 2008 All rights reserved Renesas Technology Corporation 2008 All rights reserved Renesas...

Page 6: ...ase 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 thi...

Page 7: ...figuration menu in High performance Embedded Workshop HEW allows the project to be configured such that certain files may be excluded from each of the build configurations This allows the inclusion of...

Page 8: ...orkspace 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 RSK2H8S2472...

Page 9: ...has been created contains two build configurations and two debug sessions The Build Configuration allows the same project to be built but with different compiler options The options available to the u...

Page 10: ...w the options on each of the tabs and Category dropdown lists to be aware of the options available When complete close the dialog box by clicking OK 5 1 Building Code There are three shortcuts availab...

Page 11: ...d Fit the LCD module to LCD on the RSK so it lies above U13 Ensure all the pins of the connector are correctly inserted in the socket Connect the E10A debugger to the USB port on your computer Connect...

Page 12: ...program is downloaded The Output window in HEW will state Connected Now is a good time to save the HEW session Select File Save Session If you have changed any workspace settings now is a good time t...

Page 13: ...CPU on the Debug Toolbar The File window should open the Tutorial code at the entry point An arrow marks the current position of the program counter We will now skip over the initialisation code and...

Page 14: ...are faster to use Press Reset Go on the Debug Toolbar The code will execute to the breakpoint At this point all the device initialisation will have been completed Press Step In on the Debug Toolbar T...

Page 15: ...on for the external potentiometer and uses the result to set the next compare match value The ADC conversion is then re started The interrupt initialisation is completed as part of the hardware setup...

Page 16: ...context a tool tip will be displayed with the current value of the variable Hover the mouse over the ucStr variable to see the tooltip value Then Right click on the variable name and select Instant W...

Page 17: ...can be overwritten with TESTTEST You have now run the tutorial code and used many of the common features of the debugger We suggest that you review the rest of the tutorial code as many functions have...

Page 18: ...c details 7 1 1 Initialisation code resetprg c resetprg h This is the entry point of the main tutorial code Initialisation of the variables used in the C compilers and initialisation of stack pointers...

Page 19: ...is common to all tutorial projects The display initialisation and string display functions operate on the LCD display module Check compatibility with ks0066u controller and pin connection on the schem...

Page 20: ...able 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 Global http...

Page 21: ...orial Manual Publication Date Rev 1 00 28 08 2008 Published by Renesas Technology Europe Ltd Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH UK 2008 Renesas Technology Europe and Renesa...

Page 22: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan Renesas Starter Kit for H8S 2472 REG10J0083 0100 Tutorial Manual...

Reviews: