<?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: Throw ends in abort on new blank frdm22f project (+ malloc/new ) in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633283#M8143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a simple demo about use try() catch()&amp;nbsp; , you can copy the application code&lt;/P&gt;&lt;P&gt;into a new K22 project to have a try.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/357288"&gt;How to use " try  catch() " of C++ on KDS 3.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please pay attention that remove --specs=nano.specs from the linker options,&lt;/P&gt;&lt;P&gt;because newlib-nano have exception handling disabled .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2986iE2B9DD36CC8A42E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Dec 2016 08:35:53 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-12-26T08:35:53Z</dc:date>
    <item>
      <title>Throw ends in abort on new blank frdm22f project (+ malloc/new )</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633280#M8140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem:&amp;nbsp;&lt;BR /&gt;`try{throw 4;} catch(...){}` ends in std::terminate()-&amp;gt;_exit() on a new created frdmk22f project. Even if an own malloc and new is implemented (which is used even for `throw 4;` for about 130 bytes BTW). Yes, the "noexceptions" optimizer check box is NOT checked.&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also uploaded the minimal example on github:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FSuperlokkus%2Fminimal_kinetis_throw_example" rel="nofollow" target="_blank"&gt;GitHub - Superlokkus/minimal_kinetis_throw_example&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what do I have to do, to use C++ exceptions? Shouldn't this be documented anywhere if exceptions are not supported out of the box?!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a minimized example of my similar problem&amp;nbsp;&lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="434650" data-objecttype="1" href="https://community.nxp.com/thread/434650"&gt;using c++ exceptions with freertos&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Kinetis Design Sutdio 3.2.0&lt;/P&gt;&lt;P&gt;KSDK 1.3.0&lt;BR /&gt;FRDM-K22F Rev:A1&lt;/P&gt;&lt;P&gt;(GNU Tools for ARM Embedded Processors) 4.8.4 20140725 (release) [ARM/embedded-4_8-branch revision 213147]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633280#M8140</guid>
      <dc:creator>markusklemm</dc:creator>
      <dc:date>2016-12-21T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Throw ends in abort on new blank frdm22f project (+ malloc/new )</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633281#M8141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does these linker can helps?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.cplusplus.com/doc/tutorial/exceptions/" title="http://www.cplusplus.com/doc/tutorial/exceptions/"&gt;Exceptions - C++ Tutorials&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.cplusplus.com/reference/exception/exception/" title="http://www.cplusplus.com/reference/exception/exception/"&gt;exception - C++ Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They introduce the Standard exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 08:32:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633281#M8141</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-22T08:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Throw ends in abort on new blank frdm22f project (+ malloc/new )</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633282#M8142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice_Yang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this question is around the problem that the implementation NXP&amp;nbsp;gives us, seems to be not able to catch any exceptions, not that I'm new to exceptions or don't know to use them, so I'm sorry no, the the top google links you throw at me, doesn't help me. It's also not relevant if the object thrown is inherited from std::exception since catch(...) is supposed to catch anything. Besides, the implementation also shows the same behavior to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have nice holidays&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus Klemm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 01:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633282#M8142</guid>
      <dc:creator>superlokkus</dc:creator>
      <dc:date>2016-12-25T01:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Throw ends in abort on new blank frdm22f project (+ malloc/new )</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633283#M8143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a simple demo about use try() catch()&amp;nbsp; , you can copy the application code&lt;/P&gt;&lt;P&gt;into a new K22 project to have a try.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/357288"&gt;How to use " try  catch() " of C++ on KDS 3.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please pay attention that remove --specs=nano.specs from the linker options,&lt;/P&gt;&lt;P&gt;because newlib-nano have exception handling disabled .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2986iE2B9DD36CC8A42E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 08:35:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633283#M8143</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-26T08:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Throw ends in abort on new blank frdm22f project (+ malloc/new )</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633284#M8144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alice_Yang I quite sure this is the solution.&lt;/P&gt;&lt;P&gt;But I must say I am pissed towards NXP:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please pay attention that remove --specs=nano.specs from the linker options,&lt;/P&gt;&lt;P&gt;because newlib-nano have exception handling disabled&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;how was I supposed to know, I never read this in the documentation from nxp anywhere, which of course says something like "Here is our C++11 implementation for our MCUs" but should be corrected to "Here is our somehow C++11 implementation which differs from the standard somehow, but we don't say you where and how, happy debugging!"&lt;BR /&gt;&lt;BR /&gt;As always have nice holidays Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 15:29:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633284#M8144</guid>
      <dc:creator>superlokkus</dc:creator>
      <dc:date>2016-12-26T15:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Throw ends in abort on new blank frdm22f project (+ malloc/new )</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633285#M8145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Markus,&lt;/P&gt;&lt;P&gt;I understand your mood , sorry for the inconvenient to you.&lt;/P&gt;&lt;P&gt;As you know the KDS use the GUN ARM Embedded Toolchain,&lt;/P&gt;&lt;P&gt;it includes many lib. And we may use many functions when development&lt;/P&gt;&lt;P&gt;proeject on KDS,&amp;nbsp; so it hard to introduce all of that on User Guide.&lt;/P&gt;&lt;P&gt;So we can only check the we use which lib , then find what about the lib.&lt;/P&gt;&lt;P&gt;Or of course we are glad to you ask NXP support .&lt;/P&gt;&lt;P&gt;You can also search your problem on community , maybe someone else have&lt;/P&gt;&lt;P&gt;the same question , and have got the answer . If not , please contact us without&lt;/P&gt;&lt;P&gt;any hesitate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are in Christmas,&amp;nbsp; While in my country , we don't have holidays at Christmas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy holidays ! &lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 04:03:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633285#M8145</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-27T04:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Throw ends in abort on new blank frdm22f project (+ malloc/new )</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633286#M8146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today I was able to check on our boards, and it actually fixed the problem! Thanks again Alice_Yang a million times.&lt;BR /&gt;&lt;BR /&gt;Of course I can relate to your position, often as a user you have to be aware of the gcc toolchain. But since the toolchain also comes in many flavors and has so much compilation and linking options, it's very hard to see all that in the complex kinetis product. So I would propose, that even an intermediate programmer would understand a "This is a C++11 solution, with compliance exceptions found in chapter x".&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 13:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Throw-ends-in-abort-on-new-blank-frdm22f-project-malloc-new/m-p/633286#M8146</guid>
      <dc:creator>markusklemm</dc:creator>
      <dc:date>2017-01-03T13:08:59Z</dc:date>
    </item>
  </channel>
</rss>

