2023-10-05 12:01 AM
To use cpp, I create the project in cpp and then I modify the name of main.c in main.cpp. This work pretty well, but when I try to update the configuration by ioc file, the code stay the same. It seems like I have to change to main.c before update to be fine. Do it exists a more easy way without modify the main extension everytime? Ty
Solved! Go to Solution.
2023-10-05 06:58 AM
CubeMX doesn't generate main.cpp. You can put your C++ code in a separate file instead, and call that from main.c. Or you can rename main.c every time. Those are your options.
2023-10-05 06:58 AM
CubeMX doesn't generate main.cpp. You can put your C++ code in a separate file instead, and call that from main.c. Or you can rename main.c every time. Those are your options.
2023-10-05 02:56 PM
Patient: - Doctor, when I do this, it pains!
Doctor: - Don't do this.