Hi Forum,
I created a project in STM32CubeMx and generated the code.
Then I removed my main.c from the build list as I wanted the main.cpp file to write my code.
and then added main.cpp file -
but now i'm getting build error -
also after the build is completed i continuously get the following message -
Is there some configuration that may be missing here?
i added --cpp11 flag then added "Error_Handler" definition to solve the error.
Now my question is why it is renaming main.o to main_1.o?
The Error_Handler() is a function in the generated main.c file, that you have excluded from the build. Other code seems to rely on this.
For the Note on renamed object files, please see here: developer.arm.com/.../