background image

 

 

Press <Stop> on the debug toolbar. 

 

 

 

Press ‘CTRL-B’ to open the breakpoint 

window. 

 

Select ‘Remove All’ 

 

Press <OK>. 

 

 

Open the file ‘main.c’ 

 

Insert a breakpoint on ‘Statics_Test();’. 

The statics test is used to demonstrate that the initialisation has successfully copied all initialised variables from storage in flash to RAM. 

 

Press <Reset Go> on the Debug Toolbar. 

 

The code will stop at the breakpoint. (Press a button to bypass the flashing LED test.) 

 

Press <Step In> on the Debug Toolbar. 

 

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 available in the current 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 

Watch’. 

A dialog will open showing the variable and allowing further details to be explored. 

 

Press <Add> 

The dialog will close and a new pane will open in the workspace containing the variable. 

It is possible to see that the string has been successfully initialised to ‘STATIC ‘. 

 

Set a breakpoint on the call to ‘DisplayString();’ inside the for loop. 

 

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 character of the constant 

12 

Содержание 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...

Отзывы: