<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPCXpresso IDEのトピックdebug problems lpc1225</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-problems-lpc1225/m-p/580470#M24556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Roman on Mon Jun 20 01:05:22 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started some project with LPC1225 and I have some strange problems with debugging &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the firmware since the j-link was unable to halt the cpu. At first I thought it might &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be the watchdog (on LPC1225 it is started by default) but after I modified the respective &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scripts to disable it at start time the problem remained.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After series of test applications I have noticed that everything is working correctly as long as the application &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is only a simple series of commands without any endless loop. When I add some loop e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
while (1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; check_inputs();
&amp;nbsp;&amp;nbsp;&amp;nbsp; do_stuff();
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;the debugger is unable to halt the cpu. It is however possible to download the application &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and to use the halt cpu after some time. But I am unable to debug my application from the start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One time just to verify this "loop theory" I have added empty loop and after that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was not able to connect at all (only ISP erase helped).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Had anyone similar problems? Can I do something or set something or there is no help when there are loops involved... &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:34:05 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:34:05Z</dc:date>
    <item>
      <title>debug problems lpc1225</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-problems-lpc1225/m-p/580470#M24556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Roman on Mon Jun 20 01:05:22 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started some project with LPC1225 and I have some strange problems with debugging &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the firmware since the j-link was unable to halt the cpu. At first I thought it might &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be the watchdog (on LPC1225 it is started by default) but after I modified the respective &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scripts to disable it at start time the problem remained.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After series of test applications I have noticed that everything is working correctly as long as the application &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is only a simple series of commands without any endless loop. When I add some loop e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
while (1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; check_inputs();
&amp;nbsp;&amp;nbsp;&amp;nbsp; do_stuff();
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;the debugger is unable to halt the cpu. It is however possible to download the application &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and to use the halt cpu after some time. But I am unable to debug my application from the start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One time just to verify this "loop theory" I have added empty loop and after that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was not able to connect at all (only ISP erase helped).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Had anyone similar problems? Can I do something or set something or there is no help when there are loops involved... &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-problems-lpc1225/m-p/580470#M24556</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:34:05Z</dc:date>
    </item>
  </channel>
</rss>

