
Hitachi Embedded Workshop User Manual
177
3.3.4
Manual Download of Modules
Once you have decided which modules are to be downloaded to the target, it is possible to manually update the
modules of the connected target by selecting [Debug -> Download Modules]. This allows a single module or all
of the modules to be downloaded. This can also be achieved by right-clicking on modules under the [Download
Module] folder in the [Workspace] window.
3.3.5
When you select [Debug -> Run…], the HEW calculates whether any of the files or debugger settings that affect
the modules have changed since the last download. If the HEW detects a change, then it asks the user whether a
download needs to take place for each module. If the user selects [Yes], then the module is downloaded to the
target.
If you have banked multiple modules at the same start address, only the first module at that address is
downloaded by default. It is then possible to manually load or unload the other modules in the list whenever you
want from the [Debug -> Download Modules] and the [Debug -> Unload Modules] menu items.
3.3.6
Unloading of Modules
It is possible to manually unload downloaded modules in the list whenever you want from the [Debug -> Unload
Modules] menu item. This can also be done from the [Download Module] pop-up menu in the [Workspace]
window.
When a module is unloaded, its symbols are erased from the HEW debugging system, but the memory contents
of the target remains unmodified. After a module has been unloaded, it cannot be debugged unless it is reloaded.
3.4
Debugger Sessions
The HEW stores all of your builder options into a configuration. In a similar way, the HEW stores your
debugger options in a session. The debugging platforms, the programs to be downloaded, and each debugging
platform’s options can be stored in a session.
Sessions are not directly related to a configuration. This means that multiple sessions can share the same
download module and avoid unnecessary program rebuilds.
Each session’s data should be stored in a separate file in the HEW project. Debugger sessions are described in
detail below.
3.4.1
Selecting a Session
The current session can be selected in the following two ways:
From the toolbar
Select a session from the drop-down list box (figure 3.18) in the toolbar.
Figure 3.18 Toolbar Selection
From the dialog box
1. Select [Options -> Debug Sessions…]. This will open the [Debug Sessions] dialog box (figure 3.19).