 | MON251 User's Guide |  |
|
|
| Side-EffectsDebugging programs with MON251 has some side-effects: - MON251 can be configured to use the on-chip UART. The target program may use the on-chip UART as long as the UART configuration is not changed. If the serial port, timer, or baud rate configuration are changed, the monitor will lose communication with the µVision Debugger. Characters transmitted by the target appear in the µVision Serial Window. Characters that you enter in this µVision Serial Window are sent to the user application running under MON51. Note that the Stop Program Execution with Serial Interrupt Option must not be checked if your target program uses the serial port.
- MON251 sets breakpoints in your target program by replacing instructions where breakpoints are set with TRAP instructions. If you set a breakpoint on a 2-byte instruction when running in binary mode, the following instruction will also be replaced (because the TRAP instruction is two bytes long when using binary mode). If the following instruction is the target of a branch, the target program may crash.
- You may use the serial interrupt to signal MON251 to halt program execution. If you enable this option, your target program cannot use the on-chip UART.
|
|