cancel
Showing results for 
Search instead for 
Did you mean: 

Change _Error_Handler() function signature

nbobovnikov
Associate II
Posted on October 20, 2017 at 14:51

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-generation
1 REPLY 1
Jeanne Joly
Senior III
Posted on February 08, 2018 at 17:11

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