This section describes how to stop the program in execution.
CS+ can stop the program in execution at the arbitrary position by using the following functions.
The debug tool consecutively checks the break condition while the program is in execution and stops the program when the condition is met. This function is implemented using the debug tool resources.
There are two types of Hardware Break event: "execution type" which stops the program at the arbitrary position; and "access type" which stops the program when an arbitrary variable and so on is accessed with the specified type.
[E1][E20][Full-spec emulator] |
[Simulator] |
Temporarily replaces the instruction code for a specified address with a break instruction and stops the program when this instruction is executed.
If a Software Break event is set, the program will break before executing instruction at the specified address ("before execution" break).
Since an instruction code is replaced by the break instruction, setting or deleting a software break event is followed by programming of the memory at the timing described below. |
When the program execution is started (including the start of execution via [Ignore break and go] from the [Debug] menu) |
If a forced break is performed while in standby mode (HALT/STOP/IDLE), the current PC position will indicate the address of the next instruction after the standby mode instruction. |
[Simulator] |
[Full-spec emulator][E1][E20] |
For "program execution control" or "event occurrence" for a microcontroller that supports multi-core, see also to "Select a Core (PE)". |
When the program in execution is stopped, a statement of the cause of the break appears on the Statusbar in the Main window. |