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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,304件の閲覧回数
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 件の賞賛
返信
1 解決策
1,064件の閲覧回数
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


NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button

元の投稿で解決策を見る

1 返信
1,065件の閲覧回数
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


NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button