Professional Documents
Culture Documents
Insert the yellow IAR CD into your drive. This CD contains all the software you need to get
your development environment up and running.
When the start page is displayed, click Product installations and select IAR Embedded
Workbench for your product family to start the installer and follow the instructions. The
installer program installs all necessary files and adds the appropriate program group and icons
to the Windows Start menu.
Note: You need to register your product via email as part of the installation process. Your
license number and license key will be generated automatically and sent to you as an email.
Connect your hardware board to the PC.
The Found New Hardware Wizard
will appear. Perform the steps in this
wizard and browse manually to folder
\drivers on the CD, where the USBdrivers are located.
Start the IAR Embedded Workbench
IDE. The IAR Embedded Workbench
Startup dialog box appears.
Click Example applications.
In the next dialog box that appears,
browse to the example workspace for
your hardware board and click Open.
This guide explains the three different
SubAtomic Particle boards,
YM16CSPB, YR8CSPB and
YH8SPB.
If the option Do not prompt for
working copy directory is checked, the
example workspace will automatically
be copied to My Documents, folder
IAR Embedded Workbench.
YM16CS
PB
YR8C
SPB
YH8SP
B
Make a complete build of the application by selecting Project>Rebuild All from the menu.
Start the debug session by clicking on
the C-SPY debugger icon in the toolbar.
Select the correct device also in the
emulator setup dialog.
YM16C
SPB
YR8
CSP
B
YH8S
PB
Click OK.
The first time the emulator is used, a dialog box appears where you shall select Renesas Eseries USB driver.
For YH8SPB users an input ID Code is
required. This ID is 00E8
YH8S
PB
Click OK.
Accept any dialog box warning that an older version of E8 firmware is necessary to work
with the application. Allow download of firmware to complete.
The code will be downloaded to the microcontroller. When programming and initialization is
completed, the Program Counter (PC) will be located at main() and ready to run.
Execute the application in C-SPY by clicking Debug>Go or by clicking the Go
the toolbar.
icon in
The IAR C-SPY debugger has windows and icons showing full information about your
application. It can be single-stepped and executed up to a breakpoint. Breakpoints can be
configured as active or inactive and can have certain logic conditions associated with them to
control how the program breaks under given circumstances. Various windows allow
inspection of memory, global and local variables, structures and other information.
You have now installed the software, programmed your hardware board and run an application
with the debugger. To learn more about the tools, please read the supporting user documentation
available from the Help menu.