-
Notifications
You must be signed in to change notification settings - Fork 2
Home
If you are going to start from scratch you need to convert it into a C++ project as explained here: http://www.openstm32.org/forumthread338.
Remember to fix the reference to the Linker script as well: http://www.openstm32.org/forumthread945. This is also documented in the screenshot "Linker_General" below.
Also it is possible a good idea to add "-specs=nano.specs" to you linker flags - see "Linker_Miscellaneous", as explained here: http://www.openstm32.org/forumthread755. Note this will disable printf floating numbers support.
Furthermore you need to rename main.c
to main.cpp
. I would recommend doing this in the native file explorer, as if you change the name using the IDE it will actually not change the file extension, but only the name shown inside the IDE!
You should be able to import my project and get it compiling. If not here are some screenshots that should help you configure it: