Download the load module file to be debugged to the debug tool that is currently connected.
Follow the steps below on the [Download File Settings] tab in the Property panel for the downloading, and then execute the downloading.
By default, CPU reset automatically occurs after downloading the file, and then the program is executed to the specified symbol position. If this operation above is not needed, specify [No] with both of the [CPU Reset after download] and [Execute to the specified symbol after CPU Reset] property. |
Properties displayed in this category differ depending on the debug tool used in the project. |
The names of files to be downloaded and download conditions are displayed (the number enclosed with "[ ]" indicates the number of files to be download).
Files that are specified as build target files in the main project or subprojects will automatically be selected as the files to be downloadedNote.
However, you can manually change the download files and the condition. In this case, see "2.5.2 Advanced downloading".
To download the load module files created by an external build tool (e.g., compilers and assemblers other than the build tools supplied with CS+), a debug-dedicated project needs to be created. |
Specify whether to reset the CPU after downloading.
Select [Yes] to reset the CPU (default).
Note, however, that this property does not appear if the selected microcontroller always resets the CPU after downloading.
Specify the download mode for downloading to the flash ROM.
Select one of the options from the following drop-down list.
This property is valid only when the [Download Mode] (except [Simulator]) property is set to [Speed priority] (default).
Specify whether to erase the flash ROM before downloading.
Select [Yes] to erase the flash ROM (default: [No]).
Note that the erase operation differs depending on the emulator when [Yes] is selected.
The internal ROM area will be always erased. For the other area, an erase will be performed in the area where the downloaded data exists.
For all flash area, an erase will be performed in the area where the downloaded data exists.
If the file is downloaded again during debugging then the location (address) set for the currently configured event may change to midway in the instruction.
Specify with this property how to handle the target event in this circumstance.
Select one of the options from the following drop-down list.
Note, however, that this property setting only applies to the location setting of events without debugging information. The location setting of events with debug information is always moved to the beginning of the source text line.
Specify whether to output a message when overwriting to an area reserved for use by the emulator is attempted at the time of downloading.
Select [Yes] to output a message (default).
Specify from the drop-down list whether to execute the program to the specified symbol position after CPU reset or downloading (for only when the [CPU Reset after download] property is set to [Yes]).
Select [Yes] to execute the program to the specified symbol position after CPU reset (default).
When the [CPU Reset after download] property is set to [Yes], the operation after downloading is as follows: |
This property appears only when the [Execute to the specified symbol after CPU Reset] property is set to [Yes].
Specify the position at which the program is stop after CPU reset.
Directly enter an address expression between 0 and "last address in address space" (default: [_main]).
Note, however, that the program will not be executed if the specified address expression cannot be converted into an address.
Normally, specify the following. |
Specify the upper limit on the amount of memory to be used in reading the debug information.
When the amount of memory being used exceeds the upper limit specified here, memory is made available by discarding debug information that has been read until the amount of memory in use is reduced to half of this upper limit (lowering the upper limit might improve the situation when shortages of memory are arising).
Directly enter a decimal number between 100 and 1000 (unit: Mbyte) (default: [500]).
In some cases, lowering the upper limit may lead to poorer responsiveness since it leads to more frequent discarding and re-reading of debug information. |
Click the button on the Debug toolbar.
If this operation is performed while disconnecting from the debug tool, the application automatically connects to the debug tool, and then performs the download.
When a program that has been modified during debugging is re-downloaded, you can easily build and download it by selecting [Build & Download] from the [Debug] menu on the Main window. |
To cancel a download, click the [Cancel] button on the Progress Status dialog box, which displays the progress of downloading, or press the [Esc] key.
If the load module file is successfully downloaded, the Editor panel opens automatically, and the contents of the downloaded file's source text are displayed.
You can automatically overwrite the value of SFR/CPU register with the specified values before and after performing the download (see "2.16 Use Hook Function" for details). |