<?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>topic Re: Inserting breakpoints while debugger is running in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inserting-breakpoints-while-debugger-is-running/m-p/573783#M21595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must take quite a bit of time to do that, because I have just discovered that toggling a breakpoint on and off does corrupt my serial IO.&amp;nbsp; Every time.&amp;nbsp; I'll have to rethink my debug methods...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 17:49:50 GMT</pubDate>
    <dc:creator>jdupre</dc:creator>
    <dc:date>2016-07-18T17:49:50Z</dc:date>
    <item>
      <title>Inserting breakpoints while debugger is running</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inserting-breakpoints-while-debugger-is-running/m-p/573781#M21593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re: LPCXpresso 8.1.4_606&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble debugging when inserting or activating breakpoints "live" (while the code is running).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am reading data from a UART and putting it in an array. In normal operation, the values put in the array should never be 0.&amp;nbsp; I have the following debug trap in my code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if (data[0] == 0) {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOP;&amp;nbsp; //#define NOP __asm volatile("nop")&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I put a breakpoint at the NOP before starting the code, the breakpoint is never reached, indicating that the data extracted from the uart is correct.&amp;nbsp; However, if I insert the breakpoint (or activate it by ticking a pre-inserted breakpoint's checkbox) while the code is running, the break is called immediately.&amp;nbsp; When I look at the values in my array, they are all zeros!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the suspend button to stop the code in an arbitrary place, my array is never filled with zeros.&amp;nbsp; The zeros in the array appear to be unique to placing or activating a breakpoint while the code is running.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please explain this behavior? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 00:01:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Inserting-breakpoints-while-debugger-is-running/m-p/573781#M21593</guid>
      <dc:creator>jdupre</dc:creator>
      <dc:date>2016-07-16T00:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting breakpoints while debugger is running</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inserting-breakpoints-while-debugger-is-running/m-p/573782#M21594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;afaik, when inserting a breakpoint 'live' the debugger does this by stopping the cpu, inserting the breakpoint and then restarting (without you seeing it do it!). Would this explain what you are seeing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 10:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Inserting-breakpoints-while-debugger-is-running/m-p/573782#M21594</guid>
      <dc:creator>avt</dc:creator>
      <dc:date>2016-07-16T10:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting breakpoints while debugger is running</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inserting-breakpoints-while-debugger-is-running/m-p/573783#M21595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must take quite a bit of time to do that, because I have just discovered that toggling a breakpoint on and off does corrupt my serial IO.&amp;nbsp; Every time.&amp;nbsp; I'll have to rethink my debug methods...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 17:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Inserting-breakpoints-while-debugger-is-running/m-p/573783#M21595</guid>
      <dc:creator>jdupre</dc:creator>
      <dc:date>2016-07-18T17:49:50Z</dc:date>
    </item>
  </channel>
</rss>

