Skip to content

Cube IDE New Project Guide

Guthrie edited this page Sep 18, 2022 · 2 revisions

About

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.

Hardware

  • Nucleo STM32F303RE

picture

Software

You will need to have cubeIDE installed for this.

If you don't have it install yet, please see this install guide

Guide

Open up STM32CubeIDE.

image

Then, select your desired workspace and click Launch (the default is fine for now).

image

First in the top left go to file->New->STM32 Project.

image

You may experience some lag after the previous step. Eventually, you will be prompted with the following window:

image

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":

image

Now you will be prompted with the following window:

image

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.

image

It may also ask about changing perspective. Here, it comes down to preference, but you can just click Yes.

image

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.

image

Congrats! You have successfully created a new project in Cube IDE!

Clone this wiki locally