Can't compile example projects from STUSB010 software library
Hello,
I'm evaluating different solutions for USB Power Delivery and I wanted to try out STUSB010 software library. I downloaded the library from the official ST website (STSW-STUSB010 v1.3.0) and I opened a project on STM32CubeIDE 1.9.0 on a Linux machine.
The project does not build by default (as is, directly from the zip without any modifications), it seems like it is not trying to link the USB PD library. I'm not very familiar with the IDE and for the life of me I can't figure out how to fix the generated compiler command. I can't post the compiler output here, the form complains about the post being too long. I get a bunch of errors like this one:
arm-none-eabi-gcc -o "STM32F072_MB1303_DRP_SRCING_DEVICE.elf" @"objects.list" -mcpu=cortex-m0 -T"/home/andres.oliva/Downloads/en.STSW-STUSB010/STSW_STUSB010_v1.3/Projects/STM32F072RB-Nucleo/Appli/usbpd/STM32F072_MB1303_DRP_SRCING_DEVICE/STM32CubeIDE/STM32F072RBTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="STM32F072_MB1303_DRP_SRCING_DEVICE.map" -Wl,--gc-sections -static -L../../../../../../../Middlewares/ST/STM32_USBPD_Library/Core/lib --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
/opt/st/stm32cubeide_1.9.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.linux64_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: ./Application/User/usbpd_dpm_user.o: in function `USBPD_DPM_UserExecute':
/home/andres.oliva/Downloads/en.STSW-STUSB010/STSW_STUSB010_v1.3/Projects/STM32F072RB-Nucleo/Appli/usbpd/STM32F072_MB1303_DRP_SRCING_DEVICE/Src/usbpd_dpm_user.c:401: undefined reference to `USBPD_PE_SVDM_RequestIdentity'Any clues? I expected this to work out-of-the-box. Thank you for your support!