background image

 

 

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 provides examples for using various peripherals. This will open a new dialog allowing the selection 

of many code examples for the peripheral modules of the device. The final option is for an application build where the debugger is 

configured but there is no program code. This project is suitable for the user to add code without having to configure the debugger. 

 

Select “Tutorial” as the type of project to generate and then click “Next”. 

 

Click “Finish” to create the project 

The project generator wizard will display a confirmation dialog. Press ‘OK’ to create the project and insert the necessary files.  

A tree showing all the files in this project will appear in HEW. 

 

To view the file ‘main.c’, double click on the file in the Workspace window. A new window will open showing the code. 

4.3. Build Configurations and Debug Sessions 

The workspace that 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 user are described fully in the HEW Users Manual. 

4.3.1. Build Configuration 

The build configurations are selected from the left hand drop down list on the toolbar. The options available are Debug and Release. The 

debug build is configured for use with the debugger. The Release build is configured for final ROM-able code. 

A common difference between the two builds may be the optimisation settings. With Optimisation turned on the Debugger may seem to 

execute code in an unexpected order. To assist in debugging it is often helpful to turn off optimisation on the code being debugged. 

 

Select the ‘Debug Build’ Configuration. 

 

4.3.2. Debug Session 

The debug sessions are selected from the right hand drop down list on the toolbar. The options vary between RSK however one will always 

start Debug and include the type of debug interface. The alternate selection will be ‘DefaultSession’. The purpose of the debug sessions is 

to allow the use of different debugger tools or different debugger settings on the same project. 

Select ‘SessionH8S_2472_E10A_USB_SYSTEM’ debug session. 

 

Содержание H8S/2472

Страница 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...

Страница 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...

Страница 3: ...Renesas Starter Kit for H8S 2472 Tutorial Manual User s Manual Rev 1 00 2008 08 RENESAS SINGLE CHIP MICROCOMPUTER H8S FAMILY...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 22: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan Renesas Starter Kit for H8S 2472 REG10J0083 0100 Tutorial Manual...

Отзывы: