Renesas RSKM16C62P User Manual

1. Installation
Do not connect the E8a debugger hardware until the software support has been installed.
1. Insert the CD into your computer’s CD-ROM drive. The CD should automatically run the installation program. If the installer does not start, browse to the RSK directory from the CD root folder and double click on ‘setup.exe’.
2. The installer will ask you which language is to be used, please choose the appropriate one.
3. On the first screen of the installer proper, click <Next>.
4. The License Agreement will be shown, click <Yes>.
6. Select the RSK you wish to install and click <Next> to continue.
7. The destination folders are specified on the next screens. It is recommended to accept the default settings. Click <Next> to continue.
8. Click <Next> on all screens until the Installation process commences.
9. After the installation the machine’s site code will be shown, this is not important at this stage, click <Next> then <Finish>.
10. The Auto-update dialog box will be launched. Configure the Auto-update settings dialog to allow the installation to be checked for available updates.
2. Connection
11. Fit the LCD module to J11 on the RSK, so it lies above J3. Ensure all the pins of the connector are correctly inserted in the socket.
12. Now connect the E8a to J8(E8) on the RSK using the ribbon cable.
13. Connect the E8a debugger to a spare USB port.
The
‘Found New Hardware’ Wizard will appear. Please follow the steps below to install the drivers. Note that administrator privileges are required for a Windows™
2000/XP machine. Do not use “Windows update” to find the drivers.
14. Verify the “Recommended” option is selected and click <Next>.
15. If using Windows XP, skip to step 17; otherwise click <Next>.
16. Click <Next> to install the driver.
17. Click <Finish> to close the wizard.
Note: The Windows driver signing dialog may be displayed. Please accept the driver to continue.
D006344_11_S01_V04
3. HEW Workspace
HEW integrates various tools such as compiler, assembler, debugger and editor into a common graphical user interface. To learn more on how to use HEW, open the HEW manual installed on your computer (Start Menu > All Programs > Renesas > High-performance Embedded Workshop > Manual Navigator).
18. Launch HEW from the Start Menu. (Start Menu > All Programs > Renesas > High-performance Embedded Workshop).
19. In the “Welcome” dialog box: Verify “Create New Workspace” is selected. Click <OK>
20. In the “New Project Workspace” dialog box: Set the “CPU Family” to “M16C”, and verify the “Tool chain” is set to “Renesas M16C Standard”. Select “E8A_RSKM16C62P” from the left hand pane.
21. Enter a name for the workspace. The project name will be automatically completed with the Workspace name. You can change this name to ‘Tutorial’ if required. Click <OK>.
22. On the “E8A_RSKM16C62P– Step 1” window: Select “Tutorial” and click <Next>.
23. On the “E8A_RSKM16C62P– Step 2” window: Click <Finish>.
24. On the Project Generator Information window: Click <OK>.
The project that is created has two configurations. The Release configuration can be used for the final release code version. The Debug configuration allows modifications to the configuration for debugging.
25. Select the Debug build configuration in the left hand drop down list on the tool bar.
26. Click on the ‘Build’ icon to compile, assemble and link the project.
4. Programming and Debug
27. Ensure the “SessionM16C_E8a_SYSTEM” session in the right hand drop down list on the tool bar is selected.
28. Click the <Connect> button on the debug toolbar
29. The “Emulator Mode” wizard will be shown. Select the correct MCU group (M16C/62P) and device type (M30626FJP for RSKM16C62P )
Please note that the “Emulator mode” view shown here will only appear the FIRST time you connect to the target within a project. On subsequent connections the “Emulator setting” dialog will appear, please choose the same options to connect – refer to the RSKM16C62P Tutorial manual for details.
30. Select “Erase Flash and Connect”. If the E8a is to provide power to the CPU board, select “Power Target from E8” and
choose the “5.0V” option. Otherwise connect a 5V centre positive supply.
31. Click <Next>
32. In the “Firmware Location” view, select “FF000” for the Program location and “7F00” for the Work RAM location, Clear the “Debugging of program that uses WDT” checkbox; click <Next>.
33. The “MCU Setting” view will be shown. Select the processor mode “Single-Chip Mode”. Ignore “Memory Space Expansion”.
34. Set “PM13 (b3 of 000005H) is 1” checkbox.
35. Clear “PM10 (b0 of 000005H) is 1” checkbox.
36. Click <Finish>.
Note: The first time the E8a is connected, you may be asked to choose a driver, select “Renesas Communications”, after a few seconds the “Interface” and “Channel” numbers will be automatically displayed, click <Close> on the dialog.
D006344_11_S01_V04
Loading...
+ 1 hidden pages