2025-12-15 1:24 AM
Hi,
So i am using STM32CubeIDE to program my STM32 card, except that when i create my project, it doesnt generate an MX file. So when i try to include the library "stm32fxxx_hal.h", it doesn't work. Why is that? And am I obliged to work with STM32CubeMX in parallel with STM32CubeIDE?
PS : I use the latest version of the software, and my card is an stm32f303RET6.
Thank you.
2025-12-15 1:27 AM
Hello @Lin_Me ,
Let me thank you for posting.
I suggest that you provide your Ioc.File.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-12-15 1:28 AM
Hello @Lin_Me and welcome to the ST community,
Which CubeIDE version are you using? if CubeIDE 2.0, there is no more possibility to generate code inside as ST annonced the CubeIDE & CubeMx divorce :) STM32CubeIDE 2.0.0 released
Otherwise how did you generate you code. Please describe in step by step and what CubeMx and CubeIDE versions are you using.
2025-12-15 1:33 AM
Hi,
I do not have an Ioc.file.
I use only stm32cubeide (the latest version), i just clicked on create a new project, selected my board, and started coding, creating my .c files and headers.
Thank you.
2025-12-15 1:34 AM
Hi,
> I use the latest version of the software,
-> I think this tutorial should be a good point to start with the STM32CubeIDE 2.0.0.
If IDE 2.0 , then need CubeMx first, to create a project.
So my recommendation: use IDE 1.19. for now , until tutorials matching for 2.0 .
1.19 has integrated CubeMx , should work as you expect. (I also use 1.18 and 1.19 . )
2025-12-15 1:34 AM
Hi,
I am using the latest version of stm32cudeide. I clicked on create a new project, i selected my board and starting creating my .c files and .h files.
Thank you.
2025-12-15 1:36 AM
Hi,
I will check it. Thank you for the advice.
2025-12-15 1:37 AM - edited 2025-12-15 1:38 AM
As I said previously,
CubeMX is no more integrated in CubeIDE. Please download CubeMx and start your project from it and generate the project there.
2025-12-15 2:13 AM
@AScha.3 wrote:until tutorials matching for 2.0 .
It's arrived!
@Lin_Me - see: Beginner's Tutorial STMcubeIDE 2.0
2025-12-15 2:17 AM - edited 2025-12-15 2:21 AM
@Lin_Me wrote:I am using the latest version of stm32cudeide.
It would be more helpful to say the actual version, to avoid all doubt - many posters here say they're on "the latest", but it turns out they're not...
Also, what Host platform (including version) are you running on?
How to write your question to maximize your chances to find a solution
PS:
BTW - note that stm32fxxx_hal.h is not a library - it's just a header file.