<?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: Open source tool-chain fails on single-stepping, but all right for running in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Open-source-tool-chain-fails-on-single-stepping-but-all-right/m-p/233553#M5287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I encountered a similar problem while using the GNU ARM compiler. The problems seems to be that some optimizations like "-O1" deactivate the generation of frame pointers which are used for debuggin. Try to add "-fno-omit-frame-pointer" to the compiler flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 11:00:27 GMT</pubDate>
    <dc:creator>thomasgrieger</dc:creator>
    <dc:date>2013-09-16T11:00:27Z</dc:date>
    <item>
      <title>Open source tool-chain fails on single-stepping, but all right for running</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Open-source-tool-chain-fails-on-single-stepping-but-all-right/m-p/233552#M5286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying my best to port WIRING/Arduino API to FRDM-KL25Z and my new board called GAP. As part of open source operation, I must use open source toolchain: GNU C++ / eclipse IDE / PEmicro gdbserver (free but not open source)/ FRDM-KL25Z.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The setup procedure is a little complex, please check this blog : &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fmcuoneclipse.com%2F2013%2F07%2F21%2Fdiy-free-toolchain-for-kinetis-part-2-eclipse-ide%2F" rel="nofollow" target="_blank"&gt;DIY Free Toolchain for Kinetis: Part 2 – Eclipse IDE | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The debugger works well until I try to access (single step into) a public method of an object. The debugger and eclipse report some errors of "reading 0x....." and stop debugging.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I though maybe my implementation of C++ is wrong? So I use LED indicator in different methods. for example, method1() is RED blinks, method2() is GRN blinks, method3() is BLU blinks. It works. But debugging still fails. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For people who is interested in open source, I attached my project. Maybe you guys have the answer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked source code of Arduino/WIRING, porting is straight forward. I hope to delivery first version (with simple USB applications) before long.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337626"&gt;LED_Blink_DemoCPP_Debugging_V1.1.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 09:32:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Open-source-tool-chain-fails-on-single-stepping-but-all-right/m-p/233552#M5286</guid>
      <dc:creator>kai_liu</dc:creator>
      <dc:date>2013-09-16T09:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Open source tool-chain fails on single-stepping, but all right for running</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Open-source-tool-chain-fails-on-single-stepping-but-all-right/m-p/233553#M5287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I encountered a similar problem while using the GNU ARM compiler. The problems seems to be that some optimizations like "-O1" deactivate the generation of frame pointers which are used for debuggin. Try to add "-fno-omit-frame-pointer" to the compiler flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 11:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Open-source-tool-chain-fails-on-single-stepping-but-all-right/m-p/233553#M5287</guid>
      <dc:creator>thomasgrieger</dc:creator>
      <dc:date>2013-09-16T11:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Open source tool-chain fails on single-stepping, but all right for running</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Open-source-tool-chain-fails-on-single-stepping-but-all-right/m-p/233554#M5288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using "O0", which means no optimization, it should be suitable for debug. For the other option, I will have a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours sincerely&lt;/P&gt;&lt;P&gt;Allan K Liu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 13:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Open-source-tool-chain-fails-on-single-stepping-but-all-right/m-p/233554#M5288</guid>
      <dc:creator>kai_liu</dc:creator>
      <dc:date>2013-09-16T13:31:50Z</dc:date>
    </item>
  </channel>
</rss>

