2017-10-20 05:51 AM
Hello!
Right now CubeMX generates code with the following signature of Error_Handler function:
void
_Error_Handler(
char
*,
int
);
When I turn my project to use c++, compiler doesn't like it, and I change it to the following:
void
_Error_Handler(
const
char
*,
int
);
So I suggest to adjust code generation accordingly.
Regards, Nikolay#cubemx #stm32 #code-generation2018-02-08 08:11 AM
Hello,
Sorry for my late reply.
There are already some threads on that topic. please have a look for instance to this one
https://community.st.com/0D50X00009Xkdm6SAB
.We do understand the need for you to generate C++project and this need is well known internally.
However, for the moment, with the success of STM32CubeMX, we have a lot of requests/suggestions to study andmanyimprovements to integrate.
And the C++ generation project item is not yet under study currently.
Sorry, for the inconvenience it may cause.
BR. Jeanne