cancel
Showing results for 
Search instead for 
Did you mean: 

Generation code to CPP files

vybor
Associate II

It is very inconvenient to have regenerated C files in C++ project.

Problem is not main.c only, *_it.c as well. In C++ project one have to call methods of class from interrupt handlers.

It is not possible to make directly from *_it.c. Indirect call chain is lost of time.

I renamed main.c to main.cpp in C++ project, made call from main.cpp to method of class. All is OK.

Flashed microcontroller with main.cpp, all is working.

ST done great work to support C++. And made it useles by generating new code to C files. Why not to generate code in C++ project to CPP files?

 

0 REPLIES 0