background image

 

The next dialog presents the three types of example projects available. 

1.

 

Tutorial: This is the one of interest at this time; the code will be explained later in this manual. 

2.

 

Sample code: this provides examples for using various peripherals. If you select this and click <Next> it will open a new 

dialog allowing the selection of many code examples for the peripheral modules of the device. 

3.

 

Application: 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 High-performance Embedded Workshop. 

 

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 High-performance 

Embedded Workshop Users Manual. 

4.3.1. Build Configuration 

The build configurations are selected from the left hand drop down list on the tool bar. 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 tool bar. The options vary between Renesas Starter Kit 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 the ‘SessionM16C_E8a_SYSTEM’ 

debug session. 

 

 

Содержание M16C/26A

Страница 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 M16C 26A Tutorial Manual User s Manual Rev 4 00 2007 10 RENESAS 16 BIT SINGLE CHIP MICROCOMPUTER M16C FAMILY M16C Tiny SERIES...

Страница 4: ...uration 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 E8a 7 Chapter 6 Downloading and Runnin...

Страница 5: ...stered trademarks of their respective companies or organisations Copyright Renesas Technology Europe Ltd 2007 All rights reserved Renesas Solutions Corporation 2007 All rights reserved Renesas Technol...

Страница 6: ...d 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 this manual...

Страница 7: ...onfiguration menu in High performance Embedded Workshop allows the project to be configured such that certain files may be excluded from each of the build configurations This allows the inclusion of t...

Страница 8: ...e 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 RSKM16C26A selected...

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

Страница 10: ...ions on each of the tabs and Category drop down lists to be aware of the options available When complete close the dialog box by clicking OK There are three short cuts available for building the proje...

Страница 11: ...lies above J1 Insure all the pins of the connector are correctly inserted in the socket Connect the E8a debugger to the USB port on your computer Connect the E8a Debugger to the target hardware ensur...

Страница 12: ...ox Debugging of program that uses WDT is not checked Click Next Only Single Chip Mode is available Clear PM10 b0 of 000005H is 1 Click Finish The Flash Memory write program is downloaded The Output wi...

Страница 13: ...ht click on the download module listed and select Download On completion the debugger and code are ready to be executed To start debugging we need to reset the debugger and target Press Reset CPU on t...

Страница 14: ...int Alternatively set an eventpoint by clicking in the column to the left of the breakpoint column Up to 6 eventpoints can be set Eventpoints do not require programming the flash memory and thus are f...

Страница 15: ...In the TimerADC code the interrupt reads the last ADC conversion from the external potentiometer and uses the result to set the next compare match value The ADC conversion is then re started The inte...

Страница 16: ...LED test Press Step In on the Debug Tool Bar It is possible to monitor variables during debugging of the code To set up a watch on a variable place the mouse over the variable If the variable is avai...

Страница 17: ...unction call after the loop and select Go to cursor This shows that the variable was initialised at program start up and can be overwritten with TESTTEST You have now run the tutorial code and used ma...

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

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

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

Страница 21: ...ation available for this product can be found on the Renesas website at www renesas com renesas_starter_kits General information on Renesas Microcontrollers can be found at the following website Globa...

Страница 22: ...blication Date Rev 4 00 Oct 22 2007 Published by Renesas Technology Europe Ltd Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH UK 2007 Renesas Technology Europe Ltd Renesas Solutions Co...

Страница 23: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan Renesas Starter Kit for M16C 26A REG10J0041 0400 Tutorial Manual...

Отзывы: