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
  • it would be sufficient to set a breakpoint one a single memory location.

    Could you give me some advice to set such a breakpoint (which will fire if the programm tries to execute / write or read this memory location)?

    Of course I don't want to set a breakpoint anywhere in my code (I also do this regularly). In my situation I will use this method to find the position where my code wrongly writing / reading and so on a memory location.

    best regards
    Alan

Reply
  • it would be sufficient to set a breakpoint one a single memory location.

    Could you give me some advice to set such a breakpoint (which will fire if the programm tries to execute / write or read this memory location)?

    Of course I don't want to set a breakpoint anywhere in my code (I also do this regularly). In my situation I will use this method to find the position where my code wrongly writing / reading and so on a memory location.

    best regards
    Alan

Children