<?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>How to enable Interrupt in single Step Debugging</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27751/how-to-enable-interrupt-in-single-step-debugging</link><description> 
Hello Keil community, 

 
I have an Atmel AT91SAM7x256 board with selfmade assembly startup
code. For testing I had connect a simple switch at PioB to enter the
external Interrupt. In simulation mode I can enter the IRQ_Hanlder in
single steps without</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: How to enable Interrupt in single Step Debugging</title><link>https://community.arm.com/thread/136625?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2011 23:01:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bee38cbc-e66c-42ab-bc35-026892b0e1d8</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
It is &lt;i&gt;&lt;b&gt;not&lt;/b&gt;&lt;/i&gt; a problem with Keil!&lt;/p&gt;

&lt;p&gt;
The problem, as has already been explained, is that you would
somehow have to sychronise the external stimulus to
&lt;i&gt;&lt;b&gt;exactly&lt;/b&gt;&lt;/i&gt; the correct moment after you pressed the &amp;#39;Step&amp;#39;
button so that the &lt;b&gt;target &lt;i&gt;hardware&lt;/i&gt;&lt;/b&gt; would see it in the
moment that it is actually running.&lt;/p&gt;

&lt;p&gt;
Since you can&amp;#39;t time your finger pressing a button to anything
better than about 500ms precision, it should be obvious that this is
virtually impossible!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable Interrupt in single Step Debugging</title><link>https://community.arm.com/thread/127155?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2011 13:17:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:449ac1f3-fdb6-4358-b25a-99692f76db44</guid><dc:creator>norman s.</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;acute;s too bad to enter the IRQ only in run mode, althought
the external Interrupt switch is set all the time between 2 single
Steps. But when it is the only way I must set hardware breakpoints.
Maybe Keil can fix the problem in one of the next software
versions.&lt;/p&gt;

&lt;p&gt;
Many thanks for your help :-)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable Interrupt in single Step Debugging</title><link>https://community.arm.com/thread/119508?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2011 05:34:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a76d77ab-ad01-4cd9-9ce0-dd954dcb862a</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
That is the normal way to do it, i.e. to have breakpoints inside
the relevant interrupt handler, and then have the processor run
full-speed until it hits an interrupt.&lt;/p&gt;

&lt;p&gt;
Single-stepping everything is a concept that normally never works
for real hardware, since the outside world do not slow down to a
similar pace as the single-stepped program progresses.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable Interrupt in single Step Debugging</title><link>https://community.arm.com/thread/105365?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2011 17:50:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f0f7210e-2871-4f55-9c13-fc4eb43cc7c6</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
Maybe:&lt;/p&gt;

&lt;p&gt;
1. Set a breakpoint &lt;b&gt;right at the beginning&lt;/b&gt; of the
IRQ_Handler.&lt;br /&gt;
2. Run the firmware, and wait.&lt;br /&gt;
3. Trigger a correct interrupt for that IRQ_Handler.&lt;br /&gt;
4. The firmware stops at the beginning of that IRQ_Handler.&lt;br /&gt;
5. Now, you are in the single step mode with a triggered
interrupt.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable Interrupt in single Step Debugging</title><link>https://community.arm.com/thread/79647?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2011 09:02:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:287133f3-2723-4282-9bd5-d24e833dca19</guid><dc:creator>norman s.</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes but is very important to know how I can enable the IRQ in
signle stepping mode. To set brakpoints ist not very helpful for me,
becaus I want to programm the serial IRQ_Handler and two breakpoints
is not enough. At the other answer he said that ist possible but very
difficult. Did any one know how wich parameter or &amp;micro;P register I
must write to enable IRQ in single step mode?&lt;/p&gt;

&lt;p&gt;
best regards&lt;/p&gt;

&lt;p&gt;
Norman&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable Interrupt in single Step Debugging</title><link>https://community.arm.com/thread/59913?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2011 19:59:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:55e7ffdc-6101-4e1f-8ee3-7229d9f557a8</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
Duplicate and Answered.&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/forum/19663/"&gt;http://www.keil.com/forum/19663/&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>