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 5:01 AM
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?
2025-12-15 5:02 AM
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"
2025-12-15 5:04 AM
I already tried it and same result : No such file or directory. :\
2025-12-15 5:40 AM
> 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.
2025-12-15 6:06 AM
@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.
2025-12-15 6:24 AM
Going back to v1.19.0 would allow you to create STM32 projects from within STM32CubeIDE using the bundled/embedded STM32CubeMX.