-
Notifications
You must be signed in to change notification settings - Fork 6
Cube IDE New Project Guide
This should be a relatively quick tutorial that will teach you how to make a new project for your STM32F303RE nucleo board that you will be developing on.
- Nucleo STM32F303RE
You will need to have cubeIDE installed for this.
If you don't have it install yet, please see this install guide
Open up STM32CubeIDE.
Then, select your desired workspace and click Launch (the default is fine for now).
First in the top left go to file->New->STM32 Project.
You may experience some lag after the previous step. Eventually, you will be prompted with the following window:
At the top, select the "Board Selector" Option. Then on the left, in the text box next to Commercial Part Number, type "F303RE". There should only be one option in the "Boards List" Section, click that and press "Next":
Now you will be prompted with the following window:
Here you can name your project whatever you want, but we can just call it "tutorial". Leave everything else as default and click Finish.
You will then be prompted with this dialogue asking if you want to initialize all peripherals with their default Mode, Select No.
It may also ask about changing perspective. Here, it comes down to preference, but you can just click Yes.
You should now see the following screen, which means that you have successfully created the project! Notice the graphical interface of the chip on the right (which we may call the .ioc file) and the files on the left that fall under the tutorial project (most importantly, Src/main.c and tutorial.ioc). Cool things to know is the graphical interface is used to make changes to the chip settings. If changes are made, then once the project is saved, code will be auto-generated for the user. The main.c file is where you will want to write your code.
Congrats! You have successfully created a new project in Cube IDE!