AnsweredAssumed Answered

Bug in KDS when using CMSIS in C++ - Was: Kinetis Design Studio and C++

Question asked by Masmiseim on May 25, 2015
Latest reply on May 27, 2015 by Masmiseim

Hello,

 

Until know I was working with Rowley Crossworks for Embedded Development and I’m quite happy with it. But I wanted to give KDS (v3.0) a try.

I created a simple Project without using Processor-Expert or KSDK. I renamed the automatically created main.c file to main.cpp and added some includes to the CMSIS files.  You can find the resulting main.cpp File as an attachment.

 

Compiling this leads to an error in the CMSIS include File:

../Includes/core_cm4.h:1787:1: error: expected declaration before '}' token

 

It should definitely compile. Has KDS some problems with C++?

 

Thanks and regards

 

Markus

Original Attachment has been moved to: main.cpp.zip

Outcomes