SWV ITM (printf) is not working with main.cpp(c++) but with main.c it works like a charm.
Okay basically i have two question,
[1]
SWV ITM (printf) is not working with main.cpp(c++) but with main.c it works as a charm. The culprit seems to be is main.cpp but i have no idea how to make it work there.
[2]
The project is converted to C++ even though it produces main.c files instead of main.cpp. So i have to manually rename it to main.cpp . When ever i make any changes to .ioc the cubeMx inside of the cubeIDE produces the main.c instead of a c++. Is there any way to automatically generate source files in cpp extension because manually renaming it often leads to human error. Thank you.
