<?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>MCUXpresso GeneralのトピックRe: Getting started with a Kinetics K64 C++ project</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927774#M2147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Omar,&lt;/P&gt;&lt;P&gt;thx for your answer. I'll have a look and try to figure out the problem :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2019 10:53:27 GMT</pubDate>
    <dc:creator>jheni</dc:creator>
    <dc:date>2019-08-23T10:53:27Z</dc:date>
    <item>
      <title>Getting started with a Kinetics K64 C++ project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927770#M2143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started to work with an existing K64 project.&lt;/P&gt;&lt;P&gt;However i could not get c++ to run (Constructors and destructors are not getting called).&lt;/P&gt;&lt;P&gt;Therefore i decided to&lt;/P&gt;&lt;P&gt;1) take a clean K64 project,&lt;/P&gt;&lt;P&gt;2)try to get this to run on my target&lt;/P&gt;&lt;P&gt;3)and hence convert it to c++.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(first question: is there already an example c++ project out there?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this is easier said than done.&lt;/P&gt;&lt;P&gt;Unlike ST NXP does not seam to offer anything like CubeMX (or i haven't found it).&lt;/P&gt;&lt;P&gt;I did come across the MCUXpresso SDK Builder. I did select my MCU "MK64FN1M0VDC12" and selected "build"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the "GCC Arm Embedded toolchain" fails to compile when i run the provided shell scripts (several CMAKE errors).&lt;/P&gt;&lt;P&gt;After failing the GCC Arm embedded toolchain i tried the MCUexpresso IDE version. What version do i have to select from this dialog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87473i5E672F6EF4DE2DAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SDK Archive or the Config Tools Data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me figure out how to get this program to run&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 13:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927770#M2143</guid>
      <dc:creator>jheni</dc:creator>
      <dc:date>2019-08-15T13:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with a Kinetics K64 C++ project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927771#M2144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jheni@testo.de"&gt;jheni@testo.de&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately we don’t have any c++ example. I suggest you to take a look at this link &lt;A href="https://isocpp.org/wiki/faq/mixing-c-and-cpp"&gt;https://isocpp.org/wiki/faq/mixing-c-and-cpp&lt;/A&gt; for mixing C and C++.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, the file you have to download is the SDK archive, please refer to this video to import an example &lt;A href="https://www.nxp.com/video/mcuxpresso-ide-importing-sdk-example-project:MCUXPRESSO-IDE-IMPORTING-SDK-EX"&gt;https://www.nxp.com/video/mcuxpresso-ide-importing-sdk-example-project:MCUXPRESSO-IDE-IMPORTING-SDK-EX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The config tool is an integrated suite of configurations tools that helps users with the development on arm processors.&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/87526i07E54D5634866671/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;Let me know if it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 22:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927771#M2144</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2019-08-15T22:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with a Kinetics K64 C++ project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927772#M2145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey thx for your answer. This was indeed helpful :smileyhappy:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did setup an USB sample project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I event did manage to convert this project to c++ using this instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/437242"&gt;Convert project to C++&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However Linking fails with various undefined references&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;undefined reference to `memset'&lt;/P&gt;&lt;P&gt;undefined reference to `__data_section_table'&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i remove the -nostandardlib flag from the linker options the error messages go down to a few&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make -r -j8 all &lt;BR /&gt;Building target: frdmk64f_host_hid_mouse_keyboard_freertos.axf&lt;BR /&gt;Invoking: MCU C++ Linker&lt;BR /&gt;arm-none-eabi-g++ -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o &lt;BR /&gt;c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc.a(lib_a-exit.o): in function `exit':&lt;BR /&gt;exit.c:(.text.exit+0x16): undefined reference to `&lt;STRONG&gt;_exit&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: ./startup/startup_mk64f12.o: in function `ResetISR':&lt;BR /&gt;C:\Users\heju\mcuxpresso\workspace\frdmk64f_host_hid_mouse_keyboard_freertos\Debug/../startup/startup_mk64f12.c:537: undefined reference to `&lt;STRONG&gt;__data_section_table&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\heju\mcuxpresso\workspace\frdmk64f_host_hid_mouse_keyboard_freertos\Debug/../startup/startup_mk64f12.c:537: undefined reference to `&lt;STRONG&gt;__data_section_table_end&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\heju\mcuxpresso\workspace\frdmk64f_host_hid_mouse_keyboard_freertos\Debug/../startup/startup_mk64f12.c:537: undefined reference to `&lt;STRONG&gt;__bss_section_table_end&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: ./startup/startup_mk64f12.o:(.isr_vector+0x0): undefined reference to `&lt;STRONG&gt;_vStackTop&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.0.0_2516/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.0.0.201905131304/tools/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc.a(lib_a-sbrkr.o): in function `_sbrk_r':&lt;BR /&gt;sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:60: frdmk64f_host_hid_mouse_keyboard_freertos.axf] Error 1&lt;BR /&gt;"make -r -j8 all" terminated with exit code 2. Build might be incomplete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any reason why nostlibs flag is used?&lt;/P&gt;&lt;P&gt;the data_section objects are declared extern in the startup script. But i couldn't find an actual definition of these objects? Where are they coming from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 11:57:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927772#M2145</guid>
      <dc:creator>jheni</dc:creator>
      <dc:date>2019-08-16T11:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with a Kinetics K64 C++ project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927773#M2146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jheni@testo.de"&gt;jheni@testo.de&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the wrong library variant you will see the error "undefined reference to".&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-US"&gt;I suggest you to read the chapter 17. C/C++ Library Support &lt;/SPAN&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf"&gt;&lt;SPAN lang="en-US"&gt;h&lt;/SPAN&gt;&lt;SPAN lang="es-MX"&gt;ttps://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There you can find information about which library variant choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also this post may be useful: &lt;A _jive_internal="true" href="https://community.nxp.com/thread/389070"&gt;https://community.nxp.com/thread/389070&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this is helpful.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 20:36:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927773#M2146</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2019-08-19T20:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with a Kinetics K64 C++ project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927774#M2147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Omar,&lt;/P&gt;&lt;P&gt;thx for your answer. I'll have a look and try to figure out the problem :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 10:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Getting-started-with-a-Kinetics-K64-C-project/m-p/927774#M2147</guid>
      <dc:creator>jheni</dc:creator>
      <dc:date>2019-08-23T10:53:27Z</dc:date>
    </item>
  </channel>
</rss>

