<?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: lpc54628 keil optimization problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1299689#M45684</link>
    <description>&lt;P&gt;Most likely a problem in your code. See this FAQ and read the section on Optimised code fails to execute correctly (although written for gcc, the same advice applies).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Compiler-Optimization/m-p/468819" target="_blank"&gt;https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Compiler-Optimization/m-p/468819&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 12:34:47 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2021-06-29T12:34:47Z</dc:date>
    <item>
      <title>lpc54628 keil optimization problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1299650#M45683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have lpc54628 development board. i am developing code over it. So my problem is about optimization.&lt;/P&gt;&lt;P&gt;Using keil software to write code. But there are very big problem. Without optimization, the codes doesnt work. But when i opened optmization, on the debugger jumps another location that is not in my code sequence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i attached my settings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am working firsty arm compiler 6. i dont know what can i do about this? any help please.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 11:09:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1299650#M45683</guid>
      <dc:creator>omeraygor</dc:creator>
      <dc:date>2021-06-29T11:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54628 keil optimization problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1299689#M45684</link>
      <description>&lt;P&gt;Most likely a problem in your code. See this FAQ and read the section on Optimised code fails to execute correctly (although written for gcc, the same advice applies).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Compiler-Optimization/m-p/468819" target="_blank"&gt;https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Compiler-Optimization/m-p/468819&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 12:34:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1299689#M45684</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2021-06-29T12:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54628 keil optimization problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1300124#M45689</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; But when i opened optmization, on the debugger jumps another location that is not in my code sequence.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is a common effect with optimized code. There is no one-to-one relation between C source lines and assembler instructions anymore, and lines or variables are removed (optimized out). Don't get confused with single-stepping your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;First check if the code behaves correctly, i.e. according to your intended functionality.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If not, you might need to rework your code, as Converse suggested.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 05:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1300124#M45689</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-06-30T05:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54628 keil optimization problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1317255#M46046</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thanks your advice. i am checking code again. same of code is working good and debugging correctly. can be about header files?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 09:36:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1317255#M46046</guid>
      <dc:creator>omeraygor</dc:creator>
      <dc:date>2021-08-03T09:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54628 keil optimization problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1317453#M46049</link>
      <description>&lt;P&gt;No, it is not header files. Most common reasons (but not the only possibilities) are&lt;/P&gt;&lt;P&gt;- not using the volatile keyword on a variable that is modified on mainline code and interrupt handler&lt;/P&gt;&lt;P&gt;- using a delay loop (e.g. for(int i=0; i&amp;lt;1000; i++) &lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt; that gets optimised away&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 15:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54628-keil-optimization-problem/m-p/1317453#M46049</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2021-08-03T15:20:27Z</dc:date>
    </item>
  </channel>
</rss>

