cancel
Showing results for 
Search instead for 
Did you mean: 

Why STM32cubemx not generates header file

AAhma.3
Associate

Hi everybody,

I have installed STM32CUBEMX and also pack for F1 series(V 1.8).

When i generate code for keil or truestudio i expect to have :

#include "main.h"

#include "stm32f1xx_hal1.h"

inside of main.c file but unfortunately it does not generate #include "stm32f1xx_hal1.h".

It is also the same situation with STM32CUBEIDE.

Where is the problem.

Thanks in advance

1 REPLY 1
Khouloud ZEMMELI
ST Employee

​Hello @AAhma.3​ ,

The #include "main.h" , which contain the #include "stm32f1xx_hal.h"  , is called in the main.c file .

Best Regards,

Khouloud