<?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: Single Stepping source code stops on wrong line in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472477#M63300</link>
    <description>&lt;P&gt;Are you sure you have not modified your source files after having them compiled?&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jun 2022 13:45:25 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2022-06-11T13:45:25Z</dc:date>
    <item>
      <title>Single Stepping source code stops on wrong line</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472430#M63296</link>
      <description>&lt;P&gt;&lt;U&gt;Running through my source code, I set a breakpoint, but when single stepping after the break the cursor is off three lines of code and stops on blank lines, comments.&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 00:04:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472430#M63296</guid>
      <dc:creator>Frank_Z</dc:creator>
      <dc:date>2022-06-11T00:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Single Stepping source code stops on wrong line</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472477#M63300</link>
      <description>&lt;P&gt;Are you sure you have not modified your source files after having them compiled?&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 13:45:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472477#M63300</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-06-11T13:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Single Stepping source code stops on wrong line</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472513#M63303</link>
      <description>&lt;DIV&gt;I modify the file either in Kinetis or my editor, save and press debug with auto build.&lt;/DIV&gt;&lt;DIV&gt;I have to "Build Project" to get compiled.&lt;/DIV&gt;</description>
      <pubDate>Sun, 12 Jun 2022 17:01:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472513#M63303</guid>
      <dc:creator>Frank_Z</dc:creator>
      <dc:date>2022-06-12T17:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Single Stepping source code stops on wrong line</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472864#M63308</link>
      <description>&lt;P&gt;The compiler optimization level can cause that.&lt;BR /&gt;&lt;BR /&gt;Setting optimization to -O0 to turn it off should fix that problem.&lt;BR /&gt;&lt;BR /&gt;However then you are not truly debugging your production code, nor is it a good idea to run with optimization disabled.&amp;nbsp; That can break some compile-time generated code, it can also cover up problems with missing volatiles or code-motion.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 19:33:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472864#M63308</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2022-06-13T19:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Single Stepping source code stops on wrong line</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472976#M63309</link>
      <description>&lt;P&gt;Not sure that's a solution or temporary bandaid.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 15:12:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1472976#M63309</guid>
      <dc:creator>Frank_Z</dc:creator>
      <dc:date>2022-06-13T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Single Stepping source code stops on wrong line</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1473022#M63310</link>
      <description>&lt;P&gt;Could you share a screenshot of what you are seeing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, if you are using aggressive optimizations, then the compiler might move around code and remove things, so there is no clear indication between source code and generated code. But it should not point to empty lines, or at least I have never seen this. That the current source line jumps around, that is expected if high optimizations are enabled.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 16:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1473022#M63310</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-06-13T16:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Single Stepping source code stops on wrong line</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1473164#M63315</link>
      <description>&lt;P&gt;Apparently my auto-build setting in tripleDemod_Debug_Segger doesn't build the project. I have to do that manually, then debugging works fine.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 22:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1473164#M63315</guid>
      <dc:creator>Frank_Z</dc:creator>
      <dc:date>2022-06-13T22:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Single Stepping source code stops on wrong line</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1473374#M63318</link>
      <description>&lt;P&gt;I'm usually not using that feature, but I checked it on my side: it works as expected.&lt;/P&gt;&lt;P&gt;What I'm using otherwise is the global setting here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErichStyger_0-1655187551866.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183207i3ACAE5BAD3E1B10E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ErichStyger_0-1655187551866.png" alt="ErichStyger_0-1655187551866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you sure you used the correct launch configuration?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 06:19:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-Stepping-source-code-stops-on-wrong-line/m-p/1473374#M63318</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-06-14T06:19:29Z</dc:date>
    </item>
  </channel>
</rss>

