Skip to main content
Associate III
August 22, 2026
Question

Can't build project in VSCode after I add DSP Library in CubeMX

  • August 22, 2026
  • 2 replies
  • 21 views

First, specs:

CubeMX Version 6.18.1 on Mac OSX

MPU: STM32U595RIT6

IDE: VSCode 1.123.0 on Mac OSX

 

OK, So after a large amount of searching on how to add the DSP libararies, which have been moved in recent CubeMX versions, I have a new issue. When trying to build the previously-successful project, I get this error:

 

 

I know for a fact the .a file libarary is indeed present where it’s supposed to be. Here is the library section that was modified in the newly-generated makefie:

 

As I mentioned, the .a file is present in Middlewares/ST/Arm/DSP/Lib. Though, I find it weird the error about “-l-Wl,--start-group” not being a file or directory. That just seems bunged up to me. But this is exactly how the makefile came out of CubeMX.

 

Any ideas here? Any help would be massively appreciated! Thanks!

2 replies

Explorer
August 24, 2026

First, specs:

CubeMX Version 6.18.1 on Mac OSX

MPU: STM32U595RIT6

IDE: VSCode 1.123.0 on Mac OSX

 

OK, So after a large amount of searching on how to add the DSP libararies, which have been moved in recent CubeMX versions, I have a new issue. When trying to build the previously-successful project, I get this error:

 

 

I know for a fact the .a file libarary is indeed present where it’s supposed to be. Here is the library section that was modified in the newly-generated web makefie:

 

As I mentioned, the .a file is present in Middlewares/ST/Arm/DSP/Lib. Though, I find it weird the error about “-l-Wl,--start-group” not being a file or directory. That just seems bunged up to me. But this is exactly how the makefile came out of CubeMX.

 

Any ideas here? Any help would be massively appreciated! Thanks!

 

I’m facing something similar after adding the DSP library. Everything was building fine before, so I’m still trying to figure out what changed.

devinwAuthor
Associate III
August 24, 2026

I tried reformatting the Makefile manually to remove that “start group” and “end group” statements and it built OK. Something is wonky in there.

 

However, the DSP library doesn’t work for me still. If I set a breakpoint on a function I’m using (arm_fir_f32()), I get an error that the source file can’t be found and is looking in some weird place on someone else’s PC. I think the pre-compiled *.a libarary that is provided out of CubeMX has some bad file references compiled into ti.