Skip to main content
AAhma.3
Visitor II
March 30, 2020
Question

Why STM32cubemx not generates header file

  • March 30, 2020
  • 1 reply
  • 641 views

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

This topic has been closed for replies.

1 reply

Khouloud ZEMMELI
ST Employee
March 31, 2020

​Hello @AAhma.3​ ,

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

Best Regards,

Khouloud