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++

跳至解决方案
782 次查看
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 解答
542 次查看
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

在原帖中查看解决方案

1 回复
543 次查看
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