The basic debugging sequence for programs using CS+ is as follows:
Launch CS+ from the [Start] menu of Windows.
Create a new project, or load an existing one.
Create a load module by running a build after setting of the active project and the build tool to be used.
Connect the debug tool (Full-spec emulator, E1, E20, or Simulator) to be used to a host machine.
Select the debug tool to be used in a project.
The selectable debug tool differs depending on the microcontroller type to be used in a project. |
Configure the operating environment of the debug tool selected in steps (5).
Connect the debug tool to CS+ to start communication.
Download the load module created in steps (3) to the debug tool.
Display the contents of the downloaded load module (source files) on the Editor panel or Disassemble panel.
Execute the program by using the operation method corresponding to a purpose.
If you wish to stop the program at the arbitrary position, set a breakpoint/break eventNote before executing the program (see "2.10.3 Stop the program at the arbitrary position (breakpoint)", "2.10.4 Stop the program at the arbitrary position (break event)", or "2.10.5 Stop the program with the access to variables/I/O registers").
These functions are implemented by setting events to the debug tool used. |
When the selected microcontroller version supports multi-core, select a core (PE: Processer Element) to be debugged before executing the program (see "2.8 Select a Core (PE)"). |
Stop the program currently being executed.
Note that if a breakpoint/break event has been set in steps (10), the program execution will be stopped automatically when the set break condition is met.
Check the following information that the debug tool acquired by the program execution.
These functions are implemented by setting events to the debug tool used. |
Debug the program, repeating steps (9) to (12) as required.
Note that if the program is modified during debugging, steps (3) and (8) also should be repeated.
Other than the above, you can also check the result of the program execution by using the following functions. |
Save the program (the memory contents) to a file in the arbitrary format (e.g. Intel HEX file, Motorola S-record file, binary file, and etc.), as required.
Disconnect the debug tool from CS+ to terminate communication.
Save the setting information of the project to the project file.