2025-05-08 4:50 PM - last edited on 2025-05-14 9:23 AM by Souhaib MAZHOUD
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
2025-05-14 9:22 AM
Hello @burak11
It would be appreciated if you could post in English in this international community.
Thank you for your understanding.
I suggest that you try with the latest version of STM32CubeIDE 1.18.1 and check if the issue presist.
BR,
Souhaib
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.