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

Version 2.0.0.

If I go back to  1.19 would it solve my problem?

 

PS: Yes, my bad, but isn't it necessary for my code? Also isn't it supposed to be generated automatically? 

TDK
Super User

stm32fxxx_hal.h isn't a file name that is generated for any chip.

For stm32f303RET6 you should be including stm32f3xx_hal.h.

#include "stm32f3xx_hal.h"

 

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

I already tried it and same result : No such file or directory. :\

TDK
Super User

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

You can't create an STM32 project in STM32CubeIDE alone. That was removed with the latest update.

You must download and install STM32CubeMX and use that in standalone mode. Create a project for STM32CubeIDE.

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

@Lin_Me wrote:

If I go back to  1.19 would it solve my problem?


As we don't know what your problem is, that's impossible to say.

As @mƎALLEm said earlier, you need to describe in detail what you're actually doing - step-by-step.

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.
TDK
Super User

Going back to v1.19.0 would allow you to create STM32 projects from within STM32CubeIDE using the bundled/embedded STM32CubeMX.

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