Question
Change _Error_Handler() function signature
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