Build a project in KDS 3.2 with ksdk 2.2 in C++

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build a project in KDS 3.2 with ksdk 2.2 in C++

Jump to solution
773 Views
chriskeeser
Contributor III

I would like to build a bare-metal project using KSDK 2.x and the g++ compiler.  What steps do I need to take to tell KDS (or eclipse) that the toolchain that should be used for the entire project is not gcc, but g++.  Ideally, I would like to be able to switch the compiler for the entire project from C to C++ (assuming this is possible).

I apologize if this is obvious, but my google searches have not yielded anything particularly clear.  There are a myraid of blog posts related to older SDKs and different embedded RTOSes, but very little for a KSDK 2.x bare metal project.

Thanks in advance for  any insight!

P.s. The device I am working with is a Kinetis K22 if that makes a difference.

0 Kudos
1 Solution
533 Views
marek-trmac
NXP Employee
NXP Employee

Hi Chris,

C++ project can be created using

  • File - New + C++ Project
  • Enter project name
  • Select: Project type - Executable - Kinetis Project for SDK 2.x; Next>
  • Select SDK root folder; Next>
  • Select board or processor; Next>; Next>; Finish

Hope this helps

Regards

Marek

Regards,
Marek

View solution in original post

1 Reply
534 Views
marek-trmac
NXP Employee
NXP Employee

Hi Chris,

C++ project can be created using

  • File - New + C++ Project
  • Enter project name
  • Select: Project type - Executable - Kinetis Project for SDK 2.x; Next>
  • Select SDK root folder; Next>
  • Select board or processor; Next>; Next>; Finish

Hope this helps

Regards

Marek

Regards,
Marek