Skip to main content
ZHOUXIANG
Associate III
May 21, 2025
Solved

MCSDK 6.3.2 GenerateCode error about include path

  • May 21, 2025
  • 1 reply
  • 452 views

I created a project based on PLL+Profile,  when compile the project, I get a ERROR, about include path. I search the file and add the path(../../Drivers/CMSIS/DSP/Include) into project manaully, compile success. Is this a bug?

ZHOUXIANG_0-1747788304788.png

 

Best answer by GMA

Hello @ZHOUXIANG,

Generating project from scratch with MCV1_57_PLL_PROFILE.stwb6, I do not have compile error. Project generated with "MC Workbench 6.3.2 / CubeMX 6.14.1 / STM32 FW 1.6.1 / HAL" and compiled with CubeIDE 1.18.1.

1 reply

mbarg.1
Senior III
May 21, 2025

Bug described in my post

STM32CubeIde BUG – wrong behavior with __has_include(“xxx.h”)

can generate this error.

Double check if it is your case.

 

GMA
Technical Moderator
May 22, 2025

Hello @ZHOUXIANG,

Thank you for your report.
This is issue could occur if you generate first a project without Motor Profiler feature enabled and regenerate it with Motor Profiler feature enabled. Generating a Motor Profiler project from scratch, compile error should not be present.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
ZHOUXIANG
ZHOUXIANGAuthor
Associate III
May 23, 2025

ZHOUXIANG_0-1747964010760.png

As the screenshot shows above, I creat 3 independent projects, MCV1_57_PLL_FOC(without profile), MCV1_57_PLL_PROFILE(with profile). I need to read the codes in these 3 projects at the same time, I will not want to regenerate again and again, it takes too much time. For verifying this issue, based on these 3 stwb6 files, I generate, compile, delete the output folder and repeat again. MCV1_57_PLL_FOC is always ok, but MCV1_57_PLL_PROFILE is always failed. 

I have upload the stwb6 and json files, and list version and info below:

Environment Version:

MC Workbench 6.3.2

CubeMX 6.14.1

CubeIDE 1.18.1

PROJECT INFO:

MCV1_57_PLL_PROFILE.stwb6 = MCV1.json + TB 57BL75S10-225TF9HQ.json(unprofiled) 

MCV1_57_PLL_FOC.stwb6         = MCV1.json + 57LSPRO2.json(have been profiled) 

Thanks for your reply.