<?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>Processor Expert Software中的主题 Re: How do you force PEx to be totally C++ compatible?</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456750#M3693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dave,&lt;/P&gt;&lt;P&gt;The Processor Expert does not support generating C++ code (.cpp program modules). There is not any C++ options.&lt;/P&gt;&lt;P&gt;But you can use the generated code in your C++ applications (the generated code of drivers should be C++ compatible). See the following links for details (workarounds):&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-content-finding="Community" href="https://community.nxp.com/message/316648#316648"&gt;Use of Processor expert for a CPP project - Issue&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/10/04/processor-expert-gcc-c-and-kinetis-l-and-mqxlite/" title="http://mcuoneclipse.com/2012/10/04/processor-expert-gcc-c-and-kinetis-l-and-mqxlite/"&gt;Processor Expert, gcc C++ and Kinetis-L with MQXLite | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 11:29:53 GMT</pubDate>
    <dc:creator>marek_neuzil</dc:creator>
    <dc:date>2015-05-27T11:29:53Z</dc:date>
    <item>
      <title>How do you force PEx to be totally C++ compatible?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456749#M3692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that KSDK 1.2 is supposedly C++ compatible, I'd like to move my applications to C++.&amp;nbsp; However, every time I generate code in PEx, it creates a C file instead of a CPP.&amp;nbsp; Is there a setting somewhere?&amp;nbsp; I've been looking around for any setting that might tell PEx that I want to make a C++ project, but I can't find one.&amp;nbsp; For example, this is all I see in Project Settings -&amp;gt; Processor Expert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30875i1BB327770A27A3AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't really ever mixed C and C++ before.&amp;nbsp; I am entirely in one language or the other.&amp;nbsp; I would think that *everything* has to change, not just main.&amp;nbsp; Since my tasks are intended to communicate with hardware via classes that I define, and since the tasks need to then be written in C++, that means all code that PEx generates (except the FSL HAL/DRV code) like MQX tasks also need to be generated as C++.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone here successfully created a KSDK/MQX/PEx C++ project that they can share as an example?&amp;nbsp; There isn't anything like this in the installed demos and examples.&amp;nbsp; I did find this post here &lt;A href="https://community.nxp.com/docs/DOC-101405"&gt;Creating a new MQX project using GCC C++&lt;/A&gt; that specifically talks about MQX and CodeWarrior, and I found the BSPCFG_ENABLE_CPP #define and changed it, but it didn't seem to change anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 16:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456749#M3692</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-05-22T16:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you force PEx to be totally C++ compatible?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456750#M3693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dave,&lt;/P&gt;&lt;P&gt;The Processor Expert does not support generating C++ code (.cpp program modules). There is not any C++ options.&lt;/P&gt;&lt;P&gt;But you can use the generated code in your C++ applications (the generated code of drivers should be C++ compatible). See the following links for details (workarounds):&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-content-finding="Community" href="https://community.nxp.com/message/316648#316648"&gt;Use of Processor expert for a CPP project - Issue&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/10/04/processor-expert-gcc-c-and-kinetis-l-and-mqxlite/" title="http://mcuoneclipse.com/2012/10/04/processor-expert-gcc-c-and-kinetis-l-and-mqxlite/"&gt;Processor Expert, gcc C++ and Kinetis-L with MQXLite | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456750#M3693</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-05-27T11:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you force PEx to be totally C++ compatible?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456751#M3694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek, thank you for your response.&amp;nbsp; I am okay with PEx not generating CPP files.&amp;nbsp; The plan is to just write C++ wrappers.&amp;nbsp; My main issue is specifically with MQX, and how I can enable my main.cpp to start MQX properly.&amp;nbsp; I suppose the correct approach is to define as many tasks upfront as I believe are required (and maybe a couple of extra), then use PEx to generate the code, then do the MQX-specific instructions that &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/BlackNight"&gt;BlackNight&lt;/A&gt;​ has recommended in the post you linked to (especially disabling of code generation).&amp;nbsp; Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, would you mind taking a peek at my other question, which you had assisted me with in the past?&amp;nbsp; I am having trouble figuring out where my problem is.&amp;nbsp; &lt;A href="https://community.nxp.com/message/518277"&gt;lwIP project that was working in KDS 2.0 with MQX and PEx no longer works in KDS 3.0&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 14:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456751#M3694</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-05-27T14:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you force PEx to be totally C++ compatible?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456752#M3695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Through experimentation, it looks like you do not need to jump through the same hoops as described by past posts.&amp;nbsp; I believe it boils down to renaming main.c and os_tasks.c, then regenerating code and then excluding those same .c files from the build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105449"&gt;Transitioning to C++ with KDS, KSDK, and Processor Expert&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 16:27:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-do-you-force-PEx-to-be-totally-C-compatible/m-p/456752#M3695</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-06-06T16:27:31Z</dc:date>
    </item>
  </channel>
</rss>

