PlatformIO Community

Link binary library

For a single stm32cube project I have to link a binary library file.
ST deliver the library only in this form.

I add the following parameters in platformio.ini
build_flags =

-LD:/temp
-lUSBPDCORE_PD3_FULL_CM0_wc32

But this doesn’t work and I get the message :
… /arm-none-eabi/bin/ld.exe: cannot find -lUSBPDCORE_PD3_FULL_CM0_wc32

The folder “d:/temp” contains the file “USBPDCORE_PD3_FULL_CM0_wc32.a”
Has anyone a hint for me ?

Thanks and regards
Rainer

This is the excact same question that was asked here 1 week ago :smiley:

Duplicate of Failing to link external library

Thank you for link. I will test this.

Regards
Rainer