Getting Started

Previous Next

winIDEA Examples

WinIDEA comes bundled with examples that include most of the supported CPU architectures and hardware combinations. We recommend that first-time users use these for evaluation purposes in order to get started with a new project as quickly as possible.

It's easy, just follow these four steps:

Install Examples

Find the right sample

Set up the hardware

Start debugging!

1. Install Examples

To extract examples, open winIDEA and choose Help / Install Examples.... winIDEA will ask for destination folder. Choose the desired location and click Extract. When the samples are extracted, sample workspaces may be used.

2. Choosing winIDEA Example

To open winIDEA sample workspace either:

navigate to the examples folder, where you extracted the examples or

choose File / Workspace / Open Workspace... and navigate to the examples folder

Samples are separated by:

emulation type (in-circuit emulation / on-chip debug)

purpose (Eclipse, Instrumentation, TestIDEA...)

For first-time use, choose between ICE (In-circuit emulation and OCD (On-chip debug) and choose the CPU family. Samples are classified by CPU, compiler vendor, code location and iSYSTEM hardware used. Select the workspace that matches your target CPU and iSystem hardware. Such samples are already properly set-up to get going in no time.

3. Get started with debugging

3.1 Physically connect the hardware

On one end connect the debugger (e.g. iC5000) to the target board and on the other end to the PC USB port via the USB cable delivered along the debugger. Then power on the system - first the debugger, then the target board. Make sure they are both powered and turned on.

3.2 Establish communication between winIDEA and the debugger

Open the Hardware / Hardware... dialog and select the Communication tab. Select the type of communication you are using, then select the device from the list in the drop down menu.

Click Test to make sure that communication with the debugger is established.

3.2 Start debugging

Download the application to the target with the Debug / Download command. Have fun debugging our sample project!

Source stepping and instruction stepping

To step the source code, click in the source code window, to set focus on the source code. Then use Debug / Run Control / Step (F11) or Step Over (F10) command.

To step the instructions, open the Disassembly window (View / Disassembly) and click in it, to set focus. Run controls will now step into / over an instruction, instead of the source line.

Using breakpoints

Each CPU has a limited amount of available hardware breakpoints. To set a breakpoint, click Debug / Toggle Execution Breakpoint (F9). Breakpoints may be set either in the source code or in the disassembly window.

Inspect / edit the variable value

To see the value of the variable, hover the mouse over the variable in the source code or place it in the Watch window (View / Watch).

To edit the value, stop the CPU and enter a new value in the Watch window.

Inspect / edit target memory

To see the contents of the target memory, use the Memory window (View / Memory...). Enter the desired address in the Display Memory window and hit OK. Make sure not to view any of the addresses, which you have no access to or if reading them would change the CPU behavior.

Click the memory location you wish to edit and enter the desired value to change it.

Read more about Debug windows to discover other useful winIDEA debug features!

Setting up a new workspace

Detailed tutorial on setting up a new workspace is available for:

RH850\F1H and

MPC5748G microcontroller.