This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

stop debugging if a specific location will be written

Hi,

is it possible (working with MDK version 3.4) to tell the debugger, if a part of the code (e.g. sdram addr 0x20000100) will be written by the program code, the debugger should stop at this command?

best regards
Alan

Parents
  • Breakpoints on memory access or so called watchpoints can be used to stop the program execution after the memory access occurred. Number and types of watchpoints depends on the core (ARM7/9, Cortex-M).

    Breakpoints/watchpoints can be configured in the debugger from the command window with BS command (http://www.keil.com/support/man/docs/uv3/uv3_cm_breakset.htm) or from the Debug\Breakpoints dialog. Debug symbols can be used or memory addresses can be specified directly.

    Example:
    To configure the debugger that the program stops when address 0x20000000 was written: just enter "BS WRITE 0x20000000" into the command window.

Reply
  • Breakpoints on memory access or so called watchpoints can be used to stop the program execution after the memory access occurred. Number and types of watchpoints depends on the core (ARM7/9, Cortex-M).

    Breakpoints/watchpoints can be configured in the debugger from the command window with BS command (http://www.keil.com/support/man/docs/uv3/uv3_cm_breakset.htm) or from the Debug\Breakpoints dialog. Debug symbols can be used or memory addresses can be specified directly.

    Example:
    To configure the debugger that the program stops when address 0x20000000 was written: just enter "BS WRITE 0x20000000" into the command window.

Children