stm32cubeide c++ led blinking example

Thread Starter

rt694157

Joined Dec 15, 2019
68
I have STM32F407 board I want to start c++ program on it it is very very hard for me to create c++ programming on it

Here is my steps

1581438363081.png

Next

1581438403767.png

Next

1581438592727.png

Next

1581438681067.png

Next Next Finish

When I click on finish button I do not get option to write program
 
Last edited:

dl324

Joined Mar 30, 2015
12,929
I've never used the board or IDE in question...

Have you check if it created a file for your project that you now need to open?
 

402DF855

Joined Feb 9, 2013
271
Looks like Eclipse, I'd suggest finding an alternative. It sucks. Still, you should be able to bring up the project explorer and find your source file.
1581440602577.png
 

402DF855

Joined Feb 9, 2013
271
Yeah, you can see I have two projects, rrrrr and ttest. They don't compile. Apparently the standard libraries are not setup by default. As I said, Eclipse sucks.
 

MrChips

Joined Oct 2, 2009
23,960
ARM chips are not the same as an Atmel AVR, TI MSP430, or Microchip PIC.
You have to jump through hoops in order to flash an LED.

Which version STM32CubeIDE are you running?
The latest version is v1.2.1.

You ought to be using the automatic HW configuration and SW code generator.
It will initilize the hardware and generate a code template for you.
 

Thread Starter

rt694157

Joined Dec 15, 2019
68
Which version STM32CubeIDE are you running?
The latest version is v1.2.1.
I am using v1.0.0 STM32CubeIDE
You ought to be using the automatic HW configuration and SW code generator.
It will initilize the hardware and generate a code template for you.
I have been trying some steps to create / run c++ program. What are the steps to create c++ program to blink led in STM32CubeIDE ?
 

MrChips

Joined Oct 2, 2009
23,960
Start with:

File > New > STM32 Project

If you are using an STM32F407 board open the Board Selector tab.
If you are going bare bones, open MCU/MPU Selector tab.
 

MrChips

Joined Oct 2, 2009
23,960
Ok so far.
Now pick the GPIO pin that you wish drive the LED.
Go to the STM32F407G-Discovery User Guide and pick one of the LEDs on the board.
 
Top