[STM32CubeIDE + MCSDK 6.3.2] Generated Project Missing Header Files (.h)
- May 8, 2025
- 1 reply
- 492 views
Subject: Missing .h Files After MC Workbench Code Generation (MCSDK 6.3.2 + STM32CubeIDE 1.13.2)
Message:
Hello ST team,
I am currently working on a sensorless BLDC motor control project using the B-G431B-ESC1 board and STM32CubeIDE 1.13.2 in conjunction with the Motor Control Workbench (MCSDK 6.3.2).
After generating my project (6-step sensorless control) through the Workbench, I observed that the .c source files are properly included under Middlewares/MotorControl, but the corresponding .h header files (bus_voltage_sensor.h, ntc_temperature_sensor.h, etc.) are missing in the include paths.
I verified that these .h files are located at:
C:\Users<user>.st_workbench\projects<project>\MCSDK_v6.3.2-Full\MotorControl\MCSDK\MCLib\Any\Inc\
However:
They are not copied or symbolically linked into the STM32CubeIDE project structure.
As a result, functions like VBS_GetAvBusVoltage_V() or NTC_GetAvTemp_Celsius() cause "undefined reference" errors unless these headers are manually added.
The .c files sometimes do not appear in the Project Explorer until I manually Clean the Project, but the .h files never appear.
This unexpectedly disrupts the ready build.
Is this a pattern of behavior?
Is there a correct way to automatically link/include the MCSDK headers after Workbench code generation?
I have attached the following screenshots:
missing classified files,
Files only appear after Clean Project,
Headers never appear.
Thank you for your guidance.
Saygılarımla,
Burak Çakır
Kocaeli Üniversitesi – Elektrik Mühendisliği Lisans Öğrencisi
