Following shows the basic sequence of program debugging using CS+.
Launch CS+ from the [Start] menu of Windows®.
Create a new project, or load the existing one.
Once you are finished with the setting of the active project and the build, execute the build to create a load module.
Connect the debug tool (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 for the debug tool selected in step (5).
Connect the debug tool to CS+ to start communication.
Download the load module created in step (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 using the operation method that matches your purpose.
If you wish to stop the program at the arbitrary position, set a breakpoint/break eventNote before executing the program (see "2.10.2 Stop the program at the arbitrary position (breakpoint)"/"2.10.3 Stop the program at the arbitrary position (break event) [E1] [E20]").
These functions are implemented by setting events to the debug tool used. |
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 condition of the breakpoint/break event 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 format, binary data format, etc.), as required.
Disconnect the debug tool from CS+ to terminate communication.
Save the setting information of the project to the project file.