User`s manual

SuperH Family E10A-USB Emulator for Multi-core Microcomputers Section 5 Debugging
R20UT0363EJ0500 Rev. 5.00 Page 86 of 296
Aug 10, 2012
5.3 Downloading a Program
This section describes how to download a program and view it as source code or assembly-language
mnemonics.
Note: After a break has been detected, the High-performance Embedded Workshop displays the
location of the program counter (PC). In most cases, for example if an Elf/Dwarf2-based
project is moved from its original path, the source file may not be automatically found. In
this case, the High-performance Embedded Workshop will open a source file browser dialog
box to allow you to manually locate the file.
5.3.1 Downloading a Program
A load module to be debugged must be downloaded.
To download a program, select the load module from [Debug -> Download] or select [Download]
from the popup menu opened by clicking the right-hand mouse button on the load module in
[Download modules] of the [Workspace] window.
Notes: 1. Before downloading a program, it must be registered to the High-performance
Embedded Workshop as a load module. For registration, refer to section 4.3, Setting at
Emulator Activation.
2. When a program is downloaded to the external RAM, the bus controller must be initially
set in the area for downloading. Especially, check that the initialization of SDRAM or
the setting of the bus width is appropriate for the target system. Download the
corresponding debugging information file to execute source-level debugging on the
High-performance Embedded Workshop for CPU0 or CPU1.
3. To proceed with source-level debugging for multiple CPUs, use the synchronized
downloading function or download debugging information files for the respective CPUs.
5.3.2 Viewing the Source Code
Select your source file and click the [Open] button to make the High-performance Embedded
Workshop open the file in the integrated editor. It is also possible to display your source files by
double-clicking on them in the [Workspace] window.