cancel
Showing results for 
Search instead for 
Did you mean: 

Error creating a new project for STM32

Peirof
Associate II

Hi and happy new year...

 

I'm a complete beginner, and I'm facing a major problem.

I've tried creating a new project in CubeID for an STM32F401CEUx.

But the project "STM32 Project" doesn't appear in the list of new projects.

The closest thing I find is one called "STM32CubeIDE Empty Project," and when I create a project using this template, the initial image of the chip where I configure the pins doesn't appear, and the IoT file isn't in the project tree either.

Why could this be?

 

Peirof_0-1767262101047.png

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Super User

Welcome to the forum.

Please see How to write your question to maximize your chances to find a solution for best results.

 

In particular, you haven't said what version of CubeIDE you're using (or on what platform).

But it sounds like you're using v2.0.0, and following an out-of-date tutorial.

In v2.0.0, the CubeMX functionality was removed from the IDE, and now exists only as a standalone application.

See: STM32CubeIDE 2.0.0 released

Explanation & discussion here: IDE Version 2.0.0 - why remove MX ?

 

New tutorial here: STM32CubeIDE 2.0.0 workflow tutorial

 

Note that CubeMX has always been available as a standalone application, so older tutorials which use that workflow should still be valid.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

View solution in original post

5 REPLIES 5
Andrew Neil
Super User

Welcome to the forum.

Please see How to write your question to maximize your chances to find a solution for best results.

 

In particular, you haven't said what version of CubeIDE you're using (or on what platform).

But it sounds like you're using v2.0.0, and following an out-of-date tutorial.

In v2.0.0, the CubeMX functionality was removed from the IDE, and now exists only as a standalone application.

See: STM32CubeIDE 2.0.0 released

Explanation & discussion here: IDE Version 2.0.0 - why remove MX ?

 

New tutorial here: STM32CubeIDE 2.0.0 workflow tutorial

 

Note that CubeMX has always been available as a standalone application, so older tutorials which use that workflow should still be valid.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Peirof
Associate II

Thanks, I'll check the rules for future questions.

I was using AI to guide me through these first steps, but it was giving me incorrect instructions.

I'll watch that video.

Is there a tutorial for absolute beginners that uses the new version of CubeIDE?

Note that ST have a dedicated AI assistant - "Sidekick" - specifically trained on the STM32 documentation:

STM32 Sidekick: the AI-powered tool that accelerates your design journey

How to use STM32 Sidekick

 


@Peirof wrote:

Is there a tutorial for absolute beginners that uses the new version of CubeIDE?


Do you have experience with any other microcontroller(s)? With programming in general?

As noted previously, the big difference is just the removal  of CubeMX - apart from that, any tutorial should do.

And CubeMX has always been available as a standalone app - so any tutorial which takes that approach should be OK.

On learning STM32:

https://community.st.com/t5/stm32-mcus-products/for-better-learning-stm32-programming-and-debugging/m-p/719468/highlight/true#M260690

Getting started with the basics (not specific to STM32):

https://community.st.com/t5/stm32-mcus-products/for-better-learning-stm32-programming-and-debugging/m-p/719485/highlight/true#M260696

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Peirof
Associate II

I have very little experience, some with Arduino, which is more beginner-friendly... then I read that you can program for STM32 and even with VS Code using the Arduino IDE...

 

The problem I'm finding isn't a lack of information, quite the opposite... there are dozens of video tutorials and books... covering a wide variety of topics; it's difficult to find something for beginners...

Note that there is an Arduino core for STM32:

https://docs.arduino.cc/libraries/stm32duino-examples/

https://www.stm32duino.com/index.php

https://github.com/stm32duino

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.