<?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 How to use C++ in SDK 2.0 Project in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598467#M6083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, I've just started using Kinetis SDK.&lt;/P&gt;&lt;P&gt;I downloaded SDK_2.1_FRDM-KL25Z folder from kex.nxp.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a new project using&lt;/P&gt;&lt;P&gt;File -&amp;gt; Kinetis SDK 2.x Project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However while creating project I was never asked what compiler should be used nor is it&amp;nbsp; C or C++ project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the source folder there is a following code:&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;#include &amp;lt;string.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "board.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "clock_config.h"&lt;BR /&gt;/*#include "fsl_debug_console.h"*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* FreeRTOS kernel includes. */&lt;BR /&gt;#include "FreeRTOS.h"&lt;BR /&gt;#include "task.h"&lt;BR /&gt;#include "queue.h"&lt;BR /&gt;#include "timers.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Task priorities. */&lt;BR /&gt;#define hello_task_PRIORITY (configMAX_PRIORITIES - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt;&amp;nbsp;* @brief Task responsible for printing of "Hello world." message.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;static void hello_task(void *pvParameters) {&lt;BR /&gt;&amp;nbsp; for (;;) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*PRINTF("Hello world.\r\n");*/&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Add your code here */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTaskSuspend(NULL);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt;&amp;nbsp;* @brief Application entry point.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;int main(void) {&lt;BR /&gt;&amp;nbsp; /* Init board hardware. */&lt;BR /&gt;&amp;nbsp; BOARD_InitPins();&lt;BR /&gt;&amp;nbsp; BOARD_BootClockRUN();&lt;BR /&gt;&amp;nbsp; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Add your code here */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Create RTOS task */&lt;BR /&gt;&amp;nbsp; xTaskCreate(hello_task, "Hello_task", configMINIMAL_STACK_SIZE, NULL, hello_task_PRIORITY, NULL);&lt;BR /&gt;&amp;nbsp; vTaskStartScheduler();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;) { /* Infinite loop to avoid leaving the main function */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm("NOP"); /* something to use as a breakpoint stop while looping */&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After trying the build the project from&lt;/P&gt;&lt;P&gt;Project -&amp;gt; Build all I get the following error (in the picture attached)&lt;/P&gt;&lt;P&gt;Also If I try to run the program it says that 'Binary could not be found'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really not familiar with eclipse so if someone could help me I am stuck with googleing whole day this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Big thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Mar 2017 20:33:13 GMT</pubDate>
    <dc:creator>simplethings</dc:creator>
    <dc:date>2017-03-19T20:33:13Z</dc:date>
    <item>
      <title>How to use C++ in SDK 2.0 Project</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598467#M6083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, I've just started using Kinetis SDK.&lt;/P&gt;&lt;P&gt;I downloaded SDK_2.1_FRDM-KL25Z folder from kex.nxp.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a new project using&lt;/P&gt;&lt;P&gt;File -&amp;gt; Kinetis SDK 2.x Project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However while creating project I was never asked what compiler should be used nor is it&amp;nbsp; C or C++ project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the source folder there is a following code:&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;#include &amp;lt;string.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "board.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "clock_config.h"&lt;BR /&gt;/*#include "fsl_debug_console.h"*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* FreeRTOS kernel includes. */&lt;BR /&gt;#include "FreeRTOS.h"&lt;BR /&gt;#include "task.h"&lt;BR /&gt;#include "queue.h"&lt;BR /&gt;#include "timers.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Task priorities. */&lt;BR /&gt;#define hello_task_PRIORITY (configMAX_PRIORITIES - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt;&amp;nbsp;* @brief Task responsible for printing of "Hello world." message.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;static void hello_task(void *pvParameters) {&lt;BR /&gt;&amp;nbsp; for (;;) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*PRINTF("Hello world.\r\n");*/&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Add your code here */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTaskSuspend(NULL);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt;&amp;nbsp;* @brief Application entry point.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;int main(void) {&lt;BR /&gt;&amp;nbsp; /* Init board hardware. */&lt;BR /&gt;&amp;nbsp; BOARD_InitPins();&lt;BR /&gt;&amp;nbsp; BOARD_BootClockRUN();&lt;BR /&gt;&amp;nbsp; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Add your code here */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Create RTOS task */&lt;BR /&gt;&amp;nbsp; xTaskCreate(hello_task, "Hello_task", configMINIMAL_STACK_SIZE, NULL, hello_task_PRIORITY, NULL);&lt;BR /&gt;&amp;nbsp; vTaskStartScheduler();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;) { /* Infinite loop to avoid leaving the main function */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm("NOP"); /* something to use as a breakpoint stop while looping */&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After trying the build the project from&lt;/P&gt;&lt;P&gt;Project -&amp;gt; Build all I get the following error (in the picture attached)&lt;/P&gt;&lt;P&gt;Also If I try to run the program it says that 'Binary could not be found'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really not familiar with eclipse so if someone could help me I am stuck with googleing whole day this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Big thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Mar 2017 20:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598467#M6083</guid>
      <dc:creator>simplethings</dc:creator>
      <dc:date>2017-03-19T20:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use C++ in SDK 2.0 Project</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598468#M6084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;[url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fpostimg.org%2Fimage%2Fgrdbldxl1%2F%5D%5Bimg%5Dhttps%3A%2F%2Fs18.postimg.org%2Fgrdbldxl1%2Fstep_1.jpg%5B%2Fimg%5D%5B%2Furl" rel="nofollow" target="_blank"&gt;https://postimg.org/image/grdbldxl1/][img]https://s18.postimg.org/grdbldxl1/step_1.jpg[/img][/url&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fpostimg.org%2Fimage%2F472hohe1p%2F%5D%5Bimg%5Dhttps%3A%2F%2Fs30.postimg.org%2F472hohe1p%2Fkinetis_error.jpg%5B%2Fimg%5D%5B%2Furl" rel="nofollow" target="_blank"&gt;https://postimg.org/image/472hohe1p/][img]https://s30.postimg.org/472hohe1p/kinetis_error.jpg[/img][/url&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Mar 2017 20:46:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598468#M6084</guid>
      <dc:creator>simplethings</dc:creator>
      <dc:date>2017-03-19T20:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use C++ in SDK 2.0 Project</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598469#M6085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fsa saf,&lt;/P&gt;&lt;P&gt;I suppose the question is related to KDS - there is separate community for the tool: &lt;A _jive_internal="true" href="https://community.nxp.com/community/kinetis/kinetis-design-studio"&gt;https://community.nxp.com/community/kinetis/kinetis-design-studio&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your question:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to File - New - C++ Project&lt;/LI&gt;&lt;LI&gt;Enter Project Name&lt;/LI&gt;&lt;LI&gt;Select Executable - Kinetis Project for SDK 2.x&lt;/LI&gt;&lt;LI&gt;Continue as in your previous step&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compiler is used based on the file extension - *.c files are compiled using C compiler and *.cpp files are compiled using CPP compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 07:44:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598469#M6085</guid>
      <dc:creator>MarekTrmac</dc:creator>
      <dc:date>2017-03-21T07:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use C++ in SDK 2.0 Project</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598470#M6086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I followed your steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fpostimg.org%2Fimage%2Foqjap7w53%2F%5D%5Bimg%5Dhttps%3A%2F%2Fs23.postimg.org%2Foqjap7w53%2FCPP_Kinetis.jpg%5B%2Fimg%5D%5B%2Furl" rel="nofollow" target="_blank"&gt;https://postimg.org/image/oqjap7w53/][img]https://s23.postimg.org/oqjap7w53/CPP_Kinetis.jpg[/img][/url&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also regarding link you provided I am getting the following message:&lt;/P&gt;&lt;H1&gt;Unauthorized&lt;/H1&gt;&lt;P&gt;This place or content does not exist or access to it is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 20:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598470#M6086</guid>
      <dc:creator>simplethings</dc:creator>
      <dc:date>2017-03-22T20:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use C++ in SDK 2.0 Project</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598471#M6087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error I get following your steps: Binary not found&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 20:33:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-C-in-SDK-2-0-Project/m-p/598471#M6087</guid>
      <dc:creator>simplethings</dc:creator>
      <dc:date>2017-03-22T20:33:38Z</dc:date>
    </item>
  </channel>
</rss>

