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:
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.
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.
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.
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.
Download the application to the target with the Debug / Download command. Have fun debugging our sample project!
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.
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.
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.
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!
Detailed tutorial on setting up a new workspace is available for: