background image

 

The next dialog presents the three types of example project available: 

1.

 

Tutorial: This is the one of interest at this time; the code is 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.a74’, double click on the file in the Workspace window, ‘main.a74’ will appear in the code window. 

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 fully described in the High-performance 

Embedded Workshop User’s 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 optimisation off 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 Renesas  Starter  Kit types 

however one will always start Debug and include the type of debug interface, the alternate selection is the ‘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 ‘Session740_E8a_SYSTEM’ debug 

session. 

 

 

Summary of Contents for M3T-SRA74

Page 1: ...J10J1330 0200 Renesas Starter Kit for 7542 Tutorial Manual for M3T SRA74 RENESAS SINGLE CHIP 8 BIT CMOS MICROCOMPUTER 740 FAMILY Rev 2 00 Renesas Solutions Corp Revision date Aug 10 2007 www renesas c...

Page 2: ...ons 5 4 3 1 Build Configuration 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...

Page 3: ...emarks of their respective companies or organisations Copyright Renesas Solutions Corporation 2007 All rights reserved Renesas Technology Europe Ltd 2007 All rights reserved Renesas Technology Corpora...

Page 4: ...strating 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 assume...

Page 5: ...figuration 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 the...

Page 6: ...new tutorial workspace 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 th...

Page 7: ...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 fully described in...

Page 8: ...rop down lists to be aware of the options available Note For the purposes of the tutorial leave all options at default When complete close the dialog box by clicking OK 5 1 Building Code There is a ch...

Page 9: ...t pin 1 on the module corresponds to the indication on the Renesas Starter Kit PCB Connect the E8a debugger to the USB port on your computer Connect the E8a Debugger to the target hardware ensuring th...

Page 10: ...cted Note The connection to the target will activate the debugger buttons on the High performance Embedded Workshop toolbar Now is a good time to save the High performance Embedded Workshop session Se...

Page 11: ...select Download Note The output display will show Flash memory write end to confirm the completion of the download On completion of the download the debugger is ready for the code to be executed To st...

Page 12: ...on the line and select Toggle breakpoint Alternatively set an eventpoint by double clicking in the column to the left of the breakpoint column Up to 2 eventpoints can be set Eventpoints do not require...

Page 13: ...enerated In the TimerADC code version 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...

Page 14: ...ge in flash to RAM Press Reset Go on the debug toolbar The code will stop at the breakpoint Press one of the Renesas Starter Kit buttons to bypass the flashing LED test Press Step In on the debug tool...

Page 15: ...emory Window will show that the first character of the variable string has been replaced with the first character of the constant replacement string Remove the breakpoint Right click on the DisplayStr...

Page 16: ...rial code main a74 main inc This is the entry point of the main tutorial code The call to InitRAM ConfigurePortPins EnablePeripheraModules and ConfigureInterrupts will initialise the device hardware a...

Page 17: ...4 There are two stages to the configuration of the microcontroller device The code to demonstrate this is therefore split into two functions Each function is written specifically for the device suppor...

Page 18: ...on 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 websites Gl...

Page 19: ...or M3T SRA74 Publication Date Rev 2 00 Aug 10 2007 Published by Renesas Solutions Corp 4 1 6 Miyahara Yodogawa ku Osaka City 532 0003 Japan 2007 Renesas Solutions Corp Renesas Technology Europe Ltd an...

Page 20: ...Renesas Starter Kit for 7542 Tutorial Manual for M3T SRA74 Renesas Solutions Corp 4 1 6 Miyahara Yodogawa ku Osaka City 532 0003 Japan...

Reviews: