background image

 

5.2.  Connecting the debugger 

For this tutorial it is not necessary to provide an external power supply to the board, the power will be provided by the E8 from the USB port. 

Please be aware that if you have too many devices connected to your USB port it may be shut down by Windows. If this happens remove 

some devices and try again. Alternatively you can provide an external power source, taking care to ensure the correct polarity and voltage. 

The Quick Start Guide provided with the RSK board gives detailed instructions on how to connect the E8 to the host computer. The 

following assumes that the steps in the Quick Start Guide have been followed and the E8 drivers have been installed. 

 

Connect the E8 debugger to the USB port on your computer. 

 

Connect the E8 Debugger to the target hardware ensuring that it is plugged into the connector marked ‘E8’ which is nearest 

the power connector. 

 

If supplying external power to the board this can be turned on now. 

5.3.  Connecting to the target with E8Direct & HMon 

This section will take you through the process of connecting to the device, programming the Flash and executing the code. 

The E8 provides an interface called ‘E8DIRECT’ to allow HMon embedded debugger to connect to the target device. 

To provide flash programming capabilities the FDT Flash configuration wizard must be configured. This process is only required once in a 

project. The settings provide information to HMon to allow re-programming of the device. 

 

Select the FDT Wizard from the FDT Tool Bar 

 

If the flash kernel is already configured then a confirmation window will open with the kernel settings. To modify any of the settings just 

double click on the item. If FDT is already configured then please proceed to section 5.3.1 ‘Connecting to HMon’. 

The first stage is to select the specific device from the installed kernels. The installer will have added the kernel to the FDT registry so it will 

appear under the device list drop down menu. If for any reason the kernel has to be re-build such as the crystal frequency on the board has 

changed, then the installation path is: 

<FDT Installation>\Kernels\ProtB\2215RU\Renesas\1_0_00.RSK 

Содержание RSK H8S2215R

Страница 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 RSK H8S2215R Tutorial Manual User s Manual Rev 1 00 2007 01 RENESAS SINGLE CHIP MICROCOMPUTER...

Страница 4: ...Session 7 Chapter 5 Building the Tutorial Project 8 5 1 Building Code 8 5 2 Connecting the debugger 9 5 3 Connecting to the target with E8Direct HMon 9 5 3 1 Connecting To HMon 13 Chapter 6 Downloadi...

Страница 5: ...arks of their respective companies or organisations Copyright Renesas Technology Europe Ltd 2006 All rights reserved Renesas Technology Corporation 2006 All rights reserved Website http www renesas co...

Страница 6: ...uded Release 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 exampl...

Страница 7: ...sion of the debug monitor within the Debug build and its exclusion in the Release build Contents of common C files are controlled with defines set up in the build configuration options and ifdef state...

Страница 8: ...rmance Embedded Workshop or from its icon Open a new tutorial workspace from the File New Workspace menu or select Create a new project workspace when presented with the Welcome dialog The example abo...

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

Страница 10: ...lists to be aware of the options available When complete close the dialog box by clicking Cancel Please note that if you have modified any of the options and want to save it you need to click OK 5 1...

Страница 11: ...to the target with E8Direct HMon This section will take you through the process of connecting to the device programming the Flash and executing the code The E8 provides an interface called E8DIRECT to...

Страница 12: ...erent crystal frequency the device will not be listed in the sub pane In this case Press Other and navigate to your modified kernel Select E8DIRECT as the communication Port Press Next The default set...

Страница 13: ...ill be displayed Press OK To communicate with the RSK FDT and HMon need to be able to change the operating mode of the microcontroller To do this there are settings to control the state of the Mode pi...

Страница 14: ...wing warning dialog will be displayed Press OK Damage to the microcontroller can be sustained with incorrect settings Confirm the mode pin settings Press Finish The Flash configuration has now been co...

Страница 15: ...ed to confirm if it acceptable to assume only one E8 device will be connected to the host computer while using this project This is the preferred operating mode While it is possible to use more than o...

Страница 16: ...he connection still fails then a Boot Mode download will be required Press Abort In the Connection Error dialog box select Download HMon using Boot Mode Press OK Click OK to any warning dialogs Click...

Страница 17: ...Ensure 0x000D 1 Closed is selected and click OK On completion of the download HMon will automatically re connect to the monitor and revert back to User programming mode 15...

Страница 18: ...review the settings in each tab HMon includes a cache of the current device program This allows the number of reprogramming cycles to be reduced by not programming areas of the device that have not c...

Страница 19: ...le breakpoint Press Reset Go on the Debug Tool Bar The code will execute to the breakpoint At this point all the device initialisation will have been completed Press Step In on the Debug Tool Bar The...

Страница 20: ...rupt on an available internal timer On a compare match in the timer module an interrupt is generated In the TimerADC code version the interrupt reads the last ADC conversion for the external potentiom...

Страница 21: ...a button to bypass the flashing 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...

Страница 22: ...g function 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 The modified string is also displayed on th...

Страница 23: ...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 Depending upon the c...

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

Страница 25: ...common to all tutorial projects The display initialisation and string display functions operate on the LCD display module Check compatibility with a ks0066u controller and pin connection on the schem...

Страница 26: ...lled with this product For more information on the configuration and use of HMon please refer to the HMon User Manual installed from the CD Further information available for this product can be found...

Страница 27: ...Manual Publication Date Rev 1 00 12 01 2007 Published by Renesas Technology Europe Ltd Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH United Kingdom 2006 Renesas Technology Europe and...

Страница 28: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan Renesas Starter Kit for H8S2215R REG10J0023 0100 Tutorial Manual...

Отзывы: