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
  • In the simulator, under Debug->Memory Map, you can set a range of memory and enable/disable a read or write or execute option. In your case set the memory range and enable only execute or read. When an attempt to write to the selected memory range occurs, an exception will be thrown and the debugger will stop.
    Check the Debugger manual for more information.
    Bradford

Reply
  • In the simulator, under Debug->Memory Map, you can set a range of memory and enable/disable a read or write or execute option. In your case set the memory range and enable only execute or read. When an attempt to write to the selected memory range occurs, an exception will be thrown and the debugger will stop.
    Check the Debugger manual for more information.
    Bradford

Children