<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>stop debugging if a specific location will be written</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/38506/stop-debugging-if-a-specific-location-will-be-written</link><description> 
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 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: stop debugging if a specific location will be written</title><link>https://community.arm.com/thread/130526?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2009 01:15:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c9fa3850-3883-44b6-bd31-a81904d68c3f</guid><dc:creator>Scott Alan</dc:creator><description>&lt;p&gt;&lt;p&gt;
thank you for your help. It&amp;#39;s working!&lt;/p&gt;

&lt;p&gt;
best regards&lt;br /&gt;
Alan&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stop debugging if a specific location will be written</title><link>https://community.arm.com/thread/125675?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2009 23:28:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:78195d7d-3bad-40ae-978f-b96d9c53bc0f</guid><dc:creator>Robert &amp;#160;</dc:creator><description>&lt;p&gt;&lt;p&gt;
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).&lt;/p&gt;

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

&lt;p&gt;
Example:&lt;br /&gt;
To configure the debugger that the program stops when address
0x20000000 was written: just enter &amp;quot;BS WRITE 0x20000000&amp;quot; into the
command window.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stop debugging if a specific location will be written</title><link>https://community.arm.com/thread/125674?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2009 10:17:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2fdf42e0-763b-45d3-9e49-df7a60fd5ecd</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
see at the bottom of this page:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv3/uv3_dg_breakp.htm"&gt;http://www.keil.com/support/man/docs/uv3/uv3_dg_breakp.htm&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stop debugging if a specific location will be written</title><link>https://community.arm.com/thread/115188?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2009 09:51:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:902968a4-36ec-4ede-8b27-6a17a57cff47</guid><dc:creator>Scott Alan</dc:creator><description>&lt;p&gt;&lt;p&gt;
it would be sufficient to set a breakpoint one a single memory
location.&lt;/p&gt;

&lt;p&gt;
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)?&lt;/p&gt;

&lt;p&gt;
Of course I don&amp;#39;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.&lt;/p&gt;

&lt;p&gt;
best regards&lt;br /&gt;
Alan&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stop debugging if a specific location will be written</title><link>https://community.arm.com/thread/103380?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2009 09:14:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1c4a44f7-9cea-45e8-8675-0924590a9f50</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
as far as I know, it is possible to set a breakpoint on a memory
location (I do that regularly) but not on a range of addressed.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stop debugging if a specific location will be written</title><link>https://community.arm.com/thread/77711?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2009 08:04:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:88f1d4fb-05e1-4ed3-a08a-c46d1f55aae2</guid><dc:creator>Scott Alan</dc:creator><description>&lt;p&gt;&lt;p&gt;
is it only possible to do that in the simulator? It would be great
if there&amp;#39;s an soluation working with the real hardware and the ulink
debugger.&lt;/p&gt;

&lt;p&gt;
best regards&lt;br /&gt;
Alan&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stop debugging if a specific location will be written</title><link>https://community.arm.com/thread/56720?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2009 07:53:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9f22c190-af05-44ca-a93e-8eae43857900</guid><dc:creator>doubt that my ISP Al Bradford</dc:creator><description>&lt;p&gt;&lt;p&gt;
In the simulator, under Debug-&amp;gt;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.&lt;br /&gt;
Check the Debugger manual for more information.&lt;br /&gt;
Bradford&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>