<?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 with 7.6.2: single-step jumps erratically</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-with-7-6-2-single-step-jumps-erratically/m-p/546392#M9666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mch0 on Tue Feb 17 10:34:38 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently updated to 7.6.2 (full license).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I'm seeing a very strange behaviour of the Debugger:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using "step into" (F5) the location of the current line (to be executed next) shown in the source file jumps erratically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Up to the last version (7.5.x) this never happened and I did not change the project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OS: Win8.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probe: LPCLink2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Target: LPC4330&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Access method: JTAG&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have repeatedly cleaned up the project and recompiled to make as sure as I can that the symbol table and whatever other information may be used to correlate the source files to the binary are up to date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The effect is always the same:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Program is downloaded to RAM (OK)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Debugger stops exection at Reset-ISR (OK)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Next BP is main, stops there (OK)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I begin to "step into" with F5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The next BP I would expect to be set on the first line of the called function (body).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example: I "step into" nm06_init();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That function looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void nm06_init(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nm06_init_clocks(24000000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nm06_init_pins();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. After F5 the BP (as shown in the source window) is on the second line: nm06_init_pins() (NOT OK);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. The next F5 dives into that function, this time at least correctly to the first body line (OK).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6. The next F5 all of a sudden jumps back to the calling function, this time the first line: nm06_init_clocks(24000000) (NOT OK);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;7. The next F5 goes to the second line, as in step 4 (NOT OK, no step-in)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Next F5 goes to the second line of that function (like a continuation of step 5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;9: Next F5: back to the caller, line 1, like step 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;10: Next F5 dives now into that function (as expected)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The breakpoints as shown in the source window continue to jump back and forth the same way as described above. It does "progress", however in this way through the program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the feeling that something is out of sync.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However I have no idea what to do, since cleaning/recompiling everything does not seem to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The target program does work, BTW.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, debugging is obviously impossible this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could I do to get it in working order again?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:54:19 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:54:19Z</dc:date>
    <item>
      <title>Debug with 7.6.2: single-step jumps erratically</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-with-7-6-2-single-step-jumps-erratically/m-p/546392#M9666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mch0 on Tue Feb 17 10:34:38 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently updated to 7.6.2 (full license).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I'm seeing a very strange behaviour of the Debugger:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using "step into" (F5) the location of the current line (to be executed next) shown in the source file jumps erratically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Up to the last version (7.5.x) this never happened and I did not change the project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OS: Win8.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probe: LPCLink2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Target: LPC4330&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Access method: JTAG&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have repeatedly cleaned up the project and recompiled to make as sure as I can that the symbol table and whatever other information may be used to correlate the source files to the binary are up to date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The effect is always the same:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Program is downloaded to RAM (OK)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Debugger stops exection at Reset-ISR (OK)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Next BP is main, stops there (OK)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I begin to "step into" with F5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The next BP I would expect to be set on the first line of the called function (body).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example: I "step into" nm06_init();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That function looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void nm06_init(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nm06_init_clocks(24000000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nm06_init_pins();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. After F5 the BP (as shown in the source window) is on the second line: nm06_init_pins() (NOT OK);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. The next F5 dives into that function, this time at least correctly to the first body line (OK).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6. The next F5 all of a sudden jumps back to the calling function, this time the first line: nm06_init_clocks(24000000) (NOT OK);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;7. The next F5 goes to the second line, as in step 4 (NOT OK, no step-in)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Next F5 goes to the second line of that function (like a continuation of step 5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;9: Next F5: back to the caller, line 1, like step 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;10: Next F5 dives now into that function (as expected)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The breakpoints as shown in the source window continue to jump back and forth the same way as described above. It does "progress", however in this way through the program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the feeling that something is out of sync.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However I have no idea what to do, since cleaning/recompiling everything does not seem to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The target program does work, BTW.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, debugging is obviously impossible this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could I do to get it in working order again?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-with-7-6-2-single-step-jumps-erratically/m-p/546392#M9666</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Debug with 7.6.2: single-step jumps erratically</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-with-7-6-2-single-step-jumps-erratically/m-p/546393#M9667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Feb 17 11:11:34 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mch0&lt;/STRONG&gt;&lt;BR /&gt;What could I do to get it in working order again?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which optimization are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fcompiler-optimization" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/compiler-optimization&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you try to use Instruction Stepping?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fdisassembly-view" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/disassembly-view&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-with-7-6-2-single-step-jumps-erratically/m-p/546393#M9667</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debug with 7.6.2: single-step jumps erratically</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-with-7-6-2-single-step-jumps-erratically/m-p/546394#M9668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mch0 on Tue Feb 17 12:07:45 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using O3 (on that project) and set it back to Og.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Debugging now seems to behave as expected again on a very short test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(I normally to not use any optimization during development, don't know when I set that to level 3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Either it was something that happened during the update from 7.5.x to 7.6.2 or I had in on before and the new tool chain transforms the code in a new way with O3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm really relieved now, even de- and reinstalled 7.6.2 to no avail before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-with-7-6-2-single-step-jumps-erratically/m-p/546394#M9668</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:54:20Z</dc:date>
    </item>
  </channel>
</rss>

