cancel
Showing results for 
Search instead for 
Did you mean: 

stm32fxxx_hal.h library

Lin_Me
Associate

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.

15 REPLIES 15
Mahmoud Ben Romdhane
ST Employee

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.

mƎALLEm
ST Employee

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.

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.

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.

AScha.3
Super User

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 . )

If you feel a post has answered your question, please click "Accept as Solution".

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.

Hi,

I will check it. Thank you for the advice.

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.

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.

@AScha.3 wrote:

until tutorials matching for 2.0 .


It's arrived!

@Lin_Me - see: Beginner's Tutorial STMcubeIDE 2.0

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.

@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.

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.