M16C/28 FLGA_v1_1205 (Page 1)

M16C/28 FLGA_v1_1205 (Page 1)
QuickStart Guide
StarterKit Plus™
Power LED
J4 Pin 1
M30280FA FLGA Package
User LEDs
E8 Interface
J1 Pin 1
CDS Cell
J3 Pin 1
Figure 1. M16C/28 FLGA SKP
M16C/Tiny (FLGA) StarterKit Plus QuickStart Guide v1.0
Page 1 of 5
1. M16C/Tiny SKP StarterKit Plus Software Install
a) Please insert the enclosed CD into your computer’s CD-ROM drive. The CD should auto-start, displaying the SKP Picker
Install Screen. Follow the directions in the installation windows to install the Renesas tools.
i) If the installation screen does not appear, please browse the CD root folder and double-click on “SKP-Installer.exe”.
– Do not plug the In-Circuit Debugger into your USB port until instructed to in Section 2, USB Driver Installation.
– During the installation process, you may be prompted to restart your computer. Do not restart until the SKP installer
has completed installation of all of the software items.
– During the SKP install, dialog boxes will appear asking if you would like to install the development tools or not.
The development tools will allow you to evaluate the different features of the M16C/Tiny MCU and the software
development environment (debugger, compiler, linker, etc.).
– Also during the installation process, the AutoUpdater installer will launch. You can cancel or configure at any time
during the install process.
2. USB Driver Installation
When you connect the RTA-FoUSB-MON In-Circuit Debugger (ICD) to your computer for the first time, Windows will recognize
this new device and will request the drivers. Follow the steps below to install the drivers. Administrator privileges are
required to install the driver on a Windows 2000/XP machine.
a) Verify that the Target/Bus Power Mode selector is in the USB position (Figure 1).
b) Connect one end of the mini USB cable into the ICD and the other end into your PC’s USB port. The red “Power” LED on
the ICD will light up and the yellow “Status” LED will blink about 2-3 times per second.
c) If using Windows 98, ME or 2000, no intervention by the user is needed. When the ICD is plugged in, Windows
automatically attaches the correct driver for your device and it is ready to use. Skip to step 2.e).
d) If using Windows XP, the first time a FoUSB device is plugged into a different USB port the Windows XP “Found New
Hardware Wizard” window will appear.
i) Select the option “Install the software automatically (recommended)”. Windows will then begin installing the USB driver.
ii) Another screen will probably appear stating that this driver has not been XP certified by Microsoft. Click the “Continue
Anyway” button. (We did not participate in Microsoft XP driver certification program.)
iii) When the driver is installed, you will be able to click “Finish” to close the wizard.
e) The driver files (.sys and .inf) are always located under the FoUSB install directory (For example: C:\Renesas\FoUSB\USB
Drivers\) in case you are having trouble with the automatic driver installer.
NOTE: If you have problems installing the drivers or your PC will not recognize the ICD, please see the “Troubleshooting”
section of the RTA-FoUSB-MON user’s manual for details.
PC with Windows® 98SE,
2000, Me, or XP
M16C/Tiny SKP
Figure 2. M16C/Tiny SKP System Connectivity
M16C/Tiny (FLGA) StarterKit Plus QuickStart Guide v1.0
Page 2 of 5
3. Demo Program
While the following instructions are specific for the SKP16C28 kit, they are directly applicable to the M16C28 FLGA kit.
The kit also ships with a demo program that runs on the board when connected to the ICD (RTA-FoUSB-MON).
Substitute M16C28 FLGA in place of SKP16C26A/28/29 in the following procedures.
a) If not already done in step 2a), plug one end of the USB cable into the RTA-FoUSB-MON and the other into a USB socket
on your PC.
b) Connect the RTA-FoUSB-MON to the SKP board using the supplied ribbon cable. Consult Figure 2 in this document for
proper orientation of the cable. The power light of the board should come on. If the power light on the SKP board does
not come on, check the Power Mode switch on the RTA-FoUSB-MON and verify that it is set to the “USB” position.
c) Press the reset switch to run the demo program.
– The LED’s will blink sequence (back and forth).
– The LED flash rate is controlled by the light intensity on the CDS cell.
– The LED flash sequence can be stopped by sliding either S1 or pressing S2. The sequence will start again when
the switch(es) are released.
4. HEW (IDE) Quick-Start
HEW integrates various tools such as the compiler, assembler, debugger, and editor into a common Graphical User Interface.
To learn more on how to use HEW, open the HEW manual navigator on your computer (Start > (All) Programs > Renesas >
High-performance Embedded Workshop > Manual Navigator).
a) Launch HEW from the Start menu (Start > (All) Programs > Renesas > High-performance Embedded Workshop >
High-performance Embedded Workshop).
b) In the “Welcome!” dialog box:
i) Verify “Create a new project workspace” is selected.
ii) Click <OK>.
c) In the “New Project Workspace” Dialog box:
i) Verify the “CPU family” is set to “M16C”.
ii) Select “M16C/28 FLGA StarterKit Plus” (Figure 3).
iii) Enter “skptest28” for the Workspace Name (the Project
Name will auto fill to “skptest28”).
iv) Click <OK>.
d) On the “M16C28 FLGA StarterKit Plus – Step 1” Window:
i) Click <Next>.
e) On the “M16C28 FLGA StarterKit Plus – Step 2” Window:
i) Select “SKP Operational Test”.
ii) Click <Finish>.
Figure 3. New Project Workspace in HEW
f) In the “Project generator information” Window:
i) Click <OK>.
g) Click the “Build” icon,
, to compile, assemble and
link the project. HEW will look similar to Figure 4.
h) After ensuring there are no errors, proceed to Section 5,
HEW (Debugger) Quick-Start.
Figure 4. HEW with the skptest28 project compiled
M16C/Tiny (FLGA) StarterKit Plus QuickStart Guide v1.0
Page 3 of 5
5. HEW (Debugger) Quick-Start
a) Connect the SKP to the PC as shown in Figure 2.
Described in detail in steps 3a) and 3b).
b) Pull down the session menu and select M16C_R8C_FoUSB
(or SessionM16C_R8C_FoUSB). The “Init” dialog box should open.
– If requested to save the session, click <Yes>.
c) The first time you open a debug session, you need to
define the target:
i) Click <Refer>…>
ii) Select the MCU group folder corresponding to the SKP MCU.
iii) Select the MCU in the group
Table 1.
using Table 1.
SKP16C26A – M30260F8A
SKP16C28 – M30280FA
iv) Select USB and click <OK>.
SKP16C28 FLGA – M30280FA
– If the message appears
SKP16C29 – M30290FA
“We should download
new firmware”, click <OK>.
– If you get an error, check connections.
d) From the “Debug” pull-down menu, select
“Download Modules > All Download Modules”.
Figure 5. FoUSB Connect Menu
e) Click on the “Go” icon to start the
program. This program is similar
to the demo program with the
exception that ALL the LED’s flash
at once instead of in sequence.
f) Click on the “Stop” icon
to halt the program.
g) From the “File” pull-down menu, select “Exit”. If requested to save workspace and/or session, click <Yes>.
6. Downloading (re-loading) the Demo Program using the Flash-over-USB™
In Section 5, the original demo program was erased and the SKP board was programmed with a different program.
You can use the Flash-over-USB Programmer to restore the original demo program.
a) Connect the SKP to the PC as shown in Figure 2.
b) Start the Flash-over-USB Programmer (Start > (All) Programs > Renesas > Flash-over-USB Ver. x.xx > FoUSB
Programmer) or double-click on the "FoUSB" icon on your desktop.
c) The first time the FoUSB Programmer is run on your computer:
i) If the Chip Selection window is not displayed, click on “Select MCU” button.
ii) Select M16C/Tiny series.
iii) Then select the appropriate group and part number as shown in Table 1.
iv) Click <OK>.
v) Click <OK> as requested until you are returned to the Flash-over-USB main menu.
d) Each subsequent time the FoUSB Programmer is run:
– If the “Unlocked” window appears, click <OK>.
e) Click <Open> when the Flash-Over-USB main menu appears.
M16C/Tiny (FLGA) StarterKit Plus QuickStart Guide v1.0
Page 4 of 5
f) Browse to the “C:\Renesas\SKP16C28_FLGA\Sample_Code\
SKP\SKPDemo\Release” folder.
g) Select “SKPDemo.mot” and click <Open>.
i) When the ID Code dialog box appears, click <OK>.
h) Click <Program> to open the Program Flash window.
i) Click <Program> to download the demo program.
j) When the FoUSB dialog box “Program completed
Successfully” appears, click <OK> (Figure 6).
k) Click <Exit> to close Flash-over-USB Programmer
and the demo program should start.
For more information on how to use the Flash-over-USB
Programmer, click on the “Help” button.
Figure 6. Flash-over-USB Programmer
Main Menu after loading the Demo Code
7. What’s the next step?
After you have completed this quick-start procedure, please review the tutorials that came with the kit. The tutorials will help
you understand and jumpstart the software development process using Renesas’ development tools.
You can access the tutorials from the Start Menu (Start > (All) Programs > Renesas > SKP16C28-FLGA > Tutorial 1 –
Development Process or Tutorial 2 – Creating a New Project) or from (Start > (All) Programs > Renesas > SKP16C28-FLGA >
Document Description), which also lists other documents that come with the SKP. To check for any updates
to the StarterKit Plus, use the (Start > (All) Programs > Renesas > SKP16C28-FLGA > Check for Kit Updates) shortcut.
This will take you to a kit-specific page on the Renesas website which provides links to any available update downloads.
8. HEW4/C-Compiler
The High-performance Embedded Workshop User Manual will show you how HEW4 integrates various tools such as the
compiler, assembler, debugger and editor into a common Graphical User Interface. To access the manual on your computer,
go to the HEW menu (Start > (All) Programs > Renesas > High-performance Embedded Workshop > Manual Navigator).
Included in the SKP is the Evaluation Version of the NC30WA v.5.30.02 C-compiler. The limitations are:
1. No support or warranty without the purchase of a full license.
2. After 60 days, code size limited to 64 Kbytes.
3. See the Compiler Release Notes, accessible from (Programs > Renesas > SKP16C2x) for details.
For recent updates, go to www.renesas.com/skp or,
for assistance, email [email protected]
© 2006 Renesas Technology America, Inc. Renesas Technology America, Inc. is a wholly owned
subsidiary of Renesas Technology Corporation. All trademarks are the property of their respective
owners. The information supplied by Renesas Technology America, Inc. is believed to be accurate
and reliable, but in no event shall Renesas Technology America, Inc. be liable for any damages
whatsoever arising out of the use or inability to use the information or any errors that may appear in
this publication. The information is provided as is without any warranties of any kind, either express
or implied. Renesas Technology America, Inc. reserves the right, without notice, to make changes
to the information or to the design and specifications of its hardware and/or software products.
Products subject to availability. Printed in U.S.A.
M16C/Tiny (FLGA) StarterKit Plus QuickStart Guide v1.0
Renesas Technology America, Inc.
450 Holger Way
San Jose, CA 95134-1368
Phone: 408-382-7500
Fax: 408-382-7501
Page 5 of 5
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF